diff --git a/.gitignore b/.gitignore index 824fac011..eb0f772b3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ storybook-static package-lock.json packages/js-example-app/dist +packages/js-example-app/src/assets/index.html .yarn/install-state.gz diff --git a/package.json b/package.json index 2f16f67a6..5ac7bedca 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "clean-webpack-plugin": "^4.0.0", "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.3", + "ejs": "^3.1.9", "eslint": "^8.53.0", "eslint-webpack-plugin": "^3.2.0", "fork-ts-checker-webpack-plugin": "^7.3.0", diff --git a/packages/js-example-app/package.json b/packages/js-example-app/package.json index bd9df10c3..3b05a1cbe 100644 --- a/packages/js-example-app/package.json +++ b/packages/js-example-app/package.json @@ -5,8 +5,10 @@ "private": true, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "webpack --config webpack.dev.js", - "build:prod": "webpack --config webpack.prod.js", + "build-index": "yarn run -T ejs src/index.ejs baseURL=. -o src/assets/index.html", + "build-index:prod": "yarn run -T ejs src/index.ejs baseURL=js-example-app -o src/assets/index.html", + "build": "yarn run build-index && webpack --config webpack.dev.js", + "build:prod": "yarn run build-index:prod && webpack --config webpack.prod.js", "serve": "http-server ./dist" }, "keywords": [], diff --git a/packages/js-example-app/src/assets/index.html b/packages/js-example-app/src/assets/index.html deleted file mode 100644 index 938cf8871..000000000 --- a/packages/js-example-app/src/assets/index.html +++ /dev/null @@ -1,149 +0,0 @@ - - -
- -Text Button
-Select
-Checkbox
-Text Input
-Number Input
-Textarea
-Tooltip
- -Radio Input
-Text Input
-Tab Bar
-Tab 1
-Tab 2
-Tab 3
-Tab 4
-Tab 5
-Tab 6
-Tab 7
-Tab 8
-Tab 9
-Tab 10
-Tab 11
-