Skip to content

Commit bdd50f6

Browse files
Pomaxdevongovett
authored andcommitted
made everything node-runnable instead of having hard dependencies on default OS-presupplied utilities (#119)
1 parent e2ff84e commit bdd50f6

File tree

2 files changed

+13
-36
lines changed

2 files changed

+13
-36
lines changed

Makefile

Lines changed: 0 additions & 33 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@
1313
],
1414
"scripts": {
1515
"test": "mocha",
16-
"prepublish": "make",
17-
"coverage": "BABEL_ENV=cover nyc mocha"
16+
"prepublish": "run-s clean trie:** rollup:**",
17+
"trie:data": "babel-node src/opentype/shapers/generate-data.js",
18+
"trie:use": "babel-node src/opentype/shapers/gen-use.js",
19+
"trie:indic": "babel-node src/opentype/shapers/gen-indic.js",
20+
"trie:copy": "shx cp src/opentype/shapers/*.trie ./",
21+
"rollup:index": "rollup -c -m -i src/index.js -o index.js",
22+
"rollup:base": "rollup -c -m -i src/base.js -o base.js",
23+
"clean": "shx rm -f index.js base.js data.trie indic.trie use.trie src/opentype/shapers/data.trie src/opentype/shapers/use.trie src/opentype/shapers/use.json src/opentype/shapers/indic.trie src/opentype/shapers/indic.json",
24+
"coverage": "cross-env BABEL_ENV=cover nyc mocha"
1825
},
1926
"main": "index.js",
2027
"jsnext:main": "src/index.js",
@@ -53,15 +60,18 @@
5360
"babel-register": "^6.14.0",
5461
"codepoints": "^1.2.0",
5562
"concat-stream": "^1.4.6",
63+
"cross-env": "^5.0.1",
5664
"esdoc": "^0.4.8",
5765
"esdoc-es7-plugin": "0.0.3",
5866
"iconv-lite": "^0.4.13",
5967
"mocha": "^2.0.1",
68+
"npm-run-all": "^4.0.2",
6069
"nyc": "^10.3.2",
6170
"rollup": "^0.34.10",
6271
"rollup-plugin-babel": "^2.6.1",
6372
"rollup-plugin-json": "^2.0.2",
64-
"rollup-plugin-local-resolve": "^1.0.7"
73+
"rollup-plugin-local-resolve": "^1.0.7",
74+
"shx": "^0.2.2"
6575
},
6676
"browserify": {
6777
"transform": [

0 commit comments

Comments
 (0)