-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 更改start-dev-server相关逻辑,将require改成使用importx-tsup进行导入 (#214)
- Loading branch information
1 parent
6bb7168
commit 4c5ac1c
Showing
16 changed files
with
1,162 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
rules: { | ||
/// 必须要关闭的规则,否则依赖注入不可用 | ||
'perfectionist/sort-imports': 'off', | ||
'ts/consistent-type-imports': 'off', | ||
'ts/no-empty-object-type': 'off', | ||
'ts/no-redeclare': 'off', | ||
|
||
// 可选的规则 | ||
'antfu/if-newline': 'off', | ||
}, | ||
ignores: [ | ||
'.cell', | ||
'lib', | ||
'node_modules', | ||
'dist', | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import './main'; | ||
import { autoBind } from '@celljs/core'; | ||
import './main' | ||
import { autoBind } from '@celljs/core' | ||
|
||
export default autoBind(); | ||
export default autoBind() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template></template> | ||
<template> | ||
<div>Hello name</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const WelcomeServer = Symbol('WelcomeServer'); | ||
export const WelcomeServer = Symbol('WelcomeServer') | ||
|
||
export interface WelcomeServer { | ||
say(): Promise<string>; | ||
say: () => Promise<string> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import './welcome-server'; | ||
import { autoBind } from '@celljs/core'; | ||
import './welcome-server' | ||
import { autoBind } from '@celljs/core' | ||
|
||
export default autoBind(); | ||
export default autoBind() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { WelcomeServer } from '../common/welcome-protocol'; | ||
import { Rpc } from '@celljs/rpc'; | ||
import { Rpc } from '@celljs/rpc' | ||
import { WelcomeServer } from '../common/welcome-protocol' | ||
|
||
@Rpc(WelcomeServer) | ||
export class WelcomeServerImpl implements WelcomeServer { | ||
say(): Promise<string> { | ||
return Promise.resolve('Welcome to Cell'); | ||
} | ||
async say(): Promise<string> { | ||
return 'Welcome to Cell' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.