Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support cjs and esm both #265

Merged
merged 42 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6580f0c
feat: refactor with typescript
fengmk2 Jun 4, 2023
1e5072f
deps: use @eggjs/koa
fengmk2 Jun 4, 2023
c8dad06
refactor: Lifecycle
fengmk2 Jun 5, 2023
ba12999
f
fengmk2 Jun 8, 2024
3890c15
f
fengmk2 Jun 11, 2024
9aaeaa4
FileLoader
fengmk2 Jun 15, 2024
7bdda0d
test: add ts module loader
fengmk2 Jun 15, 2024
1a4a863
add plugin loader
fengmk2 Jun 15, 2024
afde200
add config loader
fengmk2 Jun 15, 2024
9c13225
add extend loader
fengmk2 Jun 15, 2024
25b3deb
add custom loader
fengmk2 Jun 15, 2024
237fe26
add service loader
fengmk2 Jun 15, 2024
ee29ae0
add middleware loader
fengmk2 Jun 15, 2024
aef717d
add controller loader
fengmk2 Jun 15, 2024
55a0a4d
add router loader
fengmk2 Jun 15, 2024
509204f
add custom_loader loader
fengmk2 Jun 15, 2024
841d26d
run unittest
fengmk2 Jun 15, 2024
e444095
support .cjs and .mjs
fengmk2 Jun 16, 2024
ed50b9b
run pass the first test
fengmk2 Jun 16, 2024
c5ff637
fix config loader
fengmk2 Jun 16, 2024
22e77bc
pass test/loader/context_loader.test.ts
fengmk2 Jun 16, 2024
593f7d1
pass test/loader/mixin/load_service.test.ts
fengmk2 Jun 16, 2024
136a38f
pass test/loader/mixin/load_middleware.test.ts
fengmk2 Jun 16, 2024
ad21158
pass test/loader/mixin/load_helper_extend.test.ts
fengmk2 Jun 16, 2024
6a4221d
pass test/loader/mixin/load_extend.test.ts
fengmk2 Jun 16, 2024
a8e176f
pass test/loader/mixin/load_custom_loader.test.ts
fengmk2 Jun 16, 2024
6a968b5
pass test/loader/mixin/load_custom_app.test.ts
fengmk2 Jun 16, 2024
5516c53
pass test/loader/mixin/load_custom_agent.test.ts
fengmk2 Jun 16, 2024
355f926
pass test/loader/mixin/load_config.test.ts
fengmk2 Jun 16, 2024
e5ca6cf
pass test/loader/mixin/load_controller.test.ts
fengmk2 Jun 16, 2024
6425b00
pass test/utils/router.test.ts
fengmk2 Jun 16, 2024
22e3980
add utils.deprecated
fengmk2 Jun 16, 2024
8ed0c6e
use pathToFileURL to fix windows import
fengmk2 Jun 16, 2024
8aff120
pass test/loader/mixin/load_plugin.test.ts
fengmk2 Jun 17, 2024
0a6cb60
pass test/loader/get_server_env.test.ts
fengmk2 Jun 17, 2024
dea827b
pass test/loader/get_load_units.test.ts
fengmk2 Jun 17, 2024
b13931e
pass test/loader/get_framework_paths.test.ts
fengmk2 Jun 17, 2024
5e28f95
pass test/loader/get_appname.test.ts
fengmk2 Jun 17, 2024
98a77b3
pass test/loader/get_app_info.test.ts
fengmk2 Jun 17, 2024
7bb2885
pass test/loader/egg_loader.test.ts
fengmk2 Jun 17, 2024
600b75d
pass test/egg-ts.test.ts
fengmk2 Jun 17, 2024
dcc9fc2
fix import error
fengmk2 Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"root": true,
"extends": "eslint-config-egg"
"extends": [
"eslint-config-egg/typescript",
"eslint-config-egg/lib/rules/enforce-node-prefix"
]
}
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

24 changes: 0 additions & 24 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI
on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

Expand All @@ -12,4 +11,6 @@ jobs:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
version: '14.19.0, 14, 16, 18, 20'
version: '18.19.0, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ test/fixtures/egg/node_modules/egg-core
package-lock.json
run
test/fixtures/*/timing.json
lib/
.tshy*
dist
Loading
Loading