Skip to content

Commit

Permalink
chore: update repo (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomuikuta authored Mar 27, 2023
1 parent 249072a commit 3c71cca
Show file tree
Hide file tree
Showing 13 changed files with 1,006 additions and 1,425 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
coverage
dist
package.json
8 changes: 2 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": [
"eslint-config-unjs"
],
"rules": {
"no-redeclare": "off"
}
"extends": ["eslint-config-unjs"],
"rules": {}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
Expand Down
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.vscode
node_modules
*.log
.DS_Store
coverage
dist
types
.vscode
.DS_Store
.eslintcache
*.log*
*.conf*
*.env*
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ Converts first character to lower case
- Case is preserved in returned value
- Is an irreversible function since splitters are omitted

## Development

- Clone this repository
- Install latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using corepack enable
- Install dependencies using pnpm install
- Run interactive tests using pnpm dev

## License

[MIT](./LICENSE)
Expand Down
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@
],
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext .ts .",
"prepublishOnly": "pnpm build",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"dev": "vitest dev",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"prepack": "pnpm run build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && vitest run --coverage"
},
"devDependencies": {
"@types/node": "^18.11.13",
"@vitest/coverage-c8": "^0.25.7",
"eslint": "^8.29.0",
"eslint-config-unjs": "^0.0.2",
"standard-version": "^9.5.0",
"typescript": "^4.9.4",
"unbuild": "^0.9.4",
"vitest": "^0.25.7"
"@types/node": "^18.14.6",
"@vitest/coverage-c8": "^0.29.2",
"eslint": "^8.35.0",
"eslint-config-unjs": "^0.1.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unbuild": "^1.1.2",
"vitest": "^0.29.2"
},
"packageManager": "pnpm@7.18.2"
"packageManager": "pnpm@7.28.0"
}
Loading

0 comments on commit 3c71cca

Please sign in to comment.