Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit e9dfe5f

Browse files
nelisbijlguybedford
authored andcommitted
Made scripts Windows compliant
Moved build.sh to package.json scripts.build postinstall invokes 'npm install' on build-post-css build invokes 'npm run build' on build-post-css Note: a postcss-bundle.js generated by build breaks the unit tests!!
1 parent 6cde064 commit e9dfe5f

File tree

4 files changed

+142
-80
lines changed

4 files changed

+142
-80
lines changed

build-post-css/build.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

build-post-css/jspm.config.js

Lines changed: 64 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ SystemJS.config({
1010
"github:": "jspm_packages/github/",
1111
"npm:": "jspm_packages/npm/"
1212
}
13+
},
14+
devConfig: {
15+
"map": {
16+
"plugin-babel": "npm:systemjs-plugin-babel@0.0.15"
17+
}
1318
}
1419
});
1520

@@ -20,32 +25,32 @@ SystemJS.config({
2025
"npm:*.json"
2126
],
2227
map: {
23-
"assert": "github:jspm/nodelibs-assert@0.2.0-alpha",
28+
"assert": "npm:jspm-nodelibs-assert@0.2.0",
2429
"autoprefixer": "npm:autoprefixer@6.5.0",
25-
"buffer": "github:jspm/nodelibs-buffer@0.2.0-alpha",
26-
"child_process": "github:jspm/nodelibs-child_process@0.2.0-alpha",
27-
"cluster": "github:jspm/nodelibs-cluster@0.2.0-alpha",
28-
"constants": "github:jspm/nodelibs-constants@0.2.0-alpha",
29-
"crypto": "github:jspm/nodelibs-crypto@0.2.0-alpha",
30+
"buffer": "npm:jspm-nodelibs-buffer@0.2.0",
31+
"child_process": "npm:jspm-nodelibs-child_process@0.2.0",
32+
"cluster": "npm:jspm-nodelibs-cluster@0.2.0",
33+
"constants": "npm:jspm-nodelibs-constants@0.2.0",
34+
"crypto": "npm:jspm-nodelibs-crypto@0.2.0",
3035
"cssnano": "npm:cssnano@3.7.5",
31-
"events": "github:jspm/nodelibs-events@0.2.0-alpha",
32-
"fs": "github:jspm/nodelibs-fs@0.2.0-alpha",
36+
"events": "npm:jspm-nodelibs-events@0.2.0",
37+
"fs": "npm:jspm-nodelibs-fs@0.2.0",
3338
"graceful-fs": "npm:graceful-fs@4.1.8",
34-
"http": "github:jspm/nodelibs-http@0.2.0-alpha",
35-
"module": "github:jspm/nodelibs-module@0.2.0-alpha",
36-
"os": "github:jspm/nodelibs-os@0.2.0-alpha",
37-
"path": "github:jspm/nodelibs-path@0.2.0-alpha",
39+
"http": "npm:jspm-nodelibs-http@0.2.0",
40+
"module": "npm:jspm-nodelibs-module@0.2.0",
41+
"os": "npm:jspm-nodelibs-os@0.2.0",
42+
"path": "npm:jspm-nodelibs-path@0.2.0",
3843
"postcss": "npm:postcss@5.2.2",
3944
"postcss-import": "github:guybedford/postcss-import@feature%2Fload-source-maps",
4045
"postcss-url": "npm:postcss-url@5.1.2",
41-
"process": "github:jspm/nodelibs-process@0.2.0-alpha",
42-
"punycode": "github:jspm/nodelibs-punycode@0.2.0-alpha",
43-
"stream": "github:jspm/nodelibs-stream@0.2.0-alpha",
44-
"string_decoder": "github:jspm/nodelibs-string_decoder@0.2.0-alpha",
46+
"process": "npm:jspm-nodelibs-process@0.2.0",
47+
"punycode": "npm:jspm-nodelibs-punycode@0.2.0",
48+
"stream": "npm:jspm-nodelibs-stream@0.2.0",
49+
"string_decoder": "npm:jspm-nodelibs-string_decoder@0.2.0",
4550
"uglify-js": "npm:uglify-js@2.3.6",
46-
"url": "github:jspm/nodelibs-url@0.2.0-alpha",
47-
"util": "github:jspm/nodelibs-util@0.2.0-alpha",
48-
"vm": "github:jspm/nodelibs-vm@0.2.0-alpha"
51+
"url": "npm:jspm-nodelibs-url@0.2.0",
52+
"util": "npm:jspm-nodelibs-util@0.2.0",
53+
"vm": "npm:jspm-nodelibs-vm@0.2.0"
4954
},
5055
packages: {
5156
"github:guybedford/postcss-import@feature%2Fload-source-maps": {
@@ -74,28 +79,13 @@ SystemJS.config({
7479
"has-flag": "npm:has-flag@1.0.0"
7580
}
7681
},
77-
"github:jspm/nodelibs-buffer@0.2.0-alpha": {
78-
"map": {
79-
"buffer-browserify": "npm:buffer@4.9.1"
80-
}
81-
},
8282
"npm:buffer@4.9.1": {
8383
"map": {
8484
"isarray": "npm:isarray@1.0.0",
8585
"ieee754": "npm:ieee754@1.1.6",
8686
"base64-js": "npm:base64-js@1.2.0"
8787
}
8888
},
89-
"github:jspm/nodelibs-crypto@0.2.0-alpha": {
90-
"map": {
91-
"crypto-browserify": "npm:crypto-browserify@3.11.0"
92-
}
93-
},
94-
"github:jspm/nodelibs-os@0.2.0-alpha": {
95-
"map": {
96-
"os-browserify": "npm:os-browserify@0.2.1"
97-
}
98-
},
9989
"npm:crypto-browserify@3.11.0": {
10090
"map": {
10191
"create-ecdh": "npm:create-ecdh@4.0.0",
@@ -247,11 +237,6 @@ SystemJS.config({
247237
"minimalistic-assert": "npm:minimalistic-assert@1.0.0"
248238
}
249239
},
250-
"github:jspm/nodelibs-stream@0.2.0-alpha": {
251-
"map": {
252-
"stream-browserify": "npm:stream-browserify@2.0.1"
253-
}
254-
},
255240
"npm:stream-browserify@2.0.1": {
256241
"map": {
257242
"inherits": "npm:inherits@2.0.3",
@@ -269,11 +254,6 @@ SystemJS.config({
269254
"buffer-shims": "npm:buffer-shims@1.0.0"
270255
}
271256
},
272-
"github:jspm/nodelibs-string_decoder@0.2.0-alpha": {
273-
"map": {
274-
"string_decoder-browserify": "npm:string_decoder@0.10.31"
275-
}
276-
},
277257
"npm:postcss-url@5.1.2": {
278258
"map": {
279259
"postcss": "npm:postcss@5.2.2",
@@ -675,11 +655,6 @@ SystemJS.config({
675655
"sprintf-js": "npm:sprintf-js@1.0.3"
676656
}
677657
},
678-
"github:jspm/nodelibs-url@0.2.0-alpha": {
679-
"map": {
680-
"url-browserify": "npm:url@0.11.0"
681-
}
682-
},
683658
"npm:inflight@1.0.5": {
684659
"map": {
685660
"once": "npm:once@1.4.0",
@@ -711,11 +686,6 @@ SystemJS.config({
711686
"punycode": "npm:punycode@1.3.2"
712687
}
713688
},
714-
"github:jspm/nodelibs-punycode@0.2.0-alpha": {
715-
"map": {
716-
"punycode-browserify": "npm:punycode@1.4.1"
717-
}
718-
},
719689
"npm:has-ansi@2.0.0": {
720690
"map": {
721691
"ansi-regex": "npm:ansi-regex@2.0.0"
@@ -726,11 +696,6 @@ SystemJS.config({
726696
"ansi-regex": "npm:ansi-regex@2.0.0"
727697
}
728698
},
729-
"github:jspm/nodelibs-http@0.2.0-alpha": {
730-
"map": {
731-
"http-browserify": "npm:stream-http@2.4.0"
732-
}
733-
},
734699
"npm:stream-http@2.4.0": {
735700
"map": {
736701
"inherits": "npm:inherits@2.0.3",
@@ -739,6 +704,46 @@ SystemJS.config({
739704
"xtend": "npm:xtend@4.0.1",
740705
"to-arraybuffer": "npm:to-arraybuffer@1.0.1"
741706
}
707+
},
708+
"npm:jspm-nodelibs-punycode@0.2.0": {
709+
"map": {
710+
"punycode-browserify": "npm:punycode@1.4.1"
711+
}
712+
},
713+
"npm:jspm-nodelibs-buffer@0.2.0": {
714+
"map": {
715+
"buffer-browserify": "npm:buffer@4.9.1"
716+
}
717+
},
718+
"npm:jspm-nodelibs-os@0.2.0": {
719+
"map": {
720+
"os-browserify": "npm:os-browserify@0.2.1"
721+
}
722+
},
723+
"npm:jspm-nodelibs-string_decoder@0.2.0": {
724+
"map": {
725+
"string_decoder-browserify": "npm:string_decoder@0.10.31"
726+
}
727+
},
728+
"npm:jspm-nodelibs-crypto@0.2.0": {
729+
"map": {
730+
"crypto-browserify": "npm:crypto-browserify@3.11.0"
731+
}
732+
},
733+
"npm:jspm-nodelibs-stream@0.2.0": {
734+
"map": {
735+
"stream-browserify": "npm:stream-browserify@2.0.1"
736+
}
737+
},
738+
"npm:jspm-nodelibs-http@0.2.0": {
739+
"map": {
740+
"http-browserify": "npm:stream-http@2.4.0"
741+
}
742+
},
743+
"npm:jspm-nodelibs-url@0.2.0": {
744+
"map": {
745+
"url-browserify": "npm:url@0.11.0"
746+
}
742747
}
743748
}
744749
});

build-post-css/package.json

Lines changed: 76 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"scripts": {
3+
"postinstall": "node_modules/.bin/jspm install",
4+
"build": "node_modules/.bin/jspm build postcss-bundle.js ../postcss-bundle.js --node --format amd --skip-source-maps"
5+
},
26
"jspm": {
37
"name": "app",
48
"main": "app.js",
@@ -13,27 +17,27 @@
1317
"plugin-babel": "npm:systemjs-plugin-babel@^0.0.15"
1418
},
1519
"peerDependencies": {
16-
"assert": "github:jspm/nodelibs-assert@^0.2.0-alpha",
17-
"buffer": "github:jspm/nodelibs-buffer@^0.2.0-alpha",
18-
"child_process": "github:jspm/nodelibs-child_process@^0.2.0-alpha",
19-
"cluster": "github:jspm/nodelibs-cluster@^0.2.0-alpha",
20-
"constants": "github:jspm/nodelibs-constants@^0.2.0-alpha",
21-
"crypto": "github:jspm/nodelibs-crypto@^0.2.0-alpha",
22-
"events": "github:jspm/nodelibs-events@^0.2.0-alpha",
23-
"fs": "github:jspm/nodelibs-fs@^0.2.0-alpha",
20+
"assert": "npm:jspm-nodelibs-assert@^0.2.0",
21+
"buffer": "npm:jspm-nodelibs-buffer@^0.2.0",
22+
"child_process": "npm:jspm-nodelibs-child_process@^0.2.0",
23+
"cluster": "npm:jspm-nodelibs-cluster@^0.2.0",
24+
"constants": "npm:jspm-nodelibs-constants@^0.2.0",
25+
"crypto": "npm:jspm-nodelibs-crypto@^0.2.0",
26+
"events": "npm:jspm-nodelibs-events@^0.2.0",
27+
"fs": "npm:jspm-nodelibs-fs@^0.2.0",
2428
"graceful-fs": "npm:graceful-fs@^4.1.6",
25-
"http": "github:jspm/nodelibs-http@^0.2.0-alpha",
26-
"module": "github:jspm/nodelibs-module@^0.2.0-alpha",
27-
"os": "github:jspm/nodelibs-os@^0.2.0-alpha",
28-
"path": "github:jspm/nodelibs-path@^0.2.0-alpha",
29-
"process": "github:jspm/nodelibs-process@^0.2.0-alpha",
30-
"punycode": "github:jspm/nodelibs-punycode@^0.2.0-alpha",
31-
"stream": "github:jspm/nodelibs-stream@^0.2.0-alpha",
32-
"string_decoder": "github:jspm/nodelibs-string_decoder@^0.2.0-alpha",
29+
"http": "npm:jspm-nodelibs-http@^0.2.0",
30+
"module": "npm:jspm-nodelibs-module@^0.2.0",
31+
"os": "npm:jspm-nodelibs-os@^0.2.0",
32+
"path": "npm:jspm-nodelibs-path@^0.2.0",
33+
"process": "npm:jspm-nodelibs-process@^0.2.0",
34+
"punycode": "npm:jspm-nodelibs-punycode@^0.2.0",
35+
"stream": "npm:jspm-nodelibs-stream@^0.2.0",
36+
"string_decoder": "npm:jspm-nodelibs-string_decoder@^0.2.0",
3337
"uglify-js": "npm:uglify-js@~2.3",
34-
"url": "github:jspm/nodelibs-url@^0.2.0-alpha",
35-
"util": "github:jspm/nodelibs-util@^0.2.0-alpha",
36-
"vm": "github:jspm/nodelibs-vm@^0.2.0-alpha"
38+
"url": "npm:jspm-nodelibs-url@^0.2.0",
39+
"util": "npm:jspm-nodelibs-util@^0.2.0",
40+
"vm": "npm:jspm-nodelibs-vm@^0.2.0"
3741
},
3842
"overrides": {
3943
"github:guybedford/postcss-import@feature/load-source-maps": {
@@ -56,7 +60,60 @@
5660
"ignore": [
5761
"test.js"
5862
]
63+
},
64+
"npm:svgo@0.7.1": {
65+
"meta": {
66+
"lib/svgo/config.js": {
67+
"deps": [
68+
"../../plugins/removeDoctype",
69+
"../../plugins/removeXMLProcInst",
70+
"../../plugins/removeComments",
71+
"../../plugins/removeMetadata",
72+
"../../plugins/removeEditorsNSData",
73+
"../../plugins/cleanupAttrs",
74+
"../../plugins/minifyStyles",
75+
"../../plugins/convertStyleToAttrs",
76+
"../../plugins/cleanupIDs",
77+
"../../plugins/removeRasterImages",
78+
"../../plugins/removeUselessDefs",
79+
"../../plugins/cleanupNumericValues",
80+
"../../plugins/cleanupListOfValues",
81+
"../../plugins/convertColors",
82+
"../../plugins/removeUnknownsAndDefaults",
83+
"../../plugins/removeNonInheritableGroupAttrs",
84+
"../../plugins/removeUselessStrokeAndFill",
85+
"../../plugins/removeViewBox",
86+
"../../plugins/cleanupEnableBackground",
87+
"../../plugins/removeHiddenElems",
88+
"../../plugins/removeEmptyText",
89+
"../../plugins/convertShapeToPath",
90+
"../../plugins/moveElemsAttrsToGroup",
91+
"../../plugins/moveGroupAttrsToElems",
92+
"../../plugins/collapseGroups",
93+
"../../plugins/convertPathData",
94+
"../../plugins/convertTransform",
95+
"../../plugins/removeEmptyAttrs",
96+
"../../plugins/removeEmptyContainers",
97+
"../../plugins/mergePaths",
98+
"../../plugins/removeUnusedNS",
99+
"../../plugins/transformsWithOnePath",
100+
"../../plugins/sortAttrs",
101+
"../../plugins/removeTitle",
102+
"../../plugins/removeDesc",
103+
"../../plugins/removeDimensions",
104+
"../../plugins/removeAttrs",
105+
"../../plugins/addClassesToSVGElement",
106+
"../../plugins/removeStyleElement",
107+
"../../plugins/removeXMLNS",
108+
"../../plugins/removeElementsByAttr",
109+
"../../plugins/addAttributesToSVGElement"
110+
]
111+
}
112+
}
59113
}
60114
}
115+
},
116+
"devDependencies": {
117+
"jspm": "^0.17.0-beta.34"
61118
}
62119
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"main": "css",
55
"registry": "jspm",
66
"scripts": {
7+
"postinstall": "cd build-post-css && npm install",
78
"test": "mocha --harmony test/test.js",
8-
"build": "cd build-post-css && ./build.sh",
9+
"build": "cd build-post-css && npm run build",
910
"phantom-test": "phantomjs test/phantom.js"
1011
},
1112
"devDependencies": {

0 commit comments

Comments
 (0)