-
-
Notifications
You must be signed in to change notification settings - Fork 204
improve build setting #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e87ce45
improve build setting
kotarella1110 e235d7f
update settings
kotarella1110 cb05743
improve workflow
kotarella1110 16a1429
update workflow
kotarella1110 f8b046f
update README.md
kotarella1110 2c405bf
upgrade packages
kotarella1110 69220ef
fix peerDeps
kotarella1110 42e1c5b
improve types
kotarella1110 fad8eab
resolve conflicts
kotarella1110 9a1ec95
fix superstruct
kotarella1110 3cffb0f
run lint
kotarella1110 04601a3
fix prepublishOnly script
kotarella1110 f739a8b
resolve conflicts
kotarella1110 01db8df
0.0.4
kotarella1110 88b653a
fix types
kotarella1110 57795af
Merge pull request #12 from react-hook-form/improve-types
kotarella1110 f22f332
update README.md
kotarella1110 6436eb1
separate prettier setting
kotarella1110 5b162fa
chage umd name from HookFormResolvers to ReactHookFormResolvers
kotarella1110 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| /node_modules | ||
| /dist | ||
| /esm | ||
| /coverage | ||
| !.*.js |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,36 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| paths-ignore: | ||
| - ".gitignore" | ||
| - ".npmignore" | ||
| - "*.md" | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [12.x] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - name: Install dependencies | ||
| run: yarn install --frozen-lockfile | ||
| - name: Lint | ||
| run: | | ||
| npm run lint:types | ||
| npm run lint | ||
| - name: Test | ||
| run: npm test | ||
| env: | ||
| CI: true | ||
| - name: Build | ||
| run: npm run build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,4 @@ | ||
| module.exports = { | ||
| singleQuote: true, | ||
| trailingComma: 'all', | ||
| }; |
This file contains hidden or 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 hidden or 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,52 +1,97 @@ | ||
| { | ||
| "name": "@hookform/resolvers", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "React Hook Form validation resolvers: Yup, Joi, Superstruct and etc.", | ||
| "main": "dist/resolvers.js", | ||
| "module": "dist/resolvers.es.js", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.esm.js", | ||
| "umd:main": "dist/index.umd.min.js", | ||
| "unpkg": "dist/index.umd.min.js", | ||
| "jsdelivr": "dist/index.umd.min.js", | ||
| "jsnext:main": "index.esm.js", | ||
| "types": "dist/index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+ssh://git@github.com/react-hook-form/resolvers.git" | ||
| }, | ||
| "sideEffects": false, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "author": "bluebill1049 <bluebill1049@hotmail.com>", | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "clean": "rm -rf dist", | ||
| "build": "rollup -c", | ||
| "prepublishOnly": "yarn lint && yarn test && yarn run clean && yarn build", | ||
| "clean": "rimraf dist", | ||
| "build": "npm run clean && rollup -c", | ||
| "lint": "eslint '**/*.{js,ts}'", | ||
| "lint:fix": "npm run lint -- --fix", | ||
| "lint:types": "tsc --noEmit", | ||
| "test": "jest --runInBand", | ||
| "lint": "yarn lint:check --fix && yarn prettier", | ||
| "prettier": "prettier --write './src/**/*.ts' './src/**/*.tsx' --config ./.prettierrc", | ||
| "lint:check": "eslint ./src --ext .jsx,.ts --ignore-pattern *.test.ts --report-unused-disable-directives", | ||
| "test:watch": "yarn test -- --watchAll --coverage" | ||
| "test:watch": "npm run test -- --watchAll --coverage", | ||
| "prepublishOnly": "npm run lint && npm run lint:types && npm test && npm run build" | ||
| }, | ||
| "keywords": [ | ||
| "scheme", | ||
| "validation", | ||
| "scheme-validation", | ||
| "hookform", | ||
| "react-hook-form", | ||
| "yup", | ||
| "joi", | ||
| "sperstruct", | ||
| "typescript" | ||
| ], | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/react-hook-form/resolvers.git" | ||
| }, | ||
| "author": "bluebill1049 <bluebill1049@hotmail.com>", | ||
| "license": "MIT", | ||
| "bugs": { | ||
| "url": "https://github.com/react-hook-form/resolvers/issues" | ||
| }, | ||
| "homepage": "https://github.com/react-hook-form/resolvers#readme", | ||
| "devDependencies": { | ||
| "@hapi/joi": "^17.1.1", | ||
| "@rollup/plugin-commonjs": "^13.0.0", | ||
| "@rollup/plugin-json": "^4.1.0", | ||
| "@rollup/plugin-node-resolve": "^8.0.1", | ||
| "@types/hapi__joi": "^17.1.0", | ||
| "@types/jest": "^25.1.2", | ||
| "@types/yup": "^0.28.0", | ||
| "@typescript-eslint/eslint-plugin": "^2.18.0", | ||
| "@typescript-eslint/parser": "^2.18.0", | ||
| "eslint": "^6.8.0", | ||
| "jest": "^25.1.0", | ||
| "prettier": "^1.19.1", | ||
| "@types/jest": "^26.0.0", | ||
| "@types/yup": "^0.29.3", | ||
| "@typescript-eslint/eslint-plugin": "^3.2.0", | ||
| "@typescript-eslint/parser": "^3.2.0", | ||
| "eslint": "^7.2.0", | ||
| "eslint-config-prettier": "^6.11.0", | ||
| "eslint-plugin-prettier": "^3.1.4", | ||
| "husky": "^4.2.5", | ||
| "jest": "^26.0.1", | ||
| "lint-staged": "^10.2.10", | ||
| "prettier": "^2.0.5", | ||
| "react": "^16.13.1", | ||
| "rollup": "^1.31.0", | ||
| "rollup-plugin-typescript2": "^0.25.3", | ||
| "react-hook-form": "^6.0.0-rc.4", | ||
| "rimraf": "^3.0.2", | ||
| "rollup": "^2.16.1", | ||
| "rollup-plugin-peer-deps-external": "^2.2.2", | ||
| "rollup-plugin-sourcemaps": "^0.6.2", | ||
| "rollup-plugin-terser": "^6.1.0", | ||
| "rollup-plugin-typescript2": "^0.27.1", | ||
| "superstruct": "^0.8.3", | ||
| "ts-jest": "^25.2.0", | ||
| "ts-jest": "^26.1.0", | ||
| "typescript": "^3.7.5", | ||
| "yup": "^0.28.5" | ||
| "yup": "^0.29.1" | ||
| }, | ||
| "dependencies": { | ||
| "react-hook-form": "6.0.0-beta.2" | ||
| "peerDependencies": { | ||
| "react-hook-form": ">=6.0.0" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/react-hook-form/resolvers/issues" | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "npm run lint:types && lint-staged" | ||
| } | ||
| }, | ||
| "homepage": "https://github.com/react-hook-form/resolvers#readme" | ||
| "lint-staged": { | ||
| "*.{js,ts}": [ | ||
| "npm run lint:fix" | ||
| ], | ||
| "*.{md,json}": [ | ||
| "prettier --write", | ||
| "git add" | ||
| ] | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bluebill1049 Is this keyword OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! thanks