-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulp.js
32 lines (28 loc) · 1.02 KB
/
gulp.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
var path = require('path');
var src = {
path: path.resolve(__dirname, '../www'),
js: path.resolve(__dirname, '../www/js'),
css: path.resolve(__dirname, '../www/css'),
img: path.resolve(__dirname, '../www/img'),
jshintrc: path.resolve(__dirname, '../.jshintrc'),
precommit: path.resolve(__dirname, '../.pre-commit'),
commitmsg: path.resolve(__dirname, '../.commit-msg.js'),
git: path.resolve(__dirname, '../.git'),
view: path.resolve(__dirname, '../www/templates/**/*.js'),
pkg: path.resolve(__dirname, '../package.json'),
webpack: path.resolve(__dirname, '../static/script/webpack/'),
};
var dist = {
path: path.resolve(__dirname, '../dist'),
js: path.resolve(__dirname, '../dist/dist_js'),
css: path.resolve(__dirname, '../dist/dist_css'),
img: path.resolve(__dirname, '../dist/img'),
view: path.resolve(__dirname, '../dist/view'),
pkg: path.resolve(__dirname, '../'),
webpack: path.resolve(__dirname, '../dist/script/webpack/'),
};
var config = {
src: src,
dist: dist,
};
module.exports = config;