-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
209 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
module.exports = { | ||
extends: ['kagura/typescript'], | ||
rules: { | ||
'@typescript-eslint/space-infix-ops': 'error' | ||
'@typescript-eslint/space-infix-ops': 'error', | ||
'@typescript-eslint/type-annotation-spacing': ['error', { | ||
before: false, | ||
after: true | ||
}] | ||
} | ||
} |
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,15 @@ | ||
# Modules | ||
|
||
Module accept `string[]` or `IModule[]`. | ||
|
||
## String | ||
|
||
When you pass `string[]` it will be transform as `IModule[]` | ||
|
||
|
||
## IModule | ||
|
||
- name (package entry name) | ||
- global (pacakge global name) | ||
- spare (links that need to be bind to the page) | ||
- relativeModule (If scanner error, try it) |
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,13 @@ | ||
# URL | ||
|
||
`vite-plugin-cdn2` provide two preset source. `jsdelivr` and `unpkg`. you can using it like this way. | ||
|
||
```js | ||
import { cdn } from 'vite-plugin-cdn2' | ||
import { unpkg } from 'vite-plugin-cdn2/url' | ||
|
||
cdn({url:unpkg,modules:['vue']}) | ||
|
||
``` | ||
|
||
Then all of source will bind with unpkg. |
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
Oops, something went wrong.