Skip to content

Commit

Permalink
chore: add release it (#1546)
Browse files Browse the repository at this point in the history
* chore: add release-it

* chore: basic release it setup

* chore: reorder package.json sections
  • Loading branch information
mdjastrzebski authored Dec 18, 2023
1 parent edf52b6 commit 355b667
Show file tree
Hide file tree
Showing 3 changed files with 1,631 additions and 96 deletions.
17 changes: 17 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
}
}
}
71 changes: 38 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@
"test",
"integration"
],
"scripts": {
"clean": "del build",
"test": "jest",
"test:ci": "jest --maxWorkers=2 --collectCoverage=true --coverage-provider=v8",
"test:react-17": "scripts/test_react_17",
"typecheck": "tsc",
"flow": "flow",
"copy-flowtypes": "cp typings/index.flow.js build",
"lint": "eslint src --cache",
"validate": "yarn lint && yarn typecheck && yarn test",
"build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
"build:js:watch": "yarn build:js --watch",
"build:ts": "tsc --build tsconfig.release.json",
"build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",
"build": "yarn clean && yarn build:js && yarn build:ts && yarn copy-flowtypes",
"prepare": "yarn build",
"prepublish": "yarn build",
"publish": "release-it"
},
"files": [
"build/",
"jest-preset/",
Expand All @@ -33,6 +52,22 @@
"dont-cleanup-after-each.js",
"typings/index.flow.js"
],
"dependencies": {
"jest-matcher-utils": "^29.7.0",
"pretty-format": "^29.7.0",
"redent": "^3.0.0"
},
"peerDependencies": {
"jest": ">=28.0.0",
"react": ">=16.8.0",
"react-native": ">=0.59",
"react-test-renderer": ">=16.8.0"
},
"peerDependenciesMeta": {
"jest": {
"optional": true
}
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.3",
Expand All @@ -57,42 +92,12 @@
"react": "18.2.0",
"react-native": "0.72.7",
"react-test-renderer": "18.2.0",
"release-it": "^17.0.1",
"strip-ansi": "^6.0.1",
"typescript": "^5.3.2"
},
"dependencies": {
"jest-matcher-utils": "^29.7.0",
"pretty-format": "^29.7.0",
"redent": "^3.0.0"
},
"peerDependencies": {
"jest": ">=28.0.0",
"react": ">=16.8.0",
"react-native": ">=0.59",
"react-test-renderer": ">=16.8.0"
},
"peerDependenciesMeta": {
"jest": {
"optional": true
}
},
"scripts": {
"clean": "del build",
"test": "jest",
"test:ci": "jest --maxWorkers=2 --collectCoverage=true --coverage-provider=v8",
"test:react-17": "scripts/test_react_17",
"typecheck": "tsc",
"flow": "flow",
"copy-flowtypes": "cp typings/index.flow.js build",
"lint": "eslint src --cache",
"validate": "yarn lint && yarn typecheck && yarn test",
"prepublish": "yarn build",
"build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
"build:js:watch": "yarn build:js --watch",
"build:ts": "tsc --build tsconfig.release.json",
"build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",
"build": "yarn clean && yarn build:js && yarn build:ts && yarn copy-flowtypes",
"prepare": "yarn build"
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"packageManager": "yarn@4.0.1"
}
Loading

0 comments on commit 355b667

Please sign in to comment.