-
npm install
to install all dependencies locally -
NPM Scripts (
npm start
,npm test
,npm run {name}
)start
- runsbuild
anddocs
test
- runs Karma test runner using Jasminebuild
- runsscripts
andstyles
scripts
- runs tsc and uglifystyles
- runs node-sass and postcssserve
- runsstart
and browser-sync of docs folderdocs
- runs Hugo anddocs:front
docs:front
- runsdocs:styles
anddocs:scripts
docs:styles
- copies minified css to docs and runs sassdocdocs:scripts
- copies minified JS to docs and runs jsdochugo
- runs Hugo live server with file watch (useful for seeing locally hosted styles correctly)
-
Main Documentation update
- Install Hugo [optional]
- Navigate to
src/docs
- Add new files by running
hugo new path/to/file.md
(or copy an existing file and change the frontmatter at the top) - Update Markdown files located in
src/docs/content
- Generate docs and view changes (run in
npm start && npm run hugo
) - Served locally
-
Script Update
- Edit files in
src/scripts
- Run
npm start
- Commit
- Edit files in
-
Style Update
- Edit files in
src/styles
- Run
npm start
- Commit
- Edit files in
- NodeJS
- Hugo
- JSDoc
- SASSDoc
- TypeScript
- ESLint
- Karma
- Jasmine
- Node-Sass
- Semantic-Release
- Browser-Sync
- PostCSS
- CSSNano
- UglifyJS
- FontAwesome
- TravisCI