Adaptive.js Generator
A generator for Yeoman that lets you quickly setup an Adaptive.js project.
Usage
Install generator-adaptivejs
:
npm install -g generator-adaptivejs
Run yo adaptivejs
:
yo adaptivejs
Follow the prompts and answer the required questions
Once completed, run grunt preview
to start previewing
How to test a change to the generator
If you made a change to generator-adaptivejs
and you want to test the local
version of the Yeoman generator, run npm link
and then yo adaptivejs
.
Options
Slug
Specifying the --slug
option allows you to skip the prompt for entering the project's slug:
yo adaptivejs --slug [project-slug]
URL
Specifying the --url
option allows you to skip the prompt for entering your site's URL:
yo adaptivejs --url [site-url]
Defaults
If you want to use some simple defaults, you can use the --defaults
option:
yo adaptivejs --defaults
For Mobify's specific defaults, use the following:
yo adaptivejs --defaults mobify
Running tests
To run tests within generator-adaptivejs
itself:
grunt test
To run unit and integration tests in the generated project:
grunt test
To run nightwatch WebDriver tests in the generated project:
grunt nightwatch
Documentation
https://cloud.mobify.com/docs/adaptivejs/
Releasing
When releasing a new version, follow these steps:
- Bump version in package.json
- Add to CHANGELOG
- Create a new git tag corresponding to that version and push to origin.
npm publish