generator-oldmen

AngularJS applications scaffold by Oldmen team

Usage no npm install needed!

<script type="module">
  import generatorOldmen from 'https://cdn.skypack.dev/generator-oldmen';
</script>

README

generator-oldmen

Generator for boostraping AngularJS applications by Oldmen team

Yeoman generator

Getting Started

Install Yeoman

npm install -g yo

Install generator-oldmen:

npm install -g generator-oldmen

Using generator

Starter template:

Run:

mkdir my-new-project
cd my-new-project
yo oldmen

It will create starter Oldmen template of a project including package.json, bower.json, Gruntfile.js and basic assets.

Template includes by default:

And number of grunt dependencies which you can see in package.json.

Asset generation:

This generator is tightly integrated with grunt-oldmen-build to simplify files management and packaging in project.

Basically, this tool generates files that are compatible with Oldmen Grunt task and they are picked up and included in build straight away.

There are number of assets that can be generated:

  • config
  • run
  • constant
  • filter
  • directive
  • service
  • model
  • controller

To invoke specific generator run:

yo oldmen:controller /users/new

OR

yo oldmen:directive focus-on

Controller generator will create html at proper location and add proper route in configs/router.js as a comment.

License

MIT