Skip to content

Commit ddc980d

Browse files
author
Brandon Him
committed
Update to include locate me in panel, and fill message with updated address.
1 parent fbe90bf commit ddc980d

File tree

4 files changed

+211
-160
lines changed

4 files changed

+211
-160
lines changed

gulpfile.js

+34-32
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
var gulp = require('gulp');
2-
var gutil = require('gulp-util');
3-
var bower = require('bower');
4-
var concat = require('gulp-concat');
5-
var sass = require('gulp-sass');
6-
var minifyCss = require('gulp-minify-css');
7-
var rename = require('gulp-rename');
8-
var sh = require('shelljs');
1+
var gulp = require('gulp'),
2+
gutil = require('gulp-util'),
3+
bower = require('bower'),
4+
concat = require('gulp-concat'),
5+
sass = require('gulp-sass'),
6+
minifyCss = require('gulp-minify-css'),
7+
rename = require('gulp-rename'),
8+
sh = require('shelljs'),
9+
jshint = require('gulp-jshint');
910

1011
var paths = {
1112
sass: ['./scss/**/*.scss']
@@ -14,37 +15,38 @@ var paths = {
1415
gulp.task('default', ['sass']);
1516

1617
gulp.task('sass', function(done) {
17-
gulp.src('./scss/ionic.app.scss')
18-
.pipe(sass())
19-
.pipe(gulp.dest('./www/css/'))
20-
.pipe(minifyCss({
21-
keepSpecialComments: 0
22-
}))
23-
.pipe(rename({ extname: '.min.css' }))
24-
.pipe(gulp.dest('./www/css/'))
25-
.on('end', done);
18+
gulp.src('./scss/ionic.app.scss')
19+
.pipe(sass())
20+
.pipe(gulp.dest('./www/css/'))
21+
.pipe(minifyCss({
22+
keepSpecialComments: 0
23+
}))
24+
.pipe(rename({ extname: '.min.css' }))
25+
.pipe(gulp.dest('./www/css/'))
26+
.on('end', done);
2627
});
2728

2829
gulp.task('watch', function() {
29-
gulp.watch(paths.sass, ['sass']);
30+
gulp.watch(paths.sass, ['sass']);
3031
});
3132

3233
gulp.task('install', ['git-check'], function() {
33-
return bower.commands.install()
34-
.on('log', function(data) {
35-
gutil.log('bower', gutil.colors.cyan(data.id), data.message);
36-
});
34+
return bower.commands.install()
35+
.on('log', function(data) {
36+
gutil.log('bower', gutil.colors.cyan(data.id), data.message);
37+
});
3738
});
3839

3940
gulp.task('git-check', function(done) {
40-
if (!sh.which('git')) {
41-
console.log(
42-
' ' + gutil.colors.red('Git is not installed.'),
43-
'\n Git, the version control system, is required to download Ionic.',
44-
'\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.',
45-
'\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.'
46-
);
47-
process.exit(1);
48-
}
49-
done();
41+
if (!sh.which('git')) {
42+
console.log(
43+
' ' + gutil.colors.red('Git is not installed.'),
44+
'\n Git, the version control system, is required to download Ionic.',
45+
'\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.',
46+
'\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.'
47+
);
48+
49+
process.exit(1);
50+
}
51+
done();
5052
});

0 commit comments

Comments
 (0)