This package has been deprecated

Author message:

🚨 ATTENTION TIME TRAVELERS! πŸ•°οΈ DEPRECATION ALERT! 🚨 Greetings fearless developer, Congratulations! You've stumbled upon a relic from the golden age of tech when mullets were cool, and AngularJS was the talk of the town. 🌐✨ Our dear npm package generator-angularjs-cordova has been gracefully ushered into retirement after 7 glorious years of service. It's like finding an ancient scroll in the coding catacombs, isn't it? In the ever-evolving world of technology, even our digital creations must gracefully exit the stage to make room for the new rockstars. 🎸🀘 But fear not, intrepid coder! You're not alone in this journey. There are shinier, sparklier tools out there, waiting to sweep you off your feet and take you on a magical coding carpet ride.✨ So, bid farewell to our dear generator-angularjs-cordova with a tear in your eye and a smile on your face. The future is bright, my friend, and it doesn't involve dusting off relics. May your code be bug-free and your memes be dank. Happy coding in the brave new world! πŸš€πŸ’» With nostalgic chuckles and a sprinkle of deprecated magic

generator-angularjs-cordova

1.1.0Β β€’Β PublicΒ β€’Β Published

AngularJS Cordova generator

Build Status

NPM

Changelog

Overview

A yeoman generator which combines the best features and practices to initialise and scaffold an AngularJs based cordova mobile app using a module based approach. Extended from the already available yeoman generators such as angular generator and MEAN.

Technologies

Features

  • Vertical Module approach for initializing and scaffolding the AngularJS application.
  • CLI user-prompt based sub-generators, which generate angular templates
  • Templates generated based on industry standard best-practices*

Installation/ Quick start

$> npm install -g yo

$> npm install -g generator-angularjs-cordova

$> mkdir testapp && cd testapp

$> yo angularjs-cordova

This presents you with a series of options to initialize and customize your application.

Grunt tasks

  • grunt serve - run the app from within the app/, on a browser and trigger grunt tasks up on changes in the fileset

  • grunt serve --dist - run the app from within the www/, on a browser

  • grunt build - perform various build related tasks and copies processed source to www/ (clean, minify, inject dependencies etc.,)

  • grunt docs- generate documentation from the dockblocks of the AngularJS source code

  • grunt test - run karma unit tests

Cordova tasks

grunt build task is run as a cordova pre-build hook.

e.g. $> cordova build android

will trigger a grunt build task before performing any cordova's android build related tasks.

For a list of all available cordova commands, use:

$> cordova --help

e2e tests

To run the e2e protractor tests which come shipped with the sample app, run the following commands in parallel

$> webdriver-manager update        ###update webdriver
$> webdriver-manager start         ###start the webdriver
$> grunt serve                     ###serves the app on http://127.0.0.1:9000/
$> protractor protractor-desktop-config.js   ###run the protractor tests

Available sub-generators

Use any of the following sub-generators for extending the AngularJS application

Application Generator

Generates an AngularJs application within app/.

$> yo angularjs-cordova

The generator will ask you a few questions about your new application and will generate it for you.

NOTE: This sub-generator should be used only once to initialise the application. Once generated, use specific sub-generators to further extend the application.

AngularJS Module Sub-Generator

Creates and initialises a module within the modules/.

$> yo angularjs-cordova:angular-module <module-name>

Example scenario/ usage of modules:

  • login (contain all login related features)
  • register (contain all registration related features)
  • core (contain shared features which can be used by all other modules

AngularJS Route Sub-Generator

The sub-generator will prompt for information about the required controller, view and routing path and generates the required files, inserts routing logic in the modules' config/routes.js file.

$> yo angularjs-cordova:angular-route <route-name>

AngularJS Controller Sub-Generator

Generates an new AngularJS controller in the specified module's controllers/.

$> yo angularjs-cordova:angular-controller <controller-name>

AngularJS View Sub-Generator

Generates an new AngularJS view file in the specified modules' views/ and adds routing config in config/routes.js.

$> yo angularjs-cordova:angular-view <view-name>

AngularJS Service Sub-Generator

Prompts user for type of AngularJS service file required (provider, service, factory) and generates the required file within the modules' services folder.

$> yo angularjs-cordova:angular-service <service-name>

AngularJS Directive Sub-Generator

Generates an AngularJS directive in the specified modules' directives/.

$> yo angularjs-cordova:angular-directive <directive-name>

AngularJS Filter Sub-Generator

Generates an AngularJS filter in a specified module's filters/.

$> yo angularjs-cordova:angular-filter <filter-name>

AngularJS Config Sub-Generator

Generates an AngularJS config file within the modules' config/

$> yo angularjs-cordova:angular-config <config-name>

AngularJS Test Sub-Generator

Prompts user for type of test file requried (unit/ e2e) and generates a template test file within the modules' tests/unit or tests/e2e accordingly.

$> yo angularjs-cordova:angular-test <name>

Contributors

For a list of all contributors, please see the contributions graph, as this would be updated based on any accepted PR's.

Contributions

A contributing guideline document will be updated soon. Please do report any issues/ bugs/ feature requests as issues and mark them with appropriate labels to be picked up on by interested devs.

LICENSE

The MIT License (MIT)

Copyright (c) 2015 Keshav OS

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependencies (6)

Dev Dependencies (12)

Package Sidebar

Install

npm i generator-angularjs-cordova

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • keshav.os