yann-core 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -34
- package/package.json +4 -1
- package/dist/types/env.d.ts +0 -1
- package/dist/types/eslint.config.d.ts +0 -2
- package/dist/types/vite.config.d.ts +0 -3
- /package/dist/{yann-core.js → index.js} +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/useI18n → useI18n}/index.d.ts +0 -0
- /package/dist/types/{src/useState → useState}/index.d.ts +0 -0
- /package/dist/types/{src/useTimer → useTimer}/index.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,39 +1,15 @@
|
|
|
1
|
-
# core
|
|
1
|
+
# yann-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Timer
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## Type Support for `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
-
|
|
13
|
-
## Customize configuration
|
|
14
|
-
|
|
15
|
-
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
16
|
-
|
|
17
|
-
## Project Setup
|
|
18
|
-
|
|
19
|
-
```sh
|
|
20
|
-
pnpm install
|
|
5
|
+
```ts
|
|
6
|
+
const timer = useRafTimer(()=>{
|
|
7
|
+
console.log('tick');
|
|
8
|
+
},1000);
|
|
21
9
|
```
|
|
22
10
|
|
|
23
|
-
|
|
11
|
+
## State
|
|
24
12
|
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Type-Check, Compile and Minify for Production
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
pnpm build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Lint with [ESLint](https://eslint.org/)
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
pnpm lint
|
|
39
|
-
```
|
|
13
|
+
```ts
|
|
14
|
+
const [state, setState] = useState(0);
|
|
15
|
+
```
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yann-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
6
9
|
"scripts": {
|
|
7
10
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
8
11
|
"build-only": "vite build",
|
package/dist/types/env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|