@citruslime/create-boilerplate 2.0.0-beta.0 → 2.0.0-beta.2
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/main.js +9 -2
- package/package.json +36 -36
- package/template/README.md +1 -1
- package/template/_npmrc +1 -0
- package/template/_stylelint.config.js +2 -3
- package/template/tsconfig.vitest.json +2 -1
package/main.js
CHANGED
|
@@ -40,6 +40,9 @@ const dependenciesToInstall = [
|
|
|
40
40
|
{
|
|
41
41
|
name: '@citruslime/ui'
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
name: '@citruslime/utils'
|
|
45
|
+
},
|
|
43
46
|
{
|
|
44
47
|
name: '@vueuse/core'
|
|
45
48
|
},
|
|
@@ -70,6 +73,10 @@ const dependenciesToInstall = [
|
|
|
70
73
|
name: '@tsconfig/node20',
|
|
71
74
|
dev: true
|
|
72
75
|
},
|
|
76
|
+
{
|
|
77
|
+
name: '@types/jsdom',
|
|
78
|
+
dev: true
|
|
79
|
+
},
|
|
73
80
|
{
|
|
74
81
|
name: '@types/luxon',
|
|
75
82
|
dev: true
|
|
@@ -235,8 +242,8 @@ async function init () {
|
|
|
235
242
|
* @returns True, if the directory is valid; false, otherwise.
|
|
236
243
|
*/
|
|
237
244
|
function directoryValid (packageDir) {
|
|
238
|
-
const directoryExists =
|
|
239
|
-
const directorySize = readdirSync(packageDir).length;
|
|
245
|
+
const directoryExists = existsSync(packageDir);
|
|
246
|
+
const directorySize = directoryExists ? readdirSync(packageDir).length : 0;
|
|
240
247
|
const directoryOnlyContainsGit = directorySize === 1 && existsSync(`${packageDir}/.git`);
|
|
241
248
|
|
|
242
249
|
return !directoryExists ||
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
2
|
+
"name": "@citruslime/create-boilerplate",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Citrus-Lime Ltd",
|
|
7
|
+
"url": "https://citruslime.com"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://uilibrary.citruslime.com/",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"main.js",
|
|
16
|
+
"template",
|
|
17
|
+
"hooks"
|
|
18
|
+
],
|
|
19
|
+
"maintainers": [
|
|
20
|
+
"Citrus-Lime"
|
|
21
|
+
],
|
|
22
|
+
"main": "main.js",
|
|
23
|
+
"bin": {
|
|
24
|
+
"create-boilerplate": "main.js"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"kolorist": "^1.7.0",
|
|
31
|
+
"minimist": "^1.2.8",
|
|
32
|
+
"prompts": "^2.4.2"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lint": "eslint . --fix && stylelint **/*.{css,vue} --fix"
|
|
36
|
+
}
|
|
37
|
+
}
|
package/template/README.md
CHANGED
|
@@ -6,6 +6,6 @@ It makes use of the various @citruslime packages, as well as the current standar
|
|
|
6
6
|
|
|
7
7
|
Linting is provided by default by a combination of ESLint and StyleLint.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Areas of Consideration
|
|
10
10
|
|
|
11
11
|
Example code is provided in the state and views folders. It should be deleted or replaced, once development is started.
|
package/template/_npmrc
CHANGED