UNPKG

ng-make

Version:

Easy tools for create project in AngularJS

86 lines (85 loc) 8.96 kB
{ "name": "ng-make", "version": "1.9.12", "description": "Easy tools for create project in AngularJS", "main": "main.js", "dependencies": { "colors": "^1.1.2", "corser": "^2.0.0", "ecstatic": "^1.0.1", "fs": "^0.0.2", "http": "0.0.0", "http-proxy": "^1.11.2", "http-server": "^0.8.4", "live-server": "^0.8.1", "opener": "^1.4.1", "paralleljs": "^0.2.1", "portfinder": "^0.4.0", "readline-sync": "^1.2.21", "shelljs": "^0.5.3", "union": "^0.4.4" }, "bin": { "ng-make": "main.js" }, "devDependencies": {}, "scripts": { "test": "main", "start": "node server.js" }, "repository": { "type": "git", "url": "git+https://github.com/angeloasm/ng-make.git" }, "keywords": [ "AngularJS", "generator", "project", "controllers", "view", "template", "directive", "ng-make generator", "angular js generator", "project easy", "state angular js generator", "state generator", "app.js generator", "route generator", "route angular js", "web server angularjs", "ng-make server", "web server angular" ], "author": { "name": "angelo.carraggi" }, "license": "ISC", "bugs": { "url": "https://github.com/angeloasm/ng-make/issues" }, "homepage": "https://github.com/angeloasm/ng-make#readme", "_id": "ng-make@1.9.11", "_shasum": "0d1f5ccda7de71650fdd4787dec7fbea653b87ee", "_from": "ng-make@*", "_npmVersion": "2.11.3", "_nodeVersion": "0.12.7", "_npmUser": { "name": "axc1011", "email": "angelo.carraggi@gmail.com" }, "dist": { "shasum": "acd1981ce65feb79493181724f874ca5fb1eadfb", "tarball": "http://registry.npmjs.org/ng-make/-/ng-make-1.8.10.tgz" }, "maintainers": [ { "name": "axc1011", "email": "angelo.carraggi@gmail.com" } ], "directories": {}, "_resolved": "https://registry.npmjs.org/ng-make/-/ng-make-1.8.10.tgz", "readme": "\nng-make cli\n=========\n## Your life is simple with AngularJS but with ng-make even more!\n\n\n![alt tag](http://www.angelocarraggi.altervista.org/ng-make/img/ng-makelogo.png)\n\n####Versioin 1.9.11 add the keyword exit to the webstart function.\n\n\n### Short Description!\n\n\nThe ng-make command line utility makes it easy to make all with AngularJS.\nThis command help you to manage your project without edit the route and the app configuration files.\nUse the `ng-make --help` command for more detailed task information.\n\n\n##### Free for all!\nIf you want to add a new module into the repository of ng-make, go to this(http://www.angelocarraggi.altervista.org/ng-make) and you can add your module into ng-make repository.\n\n## Installing\n\n```bash\n$ npm install -g ng-make\n```\n\n**Require [git only for windows, Unix just have this!](https://git-scm.com/download/win) and [bower installation](http://bower.io/)\n**Install automatically cordova cli for creation app for Android,iOS, Windows Phone.\n\n*Note: For a global install of `-g ng-make`, OSX/Linux users may need to prefix the command with `sudo` or can setup [proper file permissions on OSX for npm](http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/) to install without `sudo`. *\n\n\n## Starting your project with AngularJS easily\n\n```bash\n$ ng-make project nameProject \n```\n\nWhen the command is launched it install the following components:\n\n\t\tangular ....... basic module of angularJS\n\t\tangular-ui ...... module for the routes page \n \nThe structure of the project created with this command will be:\n\n\t\tappName/\n\t\t\t\t|\n\t\t\t\t|_css/ ( for the css style in your app)\n\t\t\t\t|\n\t\t\t\t|_js/ ( js module required by the app)\n\t\t\t\t|\n\t\t\t\t|_template/ (The view that you can be used)\n\t\t\t\t|\n\t\t\t\t|_img/ ( the image directory for your app )\n\t\t\t\t|\n\t\t\t\t|_bower_components/ (all components module)\n\t\t\t\t|\n\t\t\t\t|_settings/ ( settings for your application )\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_app.js\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_config.js\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_config.routes.js\n\t\t\t\t|\n\t\t\t\t|_module.json ( important file for the module installed in ng-make )\n\t\t\t\t|\n\t\t\t\t|_settings.conf ( important file for the settings of ng-make )\n\n## Create your state in one command\n\nWith ng-make you can create the state for your application. For make this quickly with ng-make you can use:\n\n```bash\n$ ng-make state nameOfState [default] [abstract]\n```\n\nThis command update the file `config.routes.js` with the new lines of declare your state. \nIt create the controller file append at the `nameOfState` the suffix `CTRL` and save it into the folder js,\nIt create the html template (this view is empty) into the folder `template` named with the name of the state,\nIt update the index.html with the `<script type=\"text/javascript\" src=\"js/nameOfStateCTRL.js\"></script>` before the end tag `</body>`.\n\n* If you using the option default, the state it's default, that is writed in `config.routes.js` within the `otherwise` property setted for the state.\n\n## Testing your AngularJS App\n\nWith ng-make you can also test your app without another XAMPP or LAMP software.\nFor try your server you should be go into the folder project and launch this command:\n\n```bash\n$ ng-make webstart [host] [port] [rootPoint]]\n```\n\n* By default if you launch the command it used:\n\t - \"localhost\" as host\n\t - \"port\" as 9090\n\t - \"rootPoint\" as \"./\"\n\t \n\t \n## Integration Module in your Angular App\n\nWith ng-make you can install the new module in your angular app or install it from the repository available.\nTypically you use this command as:\n\n```bash\n$ ng-make module [install|list|list-installed] nameOfNewModule [options]\n```\n\nThe available keywords can be used like below:\n\n`ng-make module install nameOfAvailablePackage`\n\nWith this command you add the `nameOfAvailablePackage` in your angular project.\nFor obtain the list of available package in ng-make, you can run this command:\n\n```bash\n$ ng-make module list\n```\n\nFor obtain the list of install modules in your angular app you can run this:\n\n```bash\n$ ng-make module list-installed\n```\n\n## Create your service for your Angular App \n\n\n```bash\n$ ng-make service nameOfService\n```\n\nWith this command you can create into the js/service/ directory your service that you can used in your AngularJS App.\n\n\n## Create your factory for your Angular App \n\n\n```bash\n$ ng-make factory nameOfFactory\n```\n\nWith this command you can create into the js/factory/ directory your factory that you can used in your AngularJS App.\n\n\n#### Create your directive for your Angular App\n\n```bash\n$ ng-make directive nameOfDirective\n``` \nWith this command you can create into the js/directive/nameOfDirectiveDir/ directory your directive (JS,HTML) that you can used in your AngularJS App.\n\nIt's create this on your project:\n\n\t\tappName/\n\t\t\t\t|\n\t\t\t\t|_css/ ( for the css style in your app)\n\t\t\t\t|\n\t\t\t\t|_js/ ( js module required by the app)-----------\n\t\t\t\t|\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|_______directive/\n\t\t\t\t|_template/ (The view that you can be used)\t\t\t\t\t\t\t\t\t\t\t|_nameOfDirective/\n\t\t\t\t|\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|_nameOfDirective.js (declaretion of directive)\n\t\t\t\t|_img/ ( the image directory for your app )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|_nameOfDirectiveCtrl.js (controller for directive)\n\t\t\t\t|\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|_nameOfDirective.html (template for directive)\n\t\t\t\t|_bower_components/ (all components module)\n\t\t\t\t|\n\t\t\t\t|_settings/ ( settings for your application )\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_app.js\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_config.js\n\t\t\t\t|\t\t\t|\n\t\t\t\t|\t\t\t|_config.routes.js\n\t\t\t\t|\n\t\t\t\t|_module.json ( important file for the module installed in ng-make )\n\t\t\t\t|\n\t\t\t\t|_settings.conf ( important file for the settings of ng-make )\n\n\n\n\n## Version history\n\n####Versioin 1.8.4 Insert new keyword: directive!\n\n####Versioin 1.8.2 Insert new keyword: factory!.\n\n\t \n####Versioin 1.8.1 Correct the module install and fix all help description for all keywords.\t\n \n\t \n####Versioin 1.8.0 Create service keyword for the ng-make and fix all index dependencies!\n\n\nWith the version 1.8.0 ng-make add the keyword for make your service without configure it.\nFor create a new service you can write in terminal ( use this when you are in the root directory of your app ):\n\n```bash\n$ ng-make service nameOfService\n```\n\n\n####Version 1.7.4\n\n\n`Adding livereload at webstart keywords also you can run the typical command of ng-make, fix about more keywords such as module state and project`\n\n\n\t \t \n\n", "readmeFilename": "README.md" }