LCC SharePoint branding generator
npm install generator-lcc-sharepointNode.js will allow us to use the NPM package manager, but once installed we need to set the proxy to use it from the LCC corporate network
``sh`
npm config set proxy http://
npm config set http_proxy http://
Next we have to install the NPM packages that we will use. These are Yeoman and generator-lcc-sharepoint. You should probably do this each time to make sure you get the latest generator-lcc-sharepoint.
The following command will install these for us
`bash`
npm install -g yo generator-lcc-sharepoint
Create a new directory for your project, then CD into it
`bash`
mkdir lcc_sitename
cd lcc_sitename
Then generate your new project, following the prompts on-screen.
`bash`
yo lcc-sharepoint
The generator will install the npm packages for you
If you have Visual Studio Code installed you can open the project in it by typing:
`bash``
code .
Please see the readme file within the generated project for instructions on how to config and deploy the project.
If you're using this readme as a starter to scaffold your project, you need to read no further. The rest of this readme concerns itself with updating the generator.
If for example, you want to make a change to the application SASS file so all newly generated sites get this by default, you would edit the application.scss that lives inside the templates directory.
Once you have updated anything in the generator, it needs a new NPM package generating so you can use the updated generator.
1. Bump version in package.json – we use semantic versioning. NOTE: If this step is omitted, then when you commit and push your changes it will not generate new NPM packages for each of the output formats. Helpful when you are not ready to publish a new package but want to make sure your changes are source controlled.
2. Commit changes and push to remote repository.
3. Once pushed, a Travis CI build is kicked off that checks that the version has increased and if so will publish to the NPM registry.