Requirements:
Node v6.11.2 (LTS)
Yarn
gulp-cli (yarn install -g gulp-cli
)
Configure:
Copy or move config.example
to config.js
and replace the values with your own. If you prefer to use environment variables in production you can set the values in config.js equal to process.env.YOUR_VARIABLE_NAME and running gulp build will attempt to replace those based on your current environment.
Install the dependencies:
run yarn install
Development mode with livereload:
run yarn start
When you are done, create a production ready version of the JS bundle:
run yarn build
To run the linting command:
run yarn run lint path/to/file
To run the scss linting command:
install gem install scss_lint
run scss-lint path/to/file