Codebase list node-d3-shape / ea1dedd
build using babel Pirate Praveen 6 years ago
6 changed file(s) with 60 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
66 debhelper (>= 9)
77 , dh-buildinfo
88 , nodejs
9 , node-tape
10 , node-babel-cli
11 , node-babel-preset-es2015
12 # , node-babel-loader
13 # , node-babel-core
14 # , webpack
15 , node-d3-path (>= 1)
16 , node-d3-polygon
917 Standards-Version: 4.1.0
1018 Homepage: https://d3js.org/d3-shape/
1119 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-d3-shape.git
0 build usr/lib/nodejs/d3-shape/
1 index.js usr/lib/nodejs/d3-shape/
20 package.json usr/lib/nodejs/d3-shape/
3 src usr/lib/nodejs/d3-shape/
1 lib usr/lib/nodejs/d3-shape/
0 use-babel.patch
0 --- /dev/null
1 +++ b/.babelrc
2 @@ -0,0 +1,7 @@
3 +{
4 + "presets": [
5 + ["es2015", {
6 + "loose": false,
7 + }],
8 + ],
9 +}
10 --- a/package.json
11 +++ b/package.json
12 @@ -16,7 +16,7 @@
13 "name": "Mike Bostock",
14 "url": "http://bost.ocks.org/mike"
15 },
16 - "main": "build/d3-shape.js",
17 + "main": "lib/index.js",
18 "module": "index",
19 "jsnext:main": "index",
20 "repository": {
66 %:
77 dh $@
88
9 #override_dh_auto_build:
9 override_dh_auto_build:
10 babeljs src -d lib
11 babeljs index.js -d lib
12 sed -i 's/.\/src/./' lib/index.js
13 # TODO: investigate segfault
14 # webpack --config debian/webpack.config.js index.js build/d3-shape.js --target=web --output-library=d3-shape --output-library-target=umd --module-bind 'js=babel-loader'
1015
11 #override_dh_auto_test:
16 override_dh_auto_test:
17 tape 'test/**/*.js'
1218
13
14
19 override_dh_auto_clean:
20 rm -rf lib build
21 dh_auto_clean
0 'use strict';
1
2 var fs = require('fs');
3 var path = require('path');
4 var webpack = require('webpack');
5
6 var config = {
7
8 resolve: {
9 modules: ['/usr/lib/nodejs'],
10 },
11
12 resolveLoader: {
13 modules: ['/usr/lib/nodejs'],
14 }
15 }
16
17 module.exports = config;