Starter project for https://github.com/DDeis/ngjs-cli
git clone https://github.com/DDeis/ngjs-cli-starter.git my-project
cd my-project
rm -rf .git/
# git init
npm i
npm start # run build | test
Available webpack aliases:
@src
: `/src'@app
: `/src/app'@common
: `/src/app/common'@components
: `/src/app/components'styles
: `/src/styles'
Instead of import '../../common/directive
you can do import '@common/directive
Do not forget to export .name
of angular modules.
Import an util sass file from the style folder in a component sass file, e.g: @import '~styles/variables';
Create a proxy.conf.js
file in the config folder from sample.
See https://github.com/chimurai/http-proxy-middleware for advance configuration.
You can set environment variable in a .env
file, look at the .env-sample
for avaible options.