Skip to content

Commit c5729c4

Browse files
authored
Merge pull request #35 from eapearson/master
update deps, remove unused, remove source maps in vendors to stop 404…
2 parents d144c8a + cffd22f commit c5729c4

File tree

17 files changed

+2639
-2993
lines changed

17 files changed

+2639
-2993
lines changed

build/Gruntfile.js

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,24 @@ module.exports = function (grunt) {
55
grunt.initConfig({
66
pkg: grunt.file.readJSON('package.json'),
77
copy: {
8-
vega: {
9-
expand: true,
10-
flatten: true,
11-
src: 'node_modules/vega-lib/build/vega.js',
12-
dest: '../src/plugin/iframe_root/js/vendor/vega'
13-
},
14-
d3: {
15-
expand: true,
16-
flatten: true,
17-
src: 'node_modules/d3/dist/d3.js',
18-
dest: '../src/plugin/iframe_root/js/vendor/d3'
19-
},
20-
dagre: {
21-
expand: true,
22-
flatten: true,
23-
src: 'node_modules/dagre/dist/dagre.js',
24-
dest: '../src/plugin/iframe_root/js/vendor/dagre'
25-
},
26-
'dagre-d3': {
27-
expand: true,
28-
flatten: true,
29-
src: 'node_modules/dagre-d3/dist/dagre-d3.js',
30-
dest: '../src/plugin/iframe_root/js/vendor/dagre-d3'
31-
},
328
'pure-uuid': {
339
expand: true,
3410
flatten: true,
35-
src: 'node_modules/pure-uuid/uuid',
36-
dest: '../src/plugin/iframe_root/js/vendor/pure-uuid'
11+
src: 'node_modules/pure-uuid/uuid.js',
12+
dest: '../src/plugin/iframe_root/modules/vendor/pure-uuid'
3713
}
14+
},
15+
clean: {
16+
options: {
17+
force: true
18+
},
19+
vendor: '../src/plugin/iframe_root/modules/vendor/*',
20+
bower: './bower_components/',
21+
npm: './node_modules/'
3822
}
3923
});
4024

4125
grunt.loadNpmTasks('grunt-contrib-copy');
26+
grunt.loadNpmTasks('grunt-contrib-clean');
4227

4328
};

build/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ By hand:
88

99
```
1010
cd build
11-
npm install
12-
./node_modules/.bin/bower-installer
13-
./node_modules/.bin/grunt copy
11+
yarn clean
12+
yarn install
13+
yarn install-bower
14+
yarn install-npm
15+
yarn remove-source-maps
1416
```
17+
18+
> Only use yarn clean if you want to clean out the stuff installed in vendor, as well as the node and bower packages installed in build.

build/bower.json

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,61 @@
11
{
22
"name": "kbase-ui-plugin-dashboard-internal",
33
"description": "Just the internal iframe app",
4-
"keywords": ["kbase", "widget"],
5-
"author": ["[email protected]"],
4+
"keywords": [
5+
"kbase",
6+
"widget"
7+
],
8+
"author": [
9+
10+
],
611
"install": {
712
"path": "../src/plugin/iframe_root/modules/vendor",
813
"sources": {
914
"bootstrap": [
10-
{ "bower_components/bootstrap/dist/css/bootstrap.css": "css/bootstrap.css" },
11-
{ "bower_components/bootstrap/dist/css/bootstrap-theme.css": "css/bootstrap-theme.css" },
12-
{ "bower_components/bootstrap/dist/fonts/**": "fonts/" },
13-
{ "bower_components/bootstrap/dist/js/bootstrap.js": "bootstrap.js" }
15+
{
16+
"bower_components/bootstrap/dist/css/bootstrap.css": "css/bootstrap.css"
17+
},
18+
{
19+
"bower_components/bootstrap/dist/css/bootstrap-theme.css": "css/bootstrap-theme.css"
20+
},
21+
{
22+
"bower_components/bootstrap/dist/fonts/**": "fonts/"
23+
},
24+
{
25+
"bower_components/bootstrap/dist/js/bootstrap.js": "bootstrap.js"
26+
}
1427
],
1528
"kbase-common-es6": "bower_components/kbase-common-es6/src/**",
1629
"kbase-common-js": "bower_components/kbase-common-js/dist/kb_common/**",
1730
"kbase-service-clients-js": "bower_components/kbase-service-clients-js/dist/kb_service/**",
1831
"font-awesome": [
19-
{ "bower_components/font-awesome/css/font-awesome.css": "css/font-awesome.css" },
20-
{ "bower_components/font-awesome/fonts/**": "fonts/" }
32+
{
33+
"bower_components/font-awesome/css/font-awesome.css": "css/font-awesome.css"
34+
},
35+
{
36+
"bower_components/font-awesome/fonts/**": "fonts/"
37+
}
2138
],
2239
"pure-uuid": "bower_components/pure-uuid/uuid.js"
2340
}
2441
},
2542
"dependencies": {
26-
"bluebird": "3.5.5",
43+
"bluebird": "3.7.2",
2744
"bootstrap": "3.4.1",
2845
"jquery": "^2.1.0",
2946
"requirejs": "2.3.6",
3047
"require-css": "0.1.10",
3148
"kbase-common-js": "2.18.1",
32-
"kbase-common-es6": "0.10.20",
49+
"kbase-common-es6": "0.10.23",
3350
"js-yaml": "3.13.1",
3451
"requirejs-text": "2.0.16",
3552
"requirejs-yaml": "eapearson/requirejs-yaml#1.0.5",
36-
"pure-uuid": "eapearson/pure-uuid#1.1.1",
3753
"kbase-service-clients-js": "3.3.5",
3854
"nunjucks": "3.1.2",
3955
"spark-md5": "3.0.0",
4056
"font-awesome": "4.7.0",
4157
"datatables-bootstrap3-plugin": "eapearson/datatables-bootstrap3-plugin#1.0.1",
42-
"datatables": "1.10.19",
43-
"file-saver": "1.3.4"
44-
},
45-
46-
"resolutions": {
47-
"file-saver": "1.3.4"
58+
"datatables": "1.10.19"
4859
},
4960
"license": "SEE LICENSE IN ../LICENSE"
50-
}
61+
}

0 commit comments

Comments
 (0)