Skip to content

Commit 7d2eb49

Browse files
committed
Revert: Demo site
1 parent 346ade1 commit 7d2eb49

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

.github/workflows/GHPages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
node-version: 14
1515
- name: Install And Build
1616
run: |+
17-
cd explorer-v2
17+
npm install
18+
npm run build
19+
cd explorer
1820
npm install
1921
npm run build
2022
- name: Deploy
2123
uses: peaceiris/actions-gh-pages@v3
2224
with:
2325
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
publish_dir: ./explorer-v2/build
26+
publish_dir: ./explorer/dist
2527
force_orphan: true
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
'assert shim';
2-
3-
if (typeof module !== 'undefined') {
4-
// eslint-disable-next-line no-undef -- ignore
5-
module.exports = function () {
6-
/* noop */
7-
};
8-
}
1+
module.exports = function () {
2+
'assert shim';
3+
};

explorer-v2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"@sveltejs/kit": "^1.0.0-next.108",
1616
"eslint": "^7.26.0",
1717
"prettier": "^2.3.0",
18-
"prettier-plugin-svelte": "^2.3.0",
19-
"svelte": "^3.34.0"
18+
"prettier-plugin-svelte": "^2.3.0"
2019
},
2120
"type": "module",
2221
"dependencies": {
@@ -26,6 +25,7 @@
2625
"eslint-plugin-svelte3": "^3.2.0",
2726
"eslint4b": "^7.26.0",
2827
"pako": "^2.0.3",
28+
"svelte": "^3.34.0",
2929
"svelte-eslint-parser": "file:../svelte-eslint-parser.tgz"
3030
}
3131
}

explorer-v2/svelte.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,24 @@ const config = {
2121
alias: {
2222
assert: resolve('./build-system/shim/assert.js'),
2323
lodash: resolve('./build-system/shim/lodash.js'),
24-
path: resolve('./build-system/shim/path.js') //
24+
path: resolve('./build-system/shim/path.js')
25+
}
26+
},
27+
optimizeDeps: {
28+
// include: [
29+
// resolve('./node_modules/eslint-scope/lib/index.js'),
30+
// resolve('./build-system/shim/assert.js')
31+
// ]
32+
},
33+
build: {
34+
minify: false,
35+
get commonjsOptions() {
36+
return {
37+
include: [/node_modules/, resolve('./build-system/shim/assert.js')]
38+
};
2539
}
2640
},
2741
plugins: [
28-
stringReplace({
29-
test: /eslint-scope|svelte-eslint-parser.js/u,
30-
search: 'require\\("assert"\\)',
31-
replace: (original) => {
32-
return `(()=>{});//${original}`;
33-
},
34-
flags: ''
35-
}),
3642
stringReplace({
3743
test: /eslint-plugin-svelte3.js/u,
3844
search: 'Object\\.keys\\(__require\\.cache\\)',

0 commit comments

Comments
 (0)