File tree Expand file tree Collapse file tree 4 files changed +24
-21
lines changed Expand file tree Collapse file tree 4 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ jobs:
14
14
node-version : 14
15
15
- name : Install And Build
16
16
run : |+
17
- cd explorer-v2
17
+ npm install
18
+ npm run build
19
+ cd explorer
18
20
npm install
19
21
npm run build
20
22
- name : Deploy
21
23
uses : peaceiris/actions-gh-pages@v3
22
24
with :
23
25
github_token : ${{ secrets.GITHUB_TOKEN }}
24
- publish_dir : ./explorer-v2/build
26
+ publish_dir : ./explorer/dist
25
27
force_orphan : true
Original file line number Diff line number Diff line change 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
+ } ;
Original file line number Diff line number Diff line change 15
15
"@sveltejs/kit" : " ^1.0.0-next.108" ,
16
16
"eslint" : " ^7.26.0" ,
17
17
"prettier" : " ^2.3.0" ,
18
- "prettier-plugin-svelte" : " ^2.3.0" ,
19
- "svelte" : " ^3.34.0"
18
+ "prettier-plugin-svelte" : " ^2.3.0"
20
19
},
21
20
"type" : " module" ,
22
21
"dependencies" : {
26
25
"eslint-plugin-svelte3" : " ^3.2.0" ,
27
26
"eslint4b" : " ^7.26.0" ,
28
27
"pako" : " ^2.0.3" ,
28
+ "svelte" : " ^3.34.0" ,
29
29
"svelte-eslint-parser" : " file:../svelte-eslint-parser.tgz"
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -21,18 +21,24 @@ const config = {
21
21
alias : {
22
22
assert : resolve ( './build-system/shim/assert.js' ) ,
23
23
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 : [ / n o d e _ m o d u l e s / , resolve ( './build-system/shim/assert.js' ) ]
38
+ } ;
25
39
}
26
40
} ,
27
41
plugins : [
28
- stringReplace ( {
29
- test : / e s l i n t - s c o p e | s v e l t e - e s l i n t - p a r s e r .j s / u,
30
- search : 'require\\("assert"\\)' ,
31
- replace : ( original ) => {
32
- return `(()=>{});//${ original } ` ;
33
- } ,
34
- flags : ''
35
- } ) ,
36
42
stringReplace ( {
37
43
test : / e s l i n t - p l u g i n - s v e l t e 3 .j s / u,
38
44
search : 'Object\\.keys\\(__require\\.cache\\)' ,
You can’t perform that action at this time.
0 commit comments