A quick start seed for web development with ECMAScript 2015 and AngularJS + Material Design.
Install Docker: http://docs.docker.com/mac/started
Installation NodeJs:
brew install nodejs
Run commands:
git clone [email protected]:vlobchuk/es-2015-seed.git ./project-name
cd project-name
npm install
./jspm install
docker-compose up -d
export GULP_SERVE_URL=http://you.docker.ip.address:16500
./gulp serve
To set the value of base href, use the environment variable BASE_HREF
Example:
export BASE_HREF="/web-app/" && ./gulp build
./gulp bundle
./gulp build
gulp
server {
listen 80;
root /var/www;
index index.html;
include mime.types;
location ~ ^/dist/ {
break;
}
location / {
try_files $uri $uri/ /index.html =404;
}
}
Run tests:
npm test
To run test on SauceLabs make sure environment variables SAUCE_USERNAME
and SAUCE_ACCESS_KEY
are set.
TEST_PREFIX=sl_ npm test
GALEN_DOMAIN=localhost npm test
Command | Desc |
---|---|
gulp clean |
Deletes all files in the output path |
gulp serve (default) |
Launch with live reload |
gulp bundle |
Build for production |
gulp build |
Build for development |
gulp build-html |
Build html templates |
gulp build-sass |
Build SASS files |
gulp build-index |
Build main index.html file |
gulp build-static |
Build static bundle |
gulp copy-images |
Copy SASS images |
gulp copy-fonts |
Copy SASS fonts |
gulp lint |
Run ESLint http://eslint.org |
- AngularJS
- Angular Animate
- Angular Cookies
- Angular Sanitize
- Angular Messages
- Angular Aria
- Angular UI Router
- Angular Material
- SASS
- Gulp
- Galen
Vitaly Lobchuk [email protected]
Frontend&Backend Developer.
MIT