Skip to content

Commit c9bed95

Browse files
committed
Create create-vue-lib
0 parents  commit c9bed95

37 files changed

+2644
-0
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
charset = utf-8
3+
indent_style = space
4+
indent_size = 2
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2025, skirtle
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# @skirtle/create-vue-lib
2+
3+
A command-line utility for scaffolding a Vite project to build a Vue-based library.
4+
5+
⚠️ This is currently work-in-progress. It is not yet usable.
6+
7+
## Thanks
8+
9+
This project is inspired by the official [create-vue](https://github.com/vuejs/create-vue) scaffolding tool and wouldn't be possible without it. Many thanks to [Haoqun Jiang](https://github.com/haoqunjiang) for all the hard work he puts in to maintaining that project.
10+
11+
## License
12+
13+
MIT
14+
15+
Copyright © 2025, skirtle

package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "@skirtle/create-vue-lib",
3+
"private": true,
4+
"version": "0.0.0",
5+
"author": "skirtle",
6+
"license": "MIT",
7+
"description": "Create a library using Vue and Vite",
8+
"keywords": ["vue", "library", "scaffold", "vite", "build"],
9+
"homepage": "https://github.com/skirtles-code/create-vue-lib#readme",
10+
"bugs": "https://github.com/skirtles-code/create-vue-lib/issues",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/skirtles-code/create-vue-lib.git"
14+
},
15+
"funding": "https://github.com/sponsors/skirtles-code",
16+
"type": "module",
17+
"packageManager": "[email protected]",
18+
"engines": {
19+
"node": ">=v18.3.0"
20+
},
21+
"bin": {
22+
"create-vue-lib": "dist/index.cjs"
23+
},
24+
"files": [
25+
"dist"
26+
],
27+
"devDependencies": {
28+
"@tsconfig/node22": "^22.0.0",
29+
"@types/ejs": "^3.1.5",
30+
"@types/node": "^22.13.0",
31+
"@types/prompts": "^2.4.9",
32+
"copyfiles": "^2.4.1",
33+
"ejs": "^3.1.10",
34+
"lint-staged": "^15.4.3",
35+
"prompts": "^2.4.2",
36+
"rimraf": "^6.0.1",
37+
"simple-git-hooks": "^2.11.1",
38+
"tsup": "^8.3.6",
39+
"typescript": "^5.7.3"
40+
},
41+
"scripts": {
42+
"clean": "rimraf dist",
43+
"build": "pnpm run clean && pnpm run build:copy && pnpm run build:ts",
44+
"build:copy": "copyfiles -u 1 -a \"src/template/**\" dist",
45+
"build:ts": "tsup src/index.ts --format cjs --target node18",
46+
"build:dts": "tsup src/index.ts --dts --format cjs --target node18",
47+
"start": "node ./dist/index.cjs",
48+
"preinstall": "npx only-allow pnpm"
49+
}
50+
}

0 commit comments

Comments
 (0)