Gathering detailed insights and metrics for generator-ionic-gulp-compass
Gathering detailed insights and metrics for generator-ionic-gulp-compass
Gathering detailed insights and metrics for generator-ionic-gulp-compass
Gathering detailed insights and metrics for generator-ionic-gulp-compass
npm install generator-ionic-gulp-compass
Typescript
Module System
Min. Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is a yeoman generator for a minimal Ionic app template. It sets up everything to get you started with Gulp and Ionic in no time. Cloned from Thomas Maximini's generator-ionic-gulp, i added compass support and the possibility to define application constants that resolve to different sets of values according to the build environment (dev VS test VS prod).
All credits for the following explanations go to Thomas Maximini.
index.html
ng-annotate
, no need to use weird bracket notationYou should have Yeoman installed globally
1npm install -g yo
To install generator-ionic-gulp from npm, run:
1npm install -g generator-ionic-gulp
Finally, initiate the generator:
1yo ionic-gulp
after installation, just run:
1gulp
to start up the build job and file watchers.
In order to compile Sass, you need to have ruby and the sass ruby gem installed: gem install sass
.
This doc assumes you have gulp
globally installed (npm install -g gulp
).
If you do not have / want gulp globally installed, you can run npm run gulp
instead.
By running just gulp
, we start our development build process, consisting of:
.scss
files required by app/styles/main.scss
vendor.js
file from external sources defined in ./vendor.json
*.js
files app/scripts
, see .jshintrc
for rulesetindex.html
so we don't have to add / remove sources manually.tmp
folder (also gitignored).tmp
By running just gulp --build
or short gulp -b
, we start gulp in build mode
.js
sources into single app.js
filemain.css
and app.js
www
console.log
or alert
with passing --release
By running gulp -e <platform>
, we can run our app in the simulator
ios
or android
, defaults to ios
ios-sim
package globally installed (npm install -g ios-sim
)gulp --build
before, so we have a fresh version to testBy running gulp select
you will se a prompt where you can choose which ios device to emulate. This works only when you have the gulp -e
task running in one terminal window and run gulp select
in another terminal window.
Run gulp ripple
to open your app in a browser using ripple. This is useful for emuating a bunch of different Android devices and settings, such as geolocation, battery status, globalization and more. Note that ripple is still in beta and will show weird debug messages from time to time.
By running gulp -r <platform>
, we can run our app on a connected device
ios
or android
, defaults to ios
gulp --build
before, so we have a fresh version to testReplace splash.png
and icon.png
inside /resources
. Then run ionic resources
. If you only want to regenerate icons or splashs, you can run gulp icon
or gulp splash
shorthand.
MIT
No vulnerabilities found.
No security vulnerabilities found.