@skirtle/create-vue-lib 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -5697,7 +5697,7 @@ var import_picocolors = __toESM(require_picocolors(), 1);
|
|
|
5697
5697
|
// package.json
|
|
5698
5698
|
var package_default = {
|
|
5699
5699
|
name: "@skirtle/create-vue-lib",
|
|
5700
|
-
version: "0.0.
|
|
5700
|
+
version: "0.0.8",
|
|
5701
5701
|
author: "skirtle",
|
|
5702
5702
|
license: "MIT",
|
|
5703
5703
|
description: "Create a library using Vue and Vite",
|
|
@@ -5710,10 +5710,6 @@ var package_default = {
|
|
|
5710
5710
|
},
|
|
5711
5711
|
funding: "https://github.com/sponsors/skirtles-code",
|
|
5712
5712
|
type: "module",
|
|
5713
|
-
packageManager: "pnpm@9.15.4",
|
|
5714
|
-
engines: {
|
|
5715
|
-
node: ">=v18.3.0"
|
|
5716
|
-
},
|
|
5717
5713
|
bin: {
|
|
5718
5714
|
"create-vue-lib": "dist/index.cjs"
|
|
5719
5715
|
},
|
|
@@ -5860,7 +5856,7 @@ async function init() {
|
|
|
5860
5856
|
console.log();
|
|
5861
5857
|
console.log(`Welcome to ${(0, import_picocolors.bold)((0, import_picocolors.green)(package_default.name))} v${(0, import_picocolors.bold)((0, import_picocolors.cyan)(package_default.version))}`);
|
|
5862
5858
|
console.log();
|
|
5863
|
-
console.log(`This tool will help you to scaffold a ${(0, import_picocolors.
|
|
5859
|
+
console.log(`This tool will help you to scaffold a ${(0, import_picocolors.bold)((0, import_picocolors.magenta)("Vite"))} project for your ${(0, import_picocolors.bold)((0, import_picocolors.green)("Vue"))}-based library.`);
|
|
5864
5860
|
console.log();
|
|
5865
5861
|
console.log("It is recommended to use a scoped package name for your library.");
|
|
5866
5862
|
console.log("e.g. @username/package-name");
|
|
@@ -5922,6 +5918,7 @@ async function init() {
|
|
|
5922
5918
|
const includeDocs = await togglePrompt("Include VitePress for documentation?", true);
|
|
5923
5919
|
const includeGithubPages = includeDocs && await togglePrompt("Include GitHub Pages config for documentation?");
|
|
5924
5920
|
const includePlayground = await togglePrompt("Include playground application for development?", true);
|
|
5921
|
+
const includeGithubCi = await togglePrompt("Include GitHub CI configuration?", !!githubPath);
|
|
5925
5922
|
const includeExamples = await togglePromptIf(extended, "Include example code?", true, "Yes", "No, just configs");
|
|
5926
5923
|
const includeAtAliases = await togglePromptIf(extended, "Configure @ as an alias for src?");
|
|
5927
5924
|
const includeTestVariable = await togglePromptIf(extended, "Configure global __TEST__ variable?");
|
|
@@ -5981,6 +5978,7 @@ async function init() {
|
|
|
5981
5978
|
includeEsLint,
|
|
5982
5979
|
includeEsLintStylistic,
|
|
5983
5980
|
includeVitest,
|
|
5981
|
+
includeGithubCi,
|
|
5984
5982
|
includeAtAliases,
|
|
5985
5983
|
includeTestVariable
|
|
5986
5984
|
};
|
|
@@ -6000,6 +5998,9 @@ async function init() {
|
|
|
6000
5998
|
if (config.includeVitest) {
|
|
6001
5999
|
copyTemplate("vitest", config);
|
|
6002
6000
|
}
|
|
6001
|
+
if (config.includeGithubCi) {
|
|
6002
|
+
copyTemplate("ci", config);
|
|
6003
|
+
}
|
|
6003
6004
|
console.log();
|
|
6004
6005
|
console.log(`${(0, import_picocolors.bgGreen)((0, import_picocolors.bold)((0, import_picocolors.black)("DONE")))} Project created`);
|
|
6005
6006
|
console.log();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ['main']
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: ['main']
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
ci:
|
|
11
|
+
<%_ if (config.githubPath) { _%>
|
|
12
|
+
if: github.repository == '<%- config.githubPath %>'
|
|
13
|
+
<%_ } _%>
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
- name: Install pnpm
|
|
19
|
+
uses: pnpm/action-setup@v4
|
|
20
|
+
- name: Set up Node
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: 20
|
|
24
|
+
cache: 'pnpm'
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: pnpm install
|
|
27
|
+
<%_ if (config.includeEsLint) { _%>
|
|
28
|
+
- name: Lint
|
|
29
|
+
run: pnpm run lint
|
|
30
|
+
<%_ } _%>
|
|
31
|
+
- name: Type check
|
|
32
|
+
run: pnpm run type-check
|
|
33
|
+
- name: Build
|
|
34
|
+
run: pnpm run build
|
|
35
|
+
<%_ if (config.includeVitest) { _%>
|
|
36
|
+
- name: Test
|
|
37
|
+
run: pnpm run test:unit
|
|
38
|
+
<%_ } _%>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skirtle/create-vue-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"author": "skirtle",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Create a library using Vue and Vite",
|
|
@@ -19,9 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"funding": "https://github.com/sponsors/skirtles-code",
|
|
21
21
|
"type": "module",
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=v18.3.0"
|
|
24
|
-
},
|
|
25
22
|
"bin": {
|
|
26
23
|
"create-vue-lib": "dist/index.cjs"
|
|
27
24
|
},
|