Ensure you have node/npm installed.
- Run
npm install
in the root directory of this repository
- Run
npm start
| This command will:- compile Sass (.scss) into CSS (.css)
- compile TypeScript into a JavaScript bundle
- serve the site using http-server at: http://localhost:4200/
May need to use gitbash to run this ^ command due to 'cp' usage
- Run
npm test
to watch all tests - Run
npm run test-once
to run all tests once - Run
npm run lint
to check for linting errors
- Quick scaffolding tsbase-snipeets
- Html highlighting in component files es6-string-html
launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4200/",
"webRoot": "${workspaceFolder}"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach Karma Chrome",
"address": "localhost",
"port": 9333,
"pathMapping": {
"/": "${workspaceRoot}",
"/base/": "${workspaceRoot}/"
}
}
]
}
Without Pre-render
npm run copy-static-files
npm run build
npm run package
- Windows Build in
bin