forked from palantir/blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
72 lines (69 loc) · 1.82 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
/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
*/
"use strict";
// Notes about adding a new package.
//
// * Even if you don't have a copy task, you should add `copy: false` to run a
// no-op copy task. This allows other packages that depend on yours to contain
// a copy task without failing the gulp build.
const projects = [
{
id: "core",
cwd: "packages/core/",
dependencies: [],
sass: true,
typescript: true,
karma: true,
copy: false,
}, {
id: "datetime",
cwd: "packages/datetime/",
dependencies: ["core"],
sass: true,
typescript: true,
karma: true,
copy: false,
}, {
id: "docs",
cwd: "packages/docs/",
dependencies: [
// You must add your package to this dependency list if you have any
// examples in the docs.
"core",
"datetime",
"table",
],
sass: true,
webpack: {
entry: "src/index.tsx",
dest: "dist",
localResolve: [
"dom4",
"jquery",
"normalize.css",
"react",
"react-addons-css-transition-group",
"react-dom",
],
},
copy: {
"src/index.html": { to: [""], base: "src/" },
"resources/favicon.png": { to: ["assets/"], base: "resources/" },
},
}, {
id: "landing",
cwd: "packages/landing/",
dependencies: ["core"],
sass: true,
}, {
id: "table",
cwd: "packages/table/",
dependencies: ["core"],
copy: false,
karma: true,
sass: true,
typescript: true,
},
];
require("./gulp")(require("gulp"), { projects });