diff --git a/.gitignore b/.gitignore index d5e60315..c4828a52 100644 --- a/.gitignore +++ b/.gitignore @@ -90,3 +90,4 @@ typings/ /ShadowEditor.Web/test/unit/build /ShadowEditor.Web/temp /.vscode +/ShadowEditor.Web/test/weekend/build diff --git a/ShadowEditor.Web/test/weekend/index.html b/ShadowEditor.Web/test/weekend/index.html new file mode 100644 index 00000000..60979be7 --- /dev/null +++ b/ShadowEditor.Web/test/weekend/index.html @@ -0,0 +1,25 @@ + + + + + + + Ray Tracing In One Weekend + + + + + + + + + + \ No newline at end of file diff --git a/ShadowEditor.Web/test/weekend/rollup.config.js b/ShadowEditor.Web/test/weekend/rollup.config.js new file mode 100644 index 00000000..25e4f38f --- /dev/null +++ b/ShadowEditor.Web/test/weekend/rollup.config.js @@ -0,0 +1,12 @@ +export default { + input: 'ShadowEditor.Web/test/weekend/src/index.js', + output: { + indent: '\t', + format: 'umd', + name: 'Weekend', + file: 'ShadowEditor.Web/test/weekend/build/weekend.js' + }, + treeshake: true, + external: [], + plugins: [] +}; diff --git a/ShadowEditor.Web/test/weekend/src/Application.js b/ShadowEditor.Web/test/weekend/src/Application.js new file mode 100644 index 00000000..83b4beeb --- /dev/null +++ b/ShadowEditor.Web/test/weekend/src/Application.js @@ -0,0 +1,7 @@ +class Application { + start() { + + } +} + +export default Application; \ No newline at end of file diff --git a/ShadowEditor.Web/test/weekend/src/index.js b/ShadowEditor.Web/test/weekend/src/index.js new file mode 100644 index 00000000..233ff177 --- /dev/null +++ b/ShadowEditor.Web/test/weekend/src/index.js @@ -0,0 +1 @@ +export { default as Application } from './Application'; \ No newline at end of file diff --git a/package.json b/package.json index acf580c4..a0c70b53 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "dev": "rollup -c ShadowEditor.Web/rollup.config.js --watch", "ai": "python ShadowEditor.AI/start.py", "translate": "python ShadowEditor.AI/translate.py", + "weekend": "rollup -c ShadowEditor.Web/test/weekend/rollup.config.js --watch", "build-docs": "gitbook build docs-dev", "test": "rollup -c ShadowEditor.Web/test/unit/rollup.config.js", "clear": "npm prune"