Javascript
create-react-appのTypescript版でreact-scripts-tsがあるので、それを使ってTodoListを作る。 $
Read more
$ create-react-app my-app $ npm run eject $ npm install -g webpack $ npm install --save @types/react @types/react-dom $ npm install --save-dev typescript ts-loader source-map-loader $ vim tsconfig.json tsconfig.jsonを作る。内容は下記。 { "compilerOptions": { "outDir": "./dist/", "sourceMap": true, "noImplicitAny": true, "module": "commonjs", "target": "es5", "jsx": "react" }, "include": [ "./src/**/*"
Read more
気付いたら最新版と自分の環境がかなり離れてしまったので、nodebrewで開発環境をアップデートする。 $ nodebrew install stable $ nodebrew use stable $ node -v v10.0.0 ついでに、np
Read more