Yeoman generator for scaffolding out a SharePoint 2013 HTML Master & Page Layouts project.
- Make sure you have yo installed:
npm install -g yo
- Install the generator:
npm install -g generator-sp2013
- Run:
yo sp2013
- Run
grunt
for building andgrunt server
for preview
-
--skip-install
Skips the automatic execution of
bower
andnpm
after scaffolding has finished. -
--skip-install-message
Hides the output of
bower
andnpm
. -
--skip-welcome-message
Skips the welcome message.
-
--test-framework=[framework]
Defaults to
mocha
. Can be switched for another supported testing framework likejasmine
.
The following features are currently supported by the SP2013 generator.
The following JS Precompilers are supported:
- CoffeeScript
- TypeScript
- LiveScript
Using a JS Precompiler is not required.
The following CSS Precompilers are supported:
- Compass (SCSS/SASS)
Using a CSS Precompiler is not required.
Grunt task for deploying your project to SharePoint via WebDav. Supports either an absolute WebDav path (single developer) or a WebDav path stored in an environment variable (multiple developers).
Grunt Task: grunt deploy