diff --git a/tools/.eslintrc.js b/tools/.eslintrc.js deleted file mode 100644 index 620617f..0000000 --- a/tools/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - "env": { - "node": true - } -} diff --git a/tools/rollup-util.js b/tools/rollup-util.js deleted file mode 100644 index 63c74d6..0000000 --- a/tools/rollup-util.js +++ /dev/null @@ -1,76 +0,0 @@ -import { uglify } from "rollup-plugin-uglify"; -import babel from "rollup-plugin-babel"; -import resolve from "rollup-plugin-node-resolve"; -import license from "rollup-plugin-license"; -import fs from "fs"; - -let buildType = config => { - let options = { - input: "build/skinview3d.js", - output: [], - external: [ - "three" - ], - plugins: [ - resolve() - ] - }; - - switch (config.format) { - case "umd": - options.output.push({ - format: "umd", - name: "skinview3d", - file: `build/skinview3d${config.postfix}.js`, - indent: "\t", - sourcemap: true, - globals: { - "three": "THREE" - } - }); - break; - - case "es": - options.output.push({ - format: "es", - file: `build/skinview3d${config.postfix}.js`, - indent: "\t", - sourcemap: true, - }); - break; - - default: - throw `Unknown format: ${config.format}`; - } - - if (config.babel) { - options.plugins.push( - babel({ - exclude: "node_modules/**" - }) - ); - } - - if (config.uglify) { - options.plugins.push( - uglify({ - output: { - comments: "some" - } - }) - ); - } - - options.plugins.push( - license({ - sourcemap: true, - banner: ` - skinview3d (https://github.com/to2mbn/skinview3d) - - ${fs.readFileSync("LICENSE").toString()} - ` - }) - ); - return options; -}; -export { buildType }; diff --git a/tools/rollup.browser.js b/tools/rollup.browser.js deleted file mode 100644 index 50cfc2d..0000000 --- a/tools/rollup.browser.js +++ /dev/null @@ -1,7 +0,0 @@ -import { buildType } from "./rollup-util"; -export default buildType({ - postfix: ".browser", - babel: true, - uglify: false, - format: "umd" -}); diff --git a/tools/rollup.browser.min.js b/tools/rollup.browser.min.js deleted file mode 100644 index 7b40d67..0000000 --- a/tools/rollup.browser.min.js +++ /dev/null @@ -1,7 +0,0 @@ -import { buildType } from "./rollup-util"; -export default buildType({ - postfix: ".browser.min", - babel: true, - uglify: true, - format: "umd" -}); diff --git a/tools/rollup.module.js b/tools/rollup.module.js deleted file mode 100644 index 359afc3..0000000 --- a/tools/rollup.module.js +++ /dev/null @@ -1,7 +0,0 @@ -import { buildType } from "./rollup-util"; -export default buildType({ - postfix: ".module", - babel: true, - uglify: false, - format: "es" -});