Skip to content

Commit

Permalink
Compile X3D prototypes to json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesleesaunders committed Dec 27, 2022
1 parent c27601d commit 8cc51c5
Show file tree
Hide file tree
Showing 15 changed files with 1,704 additions and 1,803 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [["@babel/env", { "modules": false }]],
"plugins": [
"@babel/plugin-syntax-import-assertions",
"@babel/transform-object-assign"
]
}
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ all: js css min zip docs
js:
@echo Compiling JS Files...
@rm -f dist/d3-x3d.js
@node ./src/prototypes/compileProtos.js
@./node_modules/rollup/dist/bin/rollup -c config/rollup.config.js

min:
Expand Down
6 changes: 5 additions & 1 deletion config/jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
"template": "node_modules/minami"
},
"plugins": [
"plugins/markdown"
"plugins/markdown",
"node_modules/jsdoc-babel"
],
"babel": {
"presets": ["@babel/env"]
},
"templates": {
"cleverLinks": true,
"monospaceLinks": true
Expand Down
15 changes: 2 additions & 13 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,8 @@ export default {
},
external: ["d3", "d3-array", "d3-shape", "d3-interpolate"],
plugins: [
babel({
include: ["index.js", "src/**"],
babelrc: false,
presets: [["@babel/env", { modules: false }]],
plugins: [
"@babel/transform-object-assign",
"@babel/plugin-syntax-import-assertions"
],
babelHelpers: 'bundled'
}),
json({
exclude: ["node_modules/**"]
}),
babel({ babelHelpers: 'bundled' }),
json({ compact: true, exclude: ["node_modules/**"] }),
resolve({})
]
};
Loading

0 comments on commit 8cc51c5

Please sign in to comment.