-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
ad40388
commit 0c83b2d
Showing
25 changed files
with
4,049 additions
and
3,524 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,16 +12,14 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
uses: surmon-china/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
# body: | ||
draft: false | ||
prerelease: false | ||
body: | | ||
Please refer to [CHANGELOG.md](/CHANGELOG.md) for details. |
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 |
---|---|---|
|
@@ -7,10 +7,8 @@ package-lock.json | |
npm-debug.log | ||
|
||
# output | ||
es | ||
es/* | ||
lib | ||
lib/* | ||
dist | ||
dist/* | ||
|
||
# Test Relative Folders | ||
coverage |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import globals from 'globals' | ||
import js from '@eslint/js' | ||
import ts from 'typescript-eslint' | ||
import prettier from 'eslint-plugin-prettier/recommended' | ||
|
||
const globalsConfig = { | ||
...globals.node, | ||
...globals.browser, | ||
} | ||
|
||
const rules = { | ||
'prettier/prettier': 'error', | ||
'prefer-const': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/ban-types': 0, | ||
} | ||
|
||
export default [ | ||
{ languageOptions: { globals: globalsConfig } }, | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
prettier, | ||
{ rules }, | ||
{ ignores: ['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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ | ||
module.exports = { | ||
export default { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
collectCoverage: true, | ||
coverageDirectory: 'coverage', | ||
} |
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,63 +1,61 @@ | ||
{ | ||
"name": "veact-use", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Collection of Veact Hooks", | ||
"keywords": [ | ||
"React mutable state lib", | ||
"React vue state", | ||
"React composition API", | ||
"Veact Hooks" | ||
], | ||
"license": "MIT", | ||
"author": "Surmon", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/veactjs/veact-use.git" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/veactjs/veact-use", | ||
"funding": "https://github.com/veactjs/veact-use?sponsor=1", | ||
"repository": "github:veactjs/veact-use", | ||
"files": [ | ||
"CHANGELOG.md", | ||
"lib/", | ||
"es/" | ||
"dist/" | ||
], | ||
"sideEffects": false, | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"browser": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"typings": "lib/index.d.ts", | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"lint": "eslint --ext .ts src", | ||
"lint": "eslint src", | ||
"format": "npm run lint --fix", | ||
"test": "jest", | ||
"build:lib": "rimraf lib && tsc", | ||
"build:es": "rimraf es && tsc -m esNext --outDir es", | ||
"build": "npm run build:lib && npm run build:es", | ||
"rebirth": "npm run lint && npm run test && npm run build", | ||
"test:watch": "jest --watch", | ||
"test:coverage": "jest --collectCoverage", | ||
"build": "rimraf dist && tsc", | ||
"ci": "npm run lint && npm run test && npm run build", | ||
"release": ". ./scripts/release.sh" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0", | ||
"veact": "^0.1" | ||
"react": "^16.8.0 || ^17 || ^18 || ^19", | ||
"react-dom": "^16.8.0 || ^17 || ^18 || ^19", | ||
"veact": "*" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/react-hooks": "^7.0.1", | ||
"@types/jest": "^26.0.24", | ||
"@types/react": "^17.0.15", | ||
"@types/react-dom": "^17.0.9", | ||
"@typescript-eslint/eslint-plugin": "^4.28.4", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"eslint": "^7.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "^4.3.5", | ||
"veact": "^0.1.2" | ||
"@eslint/js": "^9.x", | ||
"@testing-library/react": "^16.x", | ||
"@types/eslint": "^9.x", | ||
"@types/jest": "^29.x", | ||
"@types/react": "^18.x", | ||
"@types/react-dom": "^18.x", | ||
"eslint": "^9.x", | ||
"eslint-config-prettier": "^9.x", | ||
"eslint-plugin-prettier": "^5.x", | ||
"globals": "^15.9.0", | ||
"jest": "^29.x", | ||
"prettier": "^3.x", | ||
"react": "^18.x", | ||
"react-dom": "^18.x", | ||
"rimraf": "^6.x", | ||
"ts-jest": "^29.x", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.x", | ||
"veact": "latest" | ||
} | ||
} |
Oops, something went wrong.