Skip to content

gpeach/es6-react-builder

Repository files navigation

COMMANDS

npm run jest

  • place tests in the _tests_/ folder

gulp t OR npm run karmatest

  • runs mocha tests through karma via chrome
  • place tests in the test/ folder
  • produces coverage report

gulp b OR npm run build OR npm run buildreact

  • runs webpack
  • transpiles via babel
  • instruments coverage
  • compiles sass
  • produces minified bundle and sourcemap
  • build does es6/es2015
  • buildreact does react

npm run dox

  • runs jsdoc, partially implemented

REPORTS

  • unit test html report - test/results/report.html
  • code coverage report - test/coverage/{browser name}/index.html
  • jsdoc report - docs/index.html

TODO

  • add gulp watches to rebundle/retest
  • delete unneeded entries from package.json
  • add enzyme test setup for react
  • fix jest code coverage - webpack-contrib/istanbul-instrumenter-loader#3
  • rework gulp so it doesnt sync until task finishes/content is ready
  • image optimization

About

transpile es6 and react, sourcemaps, testing, code coverage, sass compile, webpack, with examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published