NLeSC / create-react-app

Create React apps with no build configuration.
Other
1 stars 1 forks source link

Document migration of 0.1.1 to 0.2.0 #57

Open sverhoeven opened 7 years ago

sverhoeven commented 7 years ago

Due to Typescript and TSLint the migration is more complex than the description in the CHANGELOG.md.

Add steps to migrate in CHANGELOG.md

sverhoeven commented 7 years ago

In an app created with 0.1.1 ran:

npm install --save-dev --save-exact @nlesc/react-scripts@0.2.0
curl https://raw.githubusercontent.com/NLeSC/create-react-app/%40nlesc/react-scripts%400.2.0/packages/react-scripts/template/tsconfig.json > tsconfig.json
curl https://raw.githubusercontent.com/NLeSC/create-react-app/%40nlesc/react-scripts%400.2.0/packages/react-scripts/template/tslint.json > tslint.json

Ran npm run lint which gave bunch of errors. In VSCode applied auto fix to each file. See https://github.com/3D-e-Chem/molviewer-tsx/commit/1b430054526c80973c170f6102a0e491ad906a05 for the required changes.