Skip to content
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

chore: update repo #62

Merged
merged 6 commits into from Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
@@ -1,3 +1,3 @@
dist
node_modules
coverage
dist
5 changes: 2 additions & 3 deletions .eslintrc
@@ -1,5 +1,4 @@
{
"extends": [
"eslint-config-unjs"
]
"extends": ["eslint-config-unjs"],
"rules": {}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
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
10 changes: 6 additions & 4 deletions .gitignore
@@ -1,8 +1,10 @@
.vscode
node_modules
*.log*
.DS_Store
coverage
dist
types
.conf*
.vscode
.DS_Store
.eslintcache
*.log*
*.conf*
*.env*
1 change: 1 addition & 0 deletions .prettierrc
@@ -0,0 +1 @@
{}
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -114,12 +114,13 @@ genSafeVariableName('123 foo')
genSafeVariableName('for')
```

## 💻 Development
## Development

- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
- Install dependencies using `pnpm install`
- Run interactive tests using `pnpm dev`
- 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

Expand Down
28 changes: 15 additions & 13 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "knitwork",
"version": "1.0.0",
"description": "",
"description": "Utilities to generate JavaScript code.",
"repository": "unjs/knitwork",
"license": "MIT",
"sideEffects": false,
Expand All @@ -22,20 +22,22 @@
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
"prepack": "unbuild",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "vitest run --coverage"
"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": {
"@vitest/coverage-c8": "^0.25.7",
"@vitest/coverage-c8": "^0.29.1",
"changelogen": "^0.4.1",
"esbuild": "^0.16.4",
"eslint": "latest",
"eslint-config-unjs": "^0.0.2",
"standard-version": "^9.5.0",
"typescript": "^4.9.4",
"unbuild": "^1.0.2",
"vitest": "^0.25.7"
"eslint": "^8.34.0",
"eslint-config-unjs": "^0.1.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unbuild": "^1.1.2",
"vitest": "^0.29.1"
},
"packageManager": "pnpm@7.18.2"
"packageManager": "pnpm@7.28.0"
}