Skip to content

Commit

Permalink
🚀 chore: add publish process
Browse files Browse the repository at this point in the history
  • Loading branch information
aiyoudiao committed Aug 25, 2024
1 parent c65f49d commit e0dba44
Show file tree
Hide file tree
Showing 10 changed files with 133 additions and 391 deletions.
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "@http-status-codes/i18n",
"version": "1.0.0",
"version": "0.0.1",
"license": "MIT",
"description": "HTTP status codes i18n",
"scripts": {
"check": "nx affected -t lint test build",
"sync:version": "nx run-many --target=version --all",
"task": "nx affected -t lint test build",
"sync:version": "node ./scripts/sync-version.js",
"commit": "git-cz",
"changelog": "conventional-changelog --config ./commit-config/changelog-config.js -p -i -o CHANGELOG.md -r 0",
"version": "conventional-changelog --config ./commit-config/changelog-config.js -p angular -i -o CHANGELOG.md -r 0 && git add CHANGELOG.md",
"release": "release-it"
"release": "release-it && sync:version && npm run task && ./publish"
},
"dependencies": {
"tslib": "^2.3.0"
},
"devDependencies": {
"@jscutlery/semver": "^5.3.1",
"@nx/esbuild": "19.6.2",
"@nx/eslint": "19.6.2",
"@nx/eslint-plugin": "19.6.2",
Expand Down Expand Up @@ -62,5 +62,14 @@
"path": "node_modules/cz-git",
"czConfig": "./commit-config/cz-config.js"
}
}
},
"author": "哎哟迪奥",
"repository": {
"type": "git",
"url": "https://github.com/aiyoudiao/http-status-codes-i18n.git"
},
"bugs": {
"url": "https://github.com/aiyoudiao/http-status-codes-i18n/issues"
},
"homepage": "https://github.com/aiyoudiao/http-status-codes-i18n#readme"
}
15 changes: 13 additions & 2 deletions packages/i18n-en/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
"name": "@http-status-codes/i18n-en",
"version": "0.0.1",
"main": "./index.cjs",
"module": "./index.js"
}
"module": "./index.esm.js",
"description": "HTTP status codes i18n",
"author": "哎哟迪奥",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/aiyoudiao/http-status-codes-i18n.git"
},
"bugs": {
"url": "https://github.com/aiyoudiao/http-status-codes-i18n/issues"
},
"homepage": "https://github.com/aiyoudiao/http-status-codes-i18n#readme"
}
13 changes: 1 addition & 12 deletions packages/i18n-en/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project i18n-en --web",
"targets": {
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"syncVersions": true,
"skipRootChangelog": true,
"skipProjectChangelog": true,
"push": false,
"commitMessageFormat": "🔖 chore: release ${version}"
}
}
}
"targets": {}
}
15 changes: 13 additions & 2 deletions packages/i18n-zh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
"name": "@http-status-codes/i18n-zh",
"version": "0.0.1",
"main": "./index.cjs",
"module": "./index.js"
}
"module": "./index.esm.js",
"description": "HTTP status codes i18n",
"author": "哎哟迪奥",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/aiyoudiao/http-status-codes-i18n.git"
},
"bugs": {
"url": "https://github.com/aiyoudiao/http-status-codes-i18n/issues"
},
"homepage": "https://github.com/aiyoudiao/http-status-codes-i18n#readme"
}
13 changes: 1 addition & 12 deletions packages/i18n-zh/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project i18n-zh --web",
"targets": {
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"syncVersions": true,
"skipRootChangelog": true,
"skipProjectChangelog": true,
"push": false,
"commitMessageFormat": "🔖 chore: release ${version}"
}
}
}
"targets": {}
}
15 changes: 13 additions & 2 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
"name": "@http-status-codes/i18n",
"version": "0.0.1",
"main": "./index.cjs",
"module": "./index.js"
}
"module": "./index.esm.js",
"description": "HTTP status codes i18n",
"author": "哎哟迪奥",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/aiyoudiao/http-status-codes-i18n.git"
},
"bugs": {
"url": "https://github.com/aiyoudiao/http-status-codes-i18n/issues"
},
"homepage": "https://github.com/aiyoudiao/http-status-codes-i18n#readme"
}
Loading

0 comments on commit e0dba44

Please sign in to comment.