generator-cex v0.0.17
Yeoman Cex generator
What is Cex Generator?
Cex Generator is a Yeoman Generator for CEX applications and components made by Everymatrix.
What is Yeoman?
Yeoman helps you kickstart new projects, prescribing best practices and tools to help you stay productive.
To do so, we provide a generator ecosystem. A generator is basically a plugin
that can be run with the yo command to scaffold complete projects or useful parts.
Prerequisites
- node.js - http://nodejs.org
- npm - http://npmjs.org
- bower - http://bower.io
- gulp - http://gulpjs.com
- karma-cli - http://karma-runner.github.io
Create your CEX Project
First install npm, then install the required tools: yo, gulp, bower, karma
npm install -g yo gulp bower cex karmaNote: If you are a Linux user you must use the command as administrator (sudo).
Install generator-cex
npm install -g generator-cexNote: If you are a Linux user you must use the command as administrator (sudo).
Make a new directory, and cd into it:
mkdir my-cex-project && cd $_Run yo generator-cex, optionally passing an app name:
yo generator-cex [app-name]Note: Default app-name is "appName"
Run your CEX Project
To run your CEX Project, use
gulp serveA browser client will automatically be open on http://localhost:9000
Gulp tasks
gulp or gulp build to build an optimized version of your application in /dist
gulp serve to launch a browser sync server on your source files
gulp serve:dist to launch a server on your optimized application
Structure of a Cex Project
Generated directory structure
app/
fonts/
img/
scripts/
states/
about/
casino.js
index.js
404.js
home.js
index.js
app.js
weinre.js
views/
states/
404.html
home.html
about/
casino.html
index.html
styles/
base/
variables.scss
mixins.scss
reset.scss
ie.scss
main.scss
favicon.ico
config.json
index.html
robots.txt
bower.json
cex.json
Dockerfile
Gulpfile.js
karma.conf.js
protractor.conf.js
package.json