Skip to content

Commit 07b9f28

Browse files
committed
refactor: replace core with core-ts
1 parent 39516d4 commit 07b9f28

Some content is hidden

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

77 files changed

+205
-2034
lines changed

core-ts/.gitignore

Lines changed: 0 additions & 28 deletions
This file was deleted.

core-ts/README.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

core-ts/package.json

Lines changed: 0 additions & 69 deletions
This file was deleted.

core-ts/src/components/__tests__/select.spec.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

core/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

core/.gitignore

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1-
.vscode
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
210
node_modules
3-
dist
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?

core/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

core/README.md

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,52 @@
1-
![Vue.js Cron Vuetify Hero](https://raw.githubusercontent.com/abichinger/vue-js-cron/main/assets/vue-js-cron-hero.png)
1+
# core-ts
22

3-
<p align="center">
4-
<em>generate cron expressions using vue.js</em>
5-
</p>
3+
This template should help get you started developing with Vue 3 in Vite.
64

7-
<p align="center">
8-
<a href="https://www.npmjs.com/package/@vue-js-cron/core">Core</a> |
9-
<a href="https://www.npmjs.com/package/@vue-js-cron/light">Light</a> |
10-
<a href="https://www.npmjs.com/package/@vue-js-cron/vuetify">Vuetify</a> |
11-
<a href="https://www.npmjs.com/package/@vue-js-cron/element-plus">Element Plus</a> |
12-
<a href="https://www.npmjs.com/package/@vue-js-cron/ant">Ant</a> |
13-
<a href="https://www.npmjs.com/package/@vue-js-cron/quasar">Quasar</a>
14-
</p>
5+
## Recommended IDE Setup
156

16-
## Usage - Core
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
178

18-
[Demo](https://abichinger.github.io/vue-js-cron/demo.html)
9+
## Type Support for `.vue` Imports in TS
1910

20-
[Get Started](https://abichinger.github.io/vue-js-cron/guide/getting-started.html#renderless)
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 [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
2112

22-
[API - cron-core](https://abichinger.github.io/vue-js-cron/api/core.html)
13+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
2314

24-
## Attribution
15+
1. Disable the built-in TypeScript Extension
16+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
2519

26-
This component is inspired by [react-js-cron](https://github.com/xrutayisire/react-js-cron) and [jqcron](https://github.com/arnapou/jqcron)
20+
## Customize configuration
21+
22+
See [Vite Configuration Reference](https://vitejs.dev/config/).
23+
24+
## Project Setup
25+
26+
```sh
27+
npm install
28+
```
29+
30+
### Compile and Hot-Reload for Development
31+
32+
```sh
33+
npm run dev
34+
```
35+
36+
### Type-Check, Compile and Minify for Production
37+
38+
```sh
39+
npm run build
40+
```
41+
42+
### Run Unit Tests with [Vitest](https://vitest.dev/)
43+
44+
```sh
45+
npm run test:unit
46+
```
47+
48+
### Lint with [ESLint](https://eslint.org/)
49+
50+
```sh
51+
npm run lint
52+
```

0 commit comments

Comments
 (0)