A quick start template for Chrome App development.
Featuring
👻 Gulp Commands
👾 Angular Material
🐼 Google Login
Dependency | OS X Installation |
---|---|
node.js | brew install nodejs |
gulp | npm install -g gulp |
bower | npm install -g bower |
git clone https://github.com/myurasov/chromestrap.git
cd chromestrap
npm install
bower install
gulp launch
gulp serve
- dev-app – app is executed as a Chrome App, Chrome APIs are available.
- dev-browser – app is executed as a web app, Chrome APIs are mocked/not available.
In order to allow users to authenticate with their Google Account app should be published to Chrome Web Store and registered with the API console. The app/manifest.json file should be populated with the appropriate key and oauth2.client_id values.
See https://developer.chrome.com/apps/app_identity for more info.
Command | Desc |
---|---|
gulp cleanup |
Remove build files |
gulp jshint |
Run jshint |
gulp launch |
Launch as a Chrome App |
gulp serve (default) |
Launch as a web page with live reload |
gulp build:dev-app |
Build for the dev-app environment |
gulp build:dev-browser |
Build for the dev-browser environment |
gulp set-env:dev-app |
Set environment to dev-app |
gulp set-env:dev-app |
Set environment to dev-browser |
gulp update-build |
Update build number * |
gulp list |
List available commands |
* Build number is stored in /build and copied to relevant files to be accessible in stylesheets, js, etc.
Mikhail Yurasov <me@yurasov.me>.
Web & Mobile Solutions Architect, Technical Lead, Hacker.