Skip to content

tulios/webpack-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experiments with Webpack

Features

  • Stylesheets manifest (src/styles.js) with task to auto update (gulp update-styles)
  • Centralized CSS/SCSS glob list
  • Centralized SCSS includes list
  • Centralized JS vendor list
  • Centralized JS alias (mimic a library with your own files)
  • Build task with multiple environments including uglifying and asset manifest generation (NODE_ENV=production gulp build)
  • Component view generator (NAME=view-name gulp new:view)
  • Component widget generator (NAME=widget-name gulp new:widget)
  • Tests with jasmine + rewire (npm run test)
  • Tests for Continuous Integration (CI=true npm run test)
  • Test helper to easily stub React components (stubComponent)

Building / Running

  1. gulp
npm install -g gulp
  1. Build
gulp build
  1. Dev server
npm run dev-server

http://localhost:8082/