Skip to content

Commit

Permalink
feat(chakra-icons/cli): make publishable (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Feb 2, 2022
1 parent 6c5d980 commit d4bc6ac
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| Name | Publishable | Version |
| ------------------------------------------------------------------------------------------------------------ | ----------- | --------------------------------------------------------------------------------------------------------------------- |
| [create-chakra-icons](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/create-chakra-icons) || [![npm version](https://badge.fury.io/js/create-chakra-icons.svg)](https://www.npmjs.com/package/create-chakra-icons) |
| [@tooling/cli](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/cli) | | |
| [@chakra-icons/cli](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/cli) | | [![npm version](https://badge.fury.io/js/@chakra-icons/cli.svg)](https://www.npmjs.com/package/@chakra-icons/cli) |
| [@tooling/tsconfig](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/ts.conf) || |
| [@tooling/msrconfig](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/msr.conf) || |

Expand All @@ -24,7 +24,7 @@ Feel free for:

- Create Issue, Request Features, & send a pull request.

## How to add new icons
### How to add new icons

- clone this repo

Expand Down Expand Up @@ -58,7 +58,7 @@ Feel free for:
projects name : [name new package] e.g (bootstrap)
```

- when success generated new package, the package listed in [**./packages/@chakra-icons**](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/create-chakra-icons)
- when success generated new package, the package listed in [**./packages/@chakra-icons**](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/@chakra-icons)

- build the new package

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"packages/@chakra-icons/*",
"website",
"!website/**",
"!tooling/cli/**",
"!tooling/*.conf/**"
],
"scripts": {
Expand All @@ -22,12 +21,13 @@
"postinstall": "patch-package",
"prepare": "husky install",
"purge": "shx rm -rf node_modules/.cache/ packages/**/.turbo/ website/.turbo/",
"prerelease": "yarn build",
"release": "multi-semantic-release",
"commit": "commit",
"# scope commands": "----------------------------------------------------",
"website": "yarn workspace website",
"cci": "yarn workspace create-chakra-icons",
"cli": "yarn workspace @tooling/cli",
"cli": "yarn workspace @chakra-icons/cli",
"plop": "plop",
"postplop": "yarn install",
"#": "-------------------------------------------------------------------"
Expand Down
2 changes: 1 addition & 1 deletion templates/@chakra-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"@chakra-ui/react": "^1",
"@tooling/cli": "*",
"@chakra-icons/cli": "*",
"@tooling/tsconfig": "*",
"tsup": "^5"
},
Expand Down
1 change: 1 addition & 0 deletions tooling/cli/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@tooling/msrconfig")
1 change: 0 additions & 1 deletion tooling/cli/index.bin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node

import { clean } from "./src/clean";
import pkgJson from "./package.json";
import { build, BuildOptions, init, InitOptions } from "./src";
Expand Down
8 changes: 4 additions & 4 deletions tooling/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@tooling/cli",
"name": "@chakra-icons/cli",
"description": "a tooling for manage everything in @chakra-icons",
"version": "0.0.0",
"author": "ri7nz <ri7nz@koding.ninja>",
"homepage": "https://github.com/kodingdotninja/chakra-icons",
"repository": "https://github.com/kodingdotninja/chakra-icons.git",
"bugs": "https://github.com/kodingdotninja/chakra-icons/issues",
"bin": {
"chakra-icons": "./dist/index.bin.js"
"chakra-icons": "dist/index.bin.js"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -48,10 +48,10 @@
},
"lint-staged": {
"*.{json,md}": [
"yarn workspace @tooling/cli prettier --write"
"yarn workspace @chakra-icons/cli prettier --write"
],
"**/*.{js,cjs,mjs}": [
"yarn workspace @tooling/cli eslint --fix"
"yarn workspace @chakra-icons/cli eslint --fix"
]
},
"prettier": {
Expand Down

0 comments on commit d4bc6ac

Please sign in to comment.