freeCodeCampLondon / FCCLND

Portal for FCC London Campers
https://FreeCodeCampLondon.github.io/FCCLND/
MIT License
32 stars 16 forks source link

Replace Gulp with Webpack in preparation for React #63

Closed chris-alexander closed 7 years ago

chris-alexander commented 7 years ago

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