Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 711eb84

Browse files
authored
ready for v1 release (#17)
* ready for v1 release * add vue support version
1 parent d02d637 commit 711eb84

File tree

6 files changed

+3100
-2474
lines changed

6 files changed

+3100
-2474
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ module.exports = {
1010
jest: true
1111
},
1212
extends: [
13-
'@antfu/eslint-config-ts',
13+
'plugin:@typescript-eslint/recommended',
14+
'plugin:@typescript-eslint/eslint-recommended',
1415
'plugin:prettier/recommended',
1516
'prettier'
1617
],
18+
plugins: ['@typescript-eslint'],
19+
parserOptions: {
20+
parser: '@typescript-eslint/parser',
21+
sourceType: 'module'
22+
},
1723
rules: {}
1824
}

.github/workflows/lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v2
27-
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v2.2.2
2829
with:
29-
version: 6.10.0
30+
version: 7.4
3031
- name: Setup Node.js v14.x
3132
uses: actions/setup-node@v2
3233
with:
@@ -35,4 +36,4 @@ jobs:
3536
- name: Install
3637
run: pnpm install
3738
- name: Lint
38-
run: pnpm run lint
39+
run: pnpm lint

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest, windows-latest, macos-latest]
27-
node: [12, 14, 16]
27+
node: [14, 16, 18]
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v2
31-
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
31+
- name: Install pnpm
32+
uses: pnpm/action-setup@v2.2.2
3233
with:
33-
version: 6.10.0
34+
version: 7.4
3435
- name: Setup Node.js ${{ matrix.node }}
3536
uses: actions/setup-node@v2
3637
with:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Composition API for `vue-i18n` in Vue 2.x
66
<img alt="npm" src="https://img.shields.io/npm/v/vue-i18n-composable">
77
</a>
88

9+
## Support Vue version
10+
- `vue-i18n-composable@v1`: `>=2.5 <=2.6`
11+
912
## Install
1013

1114
<pre>

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Composition API for vue-i18n in Vue 2.x",
44
"version": "0.2.2",
55
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
6+
"packageManager": "pnpm@7.4.0",
67
"bugs": {
78
"url": "https://github.com/inlitify/vue-i18n-composable/issues"
89
},
@@ -21,20 +22,21 @@
2122
}
2223
},
2324
"devDependencies": {
24-
"@antfu/eslint-config-ts": "^0.6.6",
2525
"@kazupon/lerna-changelog": "^4.3.0",
2626
"@secretlint/secretlint-rule-preset-recommend": "^3.1.0",
27+
"@typescript-eslint/eslint-plugin": "^5.30.0",
28+
"@typescript-eslint/parser": "^5.30.0",
2729
"@types/jest": "^27.0.1",
2830
"@vue/composition-api": "^1.1.4",
2931
"@vue/test-utils": "^1.2.2",
3032
"@vue/vue2-jest": "^27.0.0-alpha.1",
31-
"eslint": "^7.32.0",
33+
"eslint": "^8.19.0",
3234
"eslint-config-prettier": "^8.3.0",
3335
"eslint-plugin-prettier": "^4.0.0",
3436
"jest": "^27.1.1",
3537
"lint-staged": "^11.1.2",
3638
"npm-run-all": "^4.1.5",
37-
"prettier": "^2.4.0",
39+
"prettier": "^2.7.1",
3840
"secretlint": "^3.3.0",
3941
"shipjs": "^0.23.3",
4042
"ts-jest": "^27.0.5",
@@ -92,12 +94,12 @@
9294
"scripts": {
9395
"build": "tsup src/index.ts --format iife,cjs,esm --dts --external vue,vue-i18n,@vue/composition-api",
9496
"dev": "npm run build -- --watch",
95-
"fix": "npm-run-all --parallel lint:fix format:fix",
96-
"format:fix": "npm-run-all --parallel \"format:prettier -- --write\"",
97+
"fix": "run-p lint:fix format:fix",
98+
"format:fix": "run-p \"format:prettier --write\"",
9799
"format:prettier": "prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'",
98-
"lint": "npm-run-all --parallel lint:secret lint:codes",
100+
"lint": "run-p lint:secret lint:codes",
99101
"lint:codes": "eslint ./src --ext .js,.ts,.vue,.json",
100-
"lint:fix": "npm-run-all --parallel \"lint:codes -- --fix\"",
102+
"lint:fix": "run-p \"lint:codes --fix\"",
101103
"lint:secret": "secretlint \"**/*\"",
102104
"prepublishOnly": "npm run build",
103105
"release": "npx bumpp --commit --tag && npm publish && git push",

0 commit comments

Comments
 (0)