create-granite-app 0.1.1 → 0.1.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/CHANGELOG.md +6 -0
- package/dist/index.js +3 -0
- package/package.json +3 -2
- package/templates/granite-app/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -5032,6 +5032,9 @@ function getAppName(appPath) {
|
|
|
5032
5032
|
function assertValidAppName(input) {
|
|
5033
5033
|
const appName = getAppName(input);
|
|
5034
5034
|
const kebabCaseAppName = kebabCase(appName);
|
|
5035
|
+
if (appName === "") {
|
|
5036
|
+
return;
|
|
5037
|
+
}
|
|
5035
5038
|
if (kebabCaseAppName !== appName) {
|
|
5036
5039
|
throw new Error(`Project name must be in kebab-case (e.g. ${kebabCaseAppName})`);
|
|
5037
5040
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-granite-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cba": "./bin.js",
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"build": "tsup src/index.ts --format esm",
|
|
22
22
|
"dev": "tsup src/index.ts --format esm --watch",
|
|
23
23
|
"typecheck": "tsc --noEmit",
|
|
24
|
-
"test:no-parallel": "vitest --no-watch"
|
|
24
|
+
"test:no-parallel": "vitest --no-watch --coverage"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/kill-port": "^2.0.1",
|
|
28
28
|
"@types/node": "^22.10.2",
|
|
29
29
|
"@types/yargs": "^17.0.33",
|
|
30
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
30
31
|
"es-toolkit": "^1.30.1",
|
|
31
32
|
"execa": "^9.5.2",
|
|
32
33
|
"kill-port": "^2.0.1",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"typecheck": "tsc --noEmit"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@granite-js/react-native": "0.1.
|
|
12
|
-
"@granite-js/native": "0.1.
|
|
11
|
+
"@granite-js/react-native": "0.1.2",
|
|
12
|
+
"@granite-js/native": "0.1.2",
|
|
13
13
|
"react": "18.2.0",
|
|
14
14
|
"react-native": "0.72.6"
|
|
15
15
|
},
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@types/jest": "^29.5.14",
|
|
22
22
|
"@types/node": "^22.10.2",
|
|
23
23
|
"@types/react": "18.3.3",
|
|
24
|
-
"@granite-js/plugin-router": "0.1.
|
|
25
|
-
"@granite-js/plugin-hermes": "0.1.
|
|
26
|
-
"babel-preset-granite": "0.1.
|
|
24
|
+
"@granite-js/plugin-router": "0.1.2",
|
|
25
|
+
"@granite-js/plugin-hermes": "0.1.2",
|
|
26
|
+
"babel-preset-granite": "0.1.2",
|
|
27
27
|
"react-test-renderer": "18.2.0",
|
|
28
28
|
"jest": "^29.7.0",
|
|
29
29
|
"typescript": "^5.8.3"
|