0.8.7 • Published 10 years ago

generator-heavy-sails-angular v0.8.7

Weekly downloads
6
License
-
Repository
github
Last release
10 years ago

Yeoman generator for AngularJS with SailsJS server - lets you quickly set up a project with sensible defaults and best practises.

This is a sailsjs adapter of yeoman -angular-generator (https://github.com/yeoman/generator-angular);

Twitter: https://twitter.com/V_Tkachenko_UA Please subscribe to updates.

Usage

Install generator-heavy-sails-angular:

npm install -g generator-heavy-sails-angular

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo heavy-sails-angular, optionally passing an app name:

yo heavy-sails-angular [app-name]

input sailsjs assets folder ( e.g. : ../../assets/my-application ); Now you can use build-dev and build grunt tasks that should upload your angular application to a sails server ( assets folder )

in SailsJS layout include index.html of your application e.g.:

//layout.ejs
<% include ../assets/my-application/index.html %>

//some-other-layout.ejs
<% include ../assets/some-other-app/index.html %>

So, heavy-sails-angular generator supports multi-yeoman clients applications for SailsJS server. Also it supports socket-io connection with sails as a $sails angular provider out-of-the-box.

You can develop your app as a normal angular-generator application, but then deploy it to a sails server. ( see example - https://github.com/heavyskyl/SailsJSProject/tree/angular-switch/testProject ).

How it works ?

  • grunt change path of files after deploying application to a assets folder.

Run grunt, build, build-dev for building and grunt serve for preview

Generators

Available generators:

License

BSD license

0.8.7

10 years ago

0.8.6

10 years ago

0.8.5

10 years ago

0.8.4

10 years ago

0.8.3

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago