iLikeKoffee / redux-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-redux boilerplate

js-standard-style

Features

  • Webpack build with JSX syntax and ES.next
  • React and Redux
  • Redux router
  • Redux dev tools and hot reload
  • Tests with Mocha, Should.js, Sinon and React Test Utilities (There is an issue with stateless components testing)
  • Standard.js code styles checks
  • Less preprocessor with autoprefixer
  • Bootstrap
  • Documentation from docstrings by esdoc

Commands

  • npm start - start webpack development server with hot reload and dev-tools
  • npm run-script build - build for production
  • npm run-script lint - check code style
  • npm run-script test - run tests
  • npm run-script test - run tests
  • npm run-script clean - remove build results
  • npm run-script package - runs tests, builds project for production and creates tarball ready for deployment to webserver root
  • npm run-script docs - generate documentation esdoc Note Wanna get rid of stupid npm messages
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/Cellar/node/5.3.0/bin/node" "/usr/local/bin/npm" "run-script" "lint"
npm ERR! node v5.3.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! redux-boilerplate@0.1.0 lint: `standard`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the redux-boilerplate@0.1.0 lint script 'standard'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the redux-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     standard
npm ERR! You can get their info via:
npm ERR!     npm owner ls redux-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/alexeysidash/Dev/phones-app/npm-debug.log

like this?

run npm scripts with --silent flag

Note Some commands will run on both unix and windows, but most work only Mac and Linux.

Gotchas

  • Stateless(arrow) components cannot be tested with test utils(yet) cause of this issue

Links for further reading

About


Languages

Language:JavaScript 90.0%Language:CSS 5.1%Language:HTML 5.0%