generator-sn-localdev
v0.1.0
Published
Yeoman scaffold for building AngularJS apps on the ServiceNow platform
Downloads
3
Readme
generator-snow
Yeoman scaffold for building AngularJS apps on the ServiceNow platform
Installation
Install yo
, grunt-cli
, bower
, and generator-sn-localDev
npm install -g grunt-cli bower yo generator-sn-localDev
If you are planning on using Sass, you will need to first install Ruby and Compass:
- Install Ruby by downloading from here or use Homebrew
- Install the compass gem:
gem install compass
Make a new directory, and cd
into it:
mkdir my-new-project && cd $_
Run yo snow
, optionally passing an app name:
yo snow
You will be prompted for the following information
- Instance Name - this is the subdomain before .service-now.com
- Username - the username you use to log in to the instance
- Password - the password you use to log in to the instance
- App Prefix - the app name you prefix all related records with in ui_pages, ui_scripts, and content_css. This will be used to grab these records and create local versions of their content.
Generators
Available generators:
You will be prompted for the following information
- Instance Name - this is the subdomain before .service-now.com
- Username - the username you use to log in to the instance
- Password - the password you use to log in to the instance
- App Prefix - the app name you prefix all related records with in ui_pages, ui_scripts, and content_css. This will be used to grab these records and create local versions of their content.
App
Sets up a new local development environment and pulls down all files with your App Prefix
Example:
yo snow
page
Generates a new HTML page with the contents of a ui_page HTML field record. If the ui_page does not exist, it will create that page. Example:
yo snow:page *pageName*
script
Generates a new JS file with the contents of a ui_scripts script field record. If the ui_script does not exist, it will create that script. Example:
yo snow:script *scriptName*
style
Generates a new CSS file with the contents of a content_css style field record. If the content_css record does not exist, it will create that record. Example:
yo snow:style *styleName*
SASS
Generates a new SASS file with the contents of a u_sass style field record. If the u_sass record does not exist, it will create that record. Example:
yo snow:sass *sassName*
License
MIT © AJ Siegel