This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
75 lines (68 loc) · 1.77 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
'use strict';
var gulp = require('gulp');
var requireDir = require('require-dir');
var argv = require('yargs').argv;
global.ENV = argv.env;
global.dependencies = {
scripts: [
{
name: 'zone.js', src: 'dist/zone.min.js', dest: 'lib/zone.min.js', env: 'prod'
},
{
src: 'cordova.js', dest: 'lib/cordova.js', env: 'prod'
},
{
src: 'dist/app.min.js', dest: 'app.min.js', env: 'prod'
},
{
src: 'jspm_packages/system.src.js', env: 'dev'
},
{
src: 'system.config.js', env: 'dev'
},
{
src: 'app/bootstrap.js', env: 'dev'
}],
fonts: [
{
name: 'ionic', src: 'fonts/**/*.ttf'
}, {
name: 'ionic', src: 'fonts/**/*.woff'
}
],
css: [
{
src: 'app/app.css', env: 'dev'
},
{
src: 'dist/app.min.css', dest: 'app.min.css', env: 'prod'
}
]
};
// Specify paths & globbing patterns for tasks.
global.paths = {
'jsMain': './app/app.ts',
'html': 'index.prod.html',
'tpl': './app/**/*.html',
'js': './app/**/*.ts',
'sass': './app/app.ios.scss',
'img': './app/img/*',
'src': './',
'app': './app/',
'cssFile': 'app.css',
'dist': './dist',
'cordova': './cordova',
'node_modules': './node_modules',
'systemConfig': './system.config.js',
'fontsDev': './fonts',
'fontsDist': './dist/fonts',
'jsDist': './dist/app.min.js'
};
global.app = {
name: 'Starter',
bundleId: 'com.mycompany.starter'
};
// Require all tasks in the 'gulp' folder.
requireDir('./gulp', {recurse: false});
// Default task; start local server & watch for changes.
gulp.task('default', ['connect', 'watch']);