diff --git a/.eslintignore b/.eslintignore index 178135c..6237c12 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ /dist/ +/dist-web/ diff --git a/.gitignore b/.gitignore index 3b0c190..82d480e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,8 +28,9 @@ bower_components .DS_Store Thumbs.db -# Ignore built ts files -dist/**/* +# Ignore build artifacts +/dist/ +/dist-web/ # Coverage reports generated by test suites /coverage/ diff --git a/.prettierignore b/.prettierignore index 9c28250..206a263 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,3 @@ /coverage/ /dist/ -/examples/browser/dist/ +/dist-web/ diff --git a/examples/browser/.gitignore b/examples/browser/.gitignore deleted file mode 100644 index 849ddff..0000000 --- a/examples/browser/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist/ diff --git a/examples/browser/webpack.config.js b/examples/browser/webpack.config.js index 8c7199e..21bd5bb 100644 --- a/examples/browser/webpack.config.js +++ b/examples/browser/webpack.config.js @@ -19,7 +19,7 @@ export default (env, argv) => { clean: true, filename: "[name].js", assetModuleFilename: "[name][ext]", - path: path.resolve(__dirname, "dist"), + path: path.resolve(__dirname, "../../dist-web"), }, target: ["web", "es2018"], module: { diff --git a/package.json b/package.json index 5f7dfd9..d0a4228 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "scripts": { "build": "webpack --mode=production", "build:browser": "webpack -c examples/browser/webpack.config.js --mode=production", - "clear": "rimraf dist/", - "deploy": "npm run build:browser && gh-pages -d examples/browser/dist", + "clear": "rimraf dist/ dist-web/", + "deploy": "npm run build:browser && gh-pages -d dist-web/", "fix": "eslint --fix . && prettier --write .", "lint": "eslint . && prettier --check .", "prepare": "husky install",