0.0.20 • Published 8 years ago

ngnew v0.0.20

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

This is a command line tool and a gulp/grunt module to create files and folders for angular modules, services, factories... Files are generated in order to be compiled with browserify and tested with karma and jasmine

notes : -fix installation on mac & linux -added index file to use with gulp or grunt or whatever, only to create modules for now -missing some replacements in generated files

for command line tool : install in global : npm install -g ngnew

use : type in terminal :

    ngnew --module moduleName --service(optional) --factory(optional) --directive(optional) --controller(optional)
    to create a new module in a new folder in current folder with test files associated in /tests folder

    ngnew --service serviceName
    to create a service in current folder with test file associated in /tests folder

    ngnew --factory factoryName
    to create a factory in current folder with test file associated in /tests folder

    ngnew --controller controllerName
    to create a controller, a view and it's scss file in current folder with test file associated in /tests folder

    ngnew --directive directiveName
    to create a directive, a controller and it's test, the associated view and scss file in current folder

for gulp/grunt use : install in for dev : npm install --save-dev ngnew

in your gulpFile :

    var gulp = require('gulp-param')(require('gulp'), process.argv);
    var ngnew = require('ngnew');

    gulp.task('ngnew', function () {
        ngnew({
          base : './app',
          module : argv.module,
          service : argv.service,
          factory : argv.factory,
          controller : argv.controller,
          directive : argv.directive
        })
    });

    //base is the root folder of your angular app
    //uses this folder hierarchy : app/module/submodule...

use : type in terminal :
    gulp ngnew --module app.foo.bar --service
    to create a new bar module in app/foo/ with a bar service
0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

1.0.0

8 years ago