npm start
npm test
npm run build
-
Make a new Firebase project
-
Make a new repository on GitHub and upload initial code
-
Enable that repository on Travis CI
-
Configure Firebase
a.
sudo npm install firebase-tools -g
b.
firebase login
c.
firebase init
d. Select
Hosting
e. Public directory
build
f. Single page app
Yes
-
gem install travis
-
firebase login:ci
-
travis encrypt "..........." -r gdg-galway/currency-rates
-
Create/Update the
.travis.yml
file -
Push and build!
git add .
git commit -m "Some changes ready for production"
git push
Once Travis CI job is done, you can see your changes at https://react-charts-demo.firebaseapp.com/
Are you courious about the size of your bundle? Let's discover it!
npm install --save source-map-explorer
Then edit the package.json
file adding the following script
"scripts": {
+ "analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
and then run
npm run build
npm run analyze