项目作者: Dramloc

项目描述 :
Angular Material boilerplate
高级语言: JavaScript
项目地址: git://github.com/Dramloc/angular-material-boilerplate.git
创建时间: 2016-04-02T08:50:03Z
项目社区:https://github.com/Dramloc/angular-material-boilerplate

开源协议:MIT License

下载


Angular Material boilerplate

Travis
David
David

Boilerplate client based on AngularJS and Angular Material.

This boilerplate is a WIP and is still in early development.

Demo

You can see the boilerplate in action here.

Installation

  1. # Clone repository:
  2. git clone https://github.com/Dramloc/angular-material-boilerplate.git
  3. # Go to directory:
  4. cd angular-material-boilerplate
  5. # Install node.js dependencies:
  6. yarn

Building

This boilerplate builds are powered by webpack.

  1. # Building non-minified (equivalent to webpack --progress)
  2. npm run build
  3. # Bulding minified (equivalent to webpack --progress -p)
  4. npm run build -- -p

Development

Execute following command to run a local web server with livereload.

  1. npm run serve

Web server will be available at http://localhost:8080.

Environments

Environments are defined in src/environments and allow you to define environment-specific configurations.
You can define other environments by creating other environment.<env>.js files.

To use an environment during build or development use the following syntax:

  1. # Build non-minified for dev environment
  2. npm run build -- --env=dev
  3. # Build minified for prod environment
  4. npm run build -- -p --env=prod
  5. # Serve with staging environment
  6. npm run serve -- --env=staging

Environment configuration can the be accessed with $env angular constant.