Skip to content

Commit 1a797d9

Browse files
imtaotaozhoushaw
andauthored
Feat/esm (#428)
* feat: add dev demo * feat: add ts types * feat: adjust code * feat: modify esm runtime code * feat: use garfish loader * feat: add esm module api * fix: fix bug of loadApp and fix some types * feat: stash code * feat: add code * refactor: refactor app esm * feat: add comment * test: remove error test case * feat: add esm dev code * fix: fix sourcemap bug * chore: remove es-module package * test: modify esm dev code * feat: add esm plugin package * style: adjust tip message * feat: add es module loader * fix: clear esmLoader cache * refactor: adjust vite demo app * style: remove app.esmModules * feat: support vm sandbox esm * chore: modify tsup config * test: modify vm unit test case * feat: support inline es script * feat: adjust code sourcemap * feat: add options of esm plugin * docs: modify readme of esm package * feat: add comment * feat: support sourcemap convert * docs: update es-module readme * fix: parse sourcemap add try catch * fix: parse sourcemap add try catch * feat: add code * style: adjust code style * style: modify filename * docs: modify readme of esmodule package * fix: modify `GarfishEsmModule` to `GarfishEsModule` * docs: update es-module readme * fix: fix dynamic import matching vulnerability * feat: remove unless code * docs: update esm docs * chore(es-module): fix build type error * test: add and adjust test case * chore: support windows environment debug and adjust code style * chore: update lock file * chore: update lock.yaml * chore: update nodejss version notes * chore: remove extra deps * test: adjust unit test cases * chore(ci): update ci node version * chore(ci): update node version * chore(ci): update nodejs version * test: remove extra projects * chore: update pnpm-lock.yaml * docs: update docs and readme * docs(esm): update readme * style: modify docs and adjust code style * style: modify docs and adjust code style * chore(ci): update dev project port * docs: update docs * fix(es-module): fix the judgment of disable app * feat: modify esmodule ts type * refactor: modify env variable name * refactor: adjust vm plugin code * docs: update docs * chore(ci): modify ci file Co-authored-by: Zhou xiao <[email protected]>
1 parent fdebbc7 commit 1a797d9

File tree

118 files changed

+4003
-1006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4003
-1006
lines changed

Diff for: .eslintrc.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ module.exports = {
4545
},
4646
overrides: [
4747
{
48-
files: ['scripts/**', '*.config.js', '.eslintrc.js', '**/__tests__/**'],
48+
files: [
49+
'scripts/**',
50+
'*.config.js',
51+
'.eslintrc.js',
52+
'**/__tests__/**',
53+
'packages/utils/src/test.ts',
54+
],
4955
rules: {
5056
'object-curly-newline': 'off',
5157
'no-restricted-globals': 'off',

Diff for: .github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
node-version: [14.17.0]
16+
node-version: [16.10.0]
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: pnpm/[email protected]
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-20.04
3838
strategy:
3939
matrix:
40-
node-version: [14.17.0]
40+
node-version: [16.10.0]
4141
steps:
4242
- uses: actions/checkout@v2
4343
- uses: pnpm/[email protected]
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
install: false
6161
start: node scripts/devCypress.js
62-
wait-on: 'http://localhost:8090,http://localhost:8091,http://localhost:8092,http://localhost:8093,http://localhost:8094,http://localhost:8095,http://localhost:4200'
62+
wait-on: 'http://localhost:8090,http://localhost:8091,http://localhost:8092,http://localhost:8093,http://localhost:8094,http://localhost:8095,http://localhost:8096,http://localhost:8097'
6363
wait-on-timeout: 120
6464
parallel: true
6565
record: true

Diff for: .github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
12-
node-version: [14.17.0]
12+
node-version: [16.10.0]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Use Node.js ${{ matrix.node-version }}

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-20.04
1717
strategy:
1818
matrix:
19-
node-version: [14.17.0]
19+
node-version: [16.10.0]
2020
steps:
2121
- uses: actions/checkout@v2
2222
with:

Diff for: .ls-lint.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ ls:
33
.js: camelCase
44
.ts: camelCase
55
.d.ts: camelCase
6-
.spec.ts: camelCase | PascalCase
6+
.spec.ts: camelCase
77

8-
# dev/*/{src}:
9-
# .js: camelCase
10-
# .ts: camelCase
11-
# .jsx: camelCase
12-
# .tsx: camelCase
13-
# .d.ts: camelCase
8+
dev/*/{src}:
9+
.js: camelCase | point.case
10+
.ts: camelCase | point.case
11+
.jsx: camelCase | point.case
12+
.tsx: camelCase | point.case | PascalCase
13+
.d.ts: camelCase
14+
.component.ts: camelCase | point.case
1415

1516
website/{src,docs}:
1617
.js: camelCase

Diff for: .pnpmfile.cjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ function readPackage(pkg, context) {
77
}
88
pkg.peerDependencies = {
99
vue: '^2.0.0',
10-
};
10+
}
1111
context.log('vue => vue@2 in dependencies of vue-template-compiler');
1212
}
13-
1413
return pkg;
1514
}
1615

Diff for: README.ch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ yarn add garfish
3737
> 目前文档站点 ([Garfish](https://garfish.top/)) 仅提供了中文版本,不久后将提供英文版本文档
3838
3939
- [关于 Garfish](https://garfish.top/guide)
40-
- [快速开始](https://garfish.top/quick-start)
40+
- [快速开始](https://garfish.top/quickStart)
4141
- [API](https://garfish.top/api)
4242

4343
## 功能

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ yarn add garfish
3737
> The doc site ([Garfish](https://garfish.top/)) is only available in Chinese for now, we are planning to add English versions soon.
3838
3939
- [About Garfish](https://garfish.top/guide)
40-
- [Quick Start](https://garfish.top/quick-start)
40+
- [Quick Start](https://garfish.top/quickStart)
4141
- [API References](https://garfish.top/api)
4242

4343
## Functionality

Diff for: dev/app-angular/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
44

55
## Development server
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:8097/`. The app will automatically reload if you change any of the source files.
88

99
## Code scaffolding
1010

Diff for: dev/app-angular/e2e/protractor.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports.config = {
1414
browserName: 'chrome',
1515
},
1616
directConnect: true,
17-
baseUrl: 'http://localhost:4200/',
17+
baseUrl: 'http://localhost:8097/',
1818
framework: 'jasmine',
1919
jasmineNodeOpts: {
2020
showColors: true,

Diff for: dev/app-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"scripts": {
55
"ng": "ng",
6-
"start": "ng serve",
6+
"start": "ng serve --port 8097",
77
"build": "ng build",
88
"test": "ng test",
99
"lint": "ng lint",

0 commit comments

Comments
 (0)