I have replaced the functionality of Gulp with Webpack. I haven't integrated babel yet but it will be needed when we start on React. I can do this in a separate PR to begin our react branch or either @artitudinale1 or @silverwedding can if you want?
Here are the tasks:
npm start = run app with hot loading (i.e. auto-refresh when you change files)
npm run build = compile the app for production into the dist folder
npm run serve = serve the compiled version of the app (to preview before deploy)
npm run deploy = compiles the app to dist and deploys it to gh-pages on the origin remote
npm run deploy:prod = as above but on the upstream remote
There is also a npm run gh-pages but it would be better to use the deploy task to make sure the compiled app is up-to-date
I have replaced the functionality of Gulp with Webpack. I haven't integrated babel yet but it will be needed when we start on React. I can do this in a separate PR to begin our
react
branch or either @artitudinale1 or @silverwedding can if you want?Here are the tasks:
npm start
= run app with hot loading (i.e. auto-refresh when you change files)npm run build
= compile the app for production into thedist
foldernpm run serve
= serve the compiled version of the app (to preview before deploy)npm run deploy
= compiles the app todist
and deploys it togh-pages
on theorigin
remotenpm run deploy:prod
= as above but on theupstream
remote There is also anpm run gh-pages
but it would be better to use thedeploy
task to make sure the compiled app is up-to-date