Skip to content

Commit

Permalink
✨ feat: 完成简易模板
Browse files Browse the repository at this point in the history
  • Loading branch information
aliothor committed May 15, 2024
1 parent 70237d5 commit 597d07f
Show file tree
Hide file tree
Showing 45 changed files with 1,620 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 22
cache: "pnpm"
- run: pnpm install
- run: pnpm lint:fix
# - run: pnpm lint:fix
- uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
with:
commit-message: "chore: apply automated updates"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 22
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
# - run: pnpm lint
- run: pnpm test:types
- run: pnpm build
- run: pnpm vitest --coverage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Fast create [maptalks](https://github.com/maptalks) plugin
## Usage

```sh
# npx
# npm
npm create mtk-plugin

# yarn
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
},
"vcs": {
"enabled": true,
"enabled": false,
"clientKind": "git",
"useIgnoreFile": true
}
Expand Down
32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,48 @@
"homepage": "https://github.com/aliothor/create-mtk-plugin",
"repository": "https://github.com/aliothor/create-mtk-plugin.git",
"license": "MIT",
"author": {
"name": "aliothor",
"email": "1516544795@qq.com"
},
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
"bin": {
"create-mtk-plugin": "./dist/bin/index.js"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": ["dist"],
"files": [
"template-*",
"dist"
],
"scripts": {
"build": "bunchee",
"dev": "vitest dev",
"lint": "eslint . && biome check .",
"lint:fix": "automd && eslint . --fix && biome check --apply .",
"prepack": "pnpm build",
"play": "tsx playground",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"release": "changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@biomejs/biome": "^1.7.3",
"@types/cross-spawn": "^6.0.6",
"@types/minimist": "^1.2.5",
"@types/node": "^20.12.12",
"@types/prompts": "^2.4.9",
"@vitest/coverage-v8": "^1.6.0",
"automd": "^0.3.7",
"bunchee": "^5.1.5",
"changelogen": "^0.5.5",
"cross-spawn": "^7.0.3",
"eslint": "^9.2.0",
"eslint-config-unjs": "^0.3.1",
"kolorist": "^1.8.0",
"minimist": "^1.2.8",
"prompts": "^2.4.2",
"tsx": "^4.10.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"packageManager": "pnpm@9.1.0"
}
}
3 changes: 0 additions & 3 deletions playground/index.ts

This file was deleted.

Loading

0 comments on commit 597d07f

Please sign in to comment.