Skip to content

Commit c092330

Browse files
committed
Switch to packages directory structure
1 parent 3541f58 commit c092330

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+310
-286
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/upload-pages-artifact@v3
4848
with:
4949
# Upload docs dist directory
50-
path: './docs/dist'
50+
path: './packages/docs/dist'
5151
- name: Deploy to GitHub Pages
5252
id: deployment
5353
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dist
1313
dist-ssr
1414
coverage
1515
*.local
16-
docs/.vitepress/cache
16+
packages/docs/.vitepress/cache
1717

1818
# Editor directories and files
1919
.vscode/*

package.json

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,19 @@
11
{
2-
"name": "@skirtle/create-vue-lib",
3-
"version": "0.0.1",
4-
"author": "skirtle",
5-
"license": "MIT",
6-
"description": "Create a library using Vue and Vite",
7-
"keywords": ["vue", "library", "scaffold", "vite", "build"],
8-
"homepage": "https://skirtles-code.github.io/create-vue-lib/",
9-
"bugs": "https://github.com/skirtles-code/create-vue-lib/issues",
10-
"repository": {
11-
"type": "git",
12-
"url": "git+https://github.com/skirtles-code/create-vue-lib.git"
13-
},
14-
"funding": "https://github.com/sponsors/skirtles-code",
2+
"private": true,
153
"type": "module",
164
"packageManager": "[email protected]",
175
"engines": {
186
"node": ">=v18.3.0"
197
},
20-
"bin": {
21-
"create-vue-lib": "dist/index.cjs"
22-
},
23-
"files": [
24-
"dist"
25-
],
268
"devDependencies": {
27-
"@tsconfig/node22": "^22.0.0",
28-
"@types/ejs": "^3.1.5",
29-
"@types/node": "^22.13.0",
30-
"@types/prompts": "^2.4.9",
31-
"copyfiles": "^2.4.1",
32-
"ejs": "^3.1.10",
339
"lint-staged": "^15.4.3",
34-
"npm-run-all2": "^7.0.2",
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"
10+
"simple-git-hooks": "^2.11.1"
4011
},
4112
"scripts": {
42-
"clean": "rimraf dist",
43-
"build": "run-s clean build:copy 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-
"docs:dev": "pnpm run --filter ./docs -r dev",
49-
"docs:build": "pnpm run --filter ./docs -r build",
13+
"clean": "pnpm run -r clean",
14+
"docs:dev": "pnpm run --filter ./packages/docs -r dev",
15+
"docs:build": "pnpm run --filter ./packages/docs -r build",
16+
"build": "pnpm run -r build",
5017
"preinstall": "npx only-allow pnpm"
5118
}
5219
}

packages/create-vue-lib/package.json

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

0 commit comments

Comments
 (0)