-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
35 lines (32 loc) · 1.65 KB
/
Copy pathgulpfile.js
File metadata and controls
35 lines (32 loc) · 1.65 KB
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
const gulp = require('gulp');
const core = require('./node_modules/core/gulp_helper');
const pkg = require('./package.json');
core.embeddedApp.createTasks(gulp, {
pkg,
embedArea: 'full',
environmentOverride: null,
deploymentPath: '',
preprocessorContext: {
local: {
DATA_ANNUAL: `https://secure.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_annual`||`https://config.cc.toronto.ca:49093/c3api_data/v2/DataAccess.svc/pothole_data/pothole_dev_annual`,
DATA_YTD: `https://secure.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_ytd`||`https://config.cc.toronto.ca:49093/c3api_data/v2/DataAccess.svc/pothole_data/pothole_dev_ytd`
},
dev: {
DATA_ANNUAL: `https://config.cc.toronto.ca:49093/c3api_data/v2/DataAccess.svc/pothole_data/pothole_dev_annual`,
DATA_YTD: `https://config.cc.toronto.ca:49093/c3api_data/v2/DataAccess.svc/pothole_data/pothole_dev_ytd`
},
qa: {
DATA_ANNUAL: `https://was-inter-qa.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_qa_annual`,
DATA_YTD: `https://was-inter-qa.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_qa_ytd`
},
prod: {
DATA_ANNUAL: `https://secure.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_annual`,
DATA_YTD: `https://secure.toronto.ca/c3api_data/v2/DataAccess.svc/pothole_data/pothole_ytd`
}
}
});
gulp.task('_data', () => {
let myDataPath = '/resources/cdn/cotui/cotui';
gulp.src(['/usr/local/node_apps/toronto_ca/cot-apps/COT_UI/dist/cotui/**/*']).pipe(gulp.dest('dist' + myDataPath));
//gulp.src(['node_modules/cotui/dist/cotui/**/*']).pipe(gulp.dest('dist' + myDataPath));
})