-
Notifications
You must be signed in to change notification settings - Fork 12
Home
- Node.js (v6 or higher)
- Git Client - version control, optional, but highly recommended
- Yeoman - scaffolding engine
- TypeScript - surepset of JavaScript
- Webpack - build/bundling tool
- Gulp - tasks manager
- TSLint - code style analysis
- Yarn - alternative package manager client, optional
- generator-sppp - SharePoint front-ent projects generator
Check installation:
node -vnpm -vShould return versions numbers.
npm i yo generator-sppp typescript tslint yarn webpack gulp -gIn a console:
1. Create a project folder
2. Navigate to the folder
mkdir my-project && cd my-project3. Init git [optional]
git init4. Run generator
yo sppp5. Follow generator wizard instructions
Project scaffolders should be created, all necessary dependencies installed.
6. Init connection with SharePoint
gulp configFollow auth wizard prompts. More about auth options.
Supports SharePoint 2016, 2013, SPO.
7. Run watch task
gulp watchThe task watches for changes and uploads to SharePoint.
8. Can start development now
./src/scripts TypeScript and ES6 can be written here.
The default entry script is ./src/scripts/index.ts. [Can be redefined].
./src/styles SASS (.scss) can be written here.
The default entry style is ./src/styles/index.scss. [Can be redefined].
./src/webparts CEWP in .hbs (compiled to .html) format can be written here.
./src/masterpage MasterPage in .hbs (compiled to .html) fromat can be developed here.
./src/masterpage/layouts publishing pages layouts in .hbs (compiled to .html) fromat can be developed here.
A variety of options can be configured in ./config/app.json. See more settigns.
Popular tasks:
gulp buildgulp pushgulp watch1. Rise an issue in related projects or
2. Join the chat on Gitter