A NodeJS Boilerplate using React and Reactive extensions to create dynamic sites, using BabelJS as polyfill for ES6.
It also comes with handlesbars as template engine
and SASS as CSS preprocess, which includes some
InuitCSS modules to reset and normalize elements,
as well force all elements to use the border-box
box model.
There are some predefined commands defined in the package file, which replaces
build tools such as gulp or grunt. They can be run using npm run [cmd]
where
[cmd]
is one of the following commands:
-
build-js
,build-min-js
orwatch-js
browserify the filesrc/js/app.js
todist/js/app.js
, minimize/uglify it, or watch for changes. -
build-sass
,build-min-sass
orwatch-sass
compile the filesrc/sass/styles.scss
todist/css/styles.css
, minimize it, or watch for changes.
Start the app using npm start
, which will run the server per default on the
port 1337. You can change that, by either changing the config.js module or
creating a YAML config file called config.yml in the root directory with the
following format:
port: 1337