Framework for a single page project, though it could be multiple pages. Just less complex than our immersive-template setup.
- use
package.json
andnpm install
- use
bower.json
andbower install
- use a public folder for the published files:
- assets: images and other accces
- dist: where js and css is compiled
- fonts: for font-awesome
- includes: files for metrics, advertising and other includes
- use a src for build components
- js: for project specific files
- less: for less css source files.
The path is in Gruntfile.js
. Add the username/password into a file called .ftppass
as per ftpush docs. Make sure that file is in the .gitignore.
{
"key": {
"username": "username",
"password": "password"
}
}
The grunt-slack-hook
plugin let's us publish finished url to slack as part of ftpush. Needs a .slack file with the Webhook URL from Slack configurations. Just a single line with that url and no return.