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:
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
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 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" : {
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}
Original file line number Diff line number Diff 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 : [ / n o d e _ m o d u l e s / , resolve ( './build-system/shim/assert.js' ) ]
38+ } ;
2539 }
2640 } ,
2741 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- } ) ,
3642 stringReplace ( {
3743 test : / e s l i n t - p l u g i n - s v e l t e 3 .j s / u,
3844 search : 'Object\\.keys\\(__require\\.cache\\)' ,
You can’t perform that action at this time.
0 commit comments