@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 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 = !existsSync(packageDir);
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
- "name": "@citruslime/create-boilerplate",
3
- "type": "module",
4
- "version": "2.0.0-beta.0",
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
- "scripts": {
30
- "lint": "eslint . --fix && stylelint **/*.{css,vue} --fix"
31
- },
32
- "dependencies": {
33
- "kolorist": "^1.7.0",
34
- "minimist": "^1.2.8",
35
- "prompts": "^2.4.2"
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
+ }
@@ -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
- ## Areas of Consideration
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
@@ -1,2 +1,3 @@
1
1
  public-hoist-pattern[]=*eslint*
2
2
  public-hoist-pattern[]=*stylelint*
3
+ public-hoist-pattern[]=*tailwindcss*
@@ -1,5 +1,4 @@
1
- import config from '@citruslime/config/stylelint';
2
-
1
+ /** @type {import('stylelint').Config} */
3
2
  export default {
4
- extends: [config]
3
+ extends: ['@citruslime/config/stylelint']
5
4
  };
@@ -6,7 +6,8 @@
6
6
  "lib": [],
7
7
  "types": [
8
8
  "node",
9
- "jsdom"
9
+ "jsdom",
10
+ "unplugin-vue-router/client"
10
11
  ]
11
12
  }
12
13
  }