create-vatts-app 1.1.0-alpha.1 → 1.1.1
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/LICENSE +1 -1
- package/dist/cli.js +98 -19
- package/dist/fs.js +16 -0
- package/dist/index.js +16 -0
- package/dist/install.js +16 -0
- package/dist/steps/createExampleRoutes.js +16 -0
- package/dist/steps/createProject.js +16 -0
- package/dist/steps/createProjectStructure.js +16 -0
- package/dist/steps/installDependencies.js +16 -0
- package/dist/steps/setupTailwind.js +16 -0
- package/dist/steps/writeTsConfig.js +16 -0
- package/dist/steps/writeVattsConfig.js +16 -0
- package/dist/summary.js +16 -0
- package/dist/templates.js +16 -0
- package/dist/validate.js +16 -0
- package/package.json +3 -3
package/LICENSE
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
5
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
36
|
exports.parseArgs = parseArgs;
|
|
7
37
|
exports.promptForMissingOptions = promptForMissingOptions;
|
|
8
|
-
|
|
38
|
+
/*
|
|
39
|
+
* This file is part of the Vatts.js Project.
|
|
40
|
+
* Copyright (c) 2026 itsmuzin
|
|
41
|
+
*
|
|
42
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
|
+
* you may not use this file except in compliance with the License.
|
|
44
|
+
* You may obtain a copy of the License at
|
|
45
|
+
*
|
|
46
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
+
*
|
|
48
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
49
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
50
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
|
+
* See the License for the specific language governing permissions and
|
|
52
|
+
* limitations under the License.
|
|
53
|
+
*/
|
|
54
|
+
const console_1 = __importStar(require("vatts/console"));
|
|
9
55
|
function normalizeAliasPrefix(raw) {
|
|
10
56
|
const trimmed = raw.trim();
|
|
11
57
|
if (!trimmed)
|
|
@@ -60,14 +106,12 @@ async function promptForMissingOptions(opts) {
|
|
|
60
106
|
appName = await console_1.default.ask("What is the name of your app?", "my-vatts-app");
|
|
61
107
|
console.log(" ");
|
|
62
108
|
}
|
|
63
|
-
let typescript = opts.typeScript;
|
|
64
|
-
if (typescript === undefined) {
|
|
65
|
-
typescript = await console_1.default.confirm("Do you want to use typescript?", true);
|
|
66
|
-
console.log(" ");
|
|
67
|
-
}
|
|
68
109
|
let framework = opts.framework;
|
|
69
110
|
async function askFramework() {
|
|
70
|
-
const frame = await console_1.default.
|
|
111
|
+
const frame = await console_1.default.selection("What framework do you want to use?", {
|
|
112
|
+
"react": "React",
|
|
113
|
+
"vue": "Vue"
|
|
114
|
+
});
|
|
71
115
|
console.log('');
|
|
72
116
|
if (frame.toLowerCase() !== 'react' && frame.toLowerCase() !== 'vue') {
|
|
73
117
|
return await askFramework();
|
|
@@ -80,6 +124,42 @@ async function promptForMissingOptions(opts) {
|
|
|
80
124
|
// @ts-ignore
|
|
81
125
|
framework = await askFramework();
|
|
82
126
|
}
|
|
127
|
+
const recommendedOptions = {
|
|
128
|
+
appName,
|
|
129
|
+
tailwind: true,
|
|
130
|
+
examples: true,
|
|
131
|
+
install: true,
|
|
132
|
+
moduleAlias: true,
|
|
133
|
+
alias: "@/",
|
|
134
|
+
typeScript: true,
|
|
135
|
+
framework
|
|
136
|
+
};
|
|
137
|
+
let name = framework === 'react' ? 'React' : 'Vue';
|
|
138
|
+
const recommended = await console_1.default.selection(`Would you like to use the recommended options? (${name})`, {
|
|
139
|
+
"yes": `${console_1.Colors.Underscore}Yes, use recommended defaults - TypeScript, Tailwind CSS, Module Alias`,
|
|
140
|
+
"maybe": `Maybe, use Path Router defaults - TypeScript, Tailwind CSS`,
|
|
141
|
+
"no": "No, customize settings"
|
|
142
|
+
});
|
|
143
|
+
if (recommended !== 'no') {
|
|
144
|
+
recommendedOptions.pathRouter = recommended === 'maybe';
|
|
145
|
+
// Forçar todas as propriedades obrigatórias
|
|
146
|
+
return {
|
|
147
|
+
appName: recommendedOptions.appName,
|
|
148
|
+
tailwind: recommendedOptions.tailwind,
|
|
149
|
+
examples: recommendedOptions.examples,
|
|
150
|
+
install: recommendedOptions.install,
|
|
151
|
+
moduleAlias: recommendedOptions.moduleAlias,
|
|
152
|
+
alias: recommendedOptions.alias,
|
|
153
|
+
pathRouter: recommendedOptions.pathRouter,
|
|
154
|
+
typeScript: recommendedOptions.typeScript,
|
|
155
|
+
framework: recommendedOptions.framework
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
let typescript = opts.typeScript;
|
|
159
|
+
if (typescript === undefined) {
|
|
160
|
+
typescript = await console_1.default.confirm("Do you want to use typescript?", true);
|
|
161
|
+
console.log(" ");
|
|
162
|
+
}
|
|
83
163
|
let tailwind = opts.tailwind;
|
|
84
164
|
if (tailwind === undefined) {
|
|
85
165
|
tailwind = await console_1.default.confirm("Do you want to include Tailwind CSS?", true);
|
|
@@ -118,15 +198,14 @@ async function promptForMissingOptions(opts) {
|
|
|
118
198
|
console.log(" ");
|
|
119
199
|
}
|
|
120
200
|
return {
|
|
121
|
-
appName,
|
|
122
|
-
tailwind,
|
|
123
|
-
examples,
|
|
124
|
-
install,
|
|
125
|
-
moduleAlias,
|
|
126
|
-
alias,
|
|
127
|
-
pathRouter,
|
|
201
|
+
appName: appName,
|
|
202
|
+
tailwind: tailwind,
|
|
203
|
+
examples: examples,
|
|
204
|
+
install: install,
|
|
205
|
+
moduleAlias: moduleAlias,
|
|
206
|
+
alias: alias,
|
|
207
|
+
pathRouter: pathRouter,
|
|
128
208
|
typeScript: typescript,
|
|
129
|
-
|
|
130
|
-
framework
|
|
209
|
+
framework: framework
|
|
131
210
|
};
|
|
132
211
|
}
|
package/dist/fs.js
CHANGED
|
@@ -37,6 +37,22 @@ exports.ensureDir = ensureDir;
|
|
|
37
37
|
exports.writeFile = writeFile;
|
|
38
38
|
exports.writeJson = writeJson;
|
|
39
39
|
exports.exists = exists;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const fs = __importStar(require("node:fs"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
function ensureDir(dirPath) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Vatts.js Project.
|
|
5
|
+
* Copyright (c) 2026 itsmuzin
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
3
19
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
20
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
21
|
};
|
package/dist/install.js
CHANGED
|
@@ -34,6 +34,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.npmInstall = npmInstall;
|
|
37
|
+
/*
|
|
38
|
+
* This file is part of the Vatts.js Project.
|
|
39
|
+
* Copyright (c) 2026 itsmuzin
|
|
40
|
+
*
|
|
41
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
+
* you may not use this file except in compliance with the License.
|
|
43
|
+
* You may obtain a copy of the License at
|
|
44
|
+
*
|
|
45
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
*
|
|
47
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
48
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
+
* See the License for the specific language governing permissions and
|
|
51
|
+
* limitations under the License.
|
|
52
|
+
*/
|
|
37
53
|
const node_child_process_1 = require("node:child_process");
|
|
38
54
|
const path = __importStar(require("node:path"));
|
|
39
55
|
const fs = __importStar(require("node:fs"));
|
|
@@ -37,6 +37,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.createExampleRoutes = createExampleRoutes;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const console_1 = __importDefault(require("vatts/console"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
const fs_1 = require("../fs");
|
|
@@ -37,6 +37,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.createProject = createProject;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const console_1 = __importDefault(require("vatts/console"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
const fs_1 = require("../fs");
|
|
@@ -37,6 +37,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.createProjectStructure = createProjectStructure;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const console_1 = __importDefault(require("vatts/console"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
const fs_1 = require("../fs");
|
|
@@ -34,6 +34,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.installDependencies = installDependencies;
|
|
37
|
+
/*
|
|
38
|
+
* This file is part of the Vatts.js Project.
|
|
39
|
+
* Copyright (c) 2026 itsmuzin
|
|
40
|
+
*
|
|
41
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
+
* you may not use this file except in compliance with the License.
|
|
43
|
+
* You may obtain a copy of the License at
|
|
44
|
+
*
|
|
45
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
*
|
|
47
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
48
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
+
* See the License for the specific language governing permissions and
|
|
51
|
+
* limitations under the License.
|
|
52
|
+
*/
|
|
37
53
|
const console_1 = __importStar(require("vatts/console"));
|
|
38
54
|
const install_1 = require("../install");
|
|
39
55
|
async function installDependencies(ctx) {
|
|
@@ -37,6 +37,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.setupTailwind = setupTailwind;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const console_1 = __importDefault(require("vatts/console"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
const fs_1 = require("../fs");
|
|
@@ -37,6 +37,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.writeTsConfig = writeTsConfig;
|
|
40
|
+
/*
|
|
41
|
+
* This file is part of the Vatts.js Project.
|
|
42
|
+
* Copyright (c) 2026 itsmuzin
|
|
43
|
+
*
|
|
44
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
* you may not use this file except in compliance with the License.
|
|
46
|
+
* You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
* See the License for the specific language governing permissions and
|
|
54
|
+
* limitations under the License.
|
|
55
|
+
*/
|
|
40
56
|
const console_1 = __importDefault(require("vatts/console"));
|
|
41
57
|
const path = __importStar(require("node:path"));
|
|
42
58
|
const fs_1 = require("../fs");
|
|
@@ -34,6 +34,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.writeVattsConfig = writeVattsConfig;
|
|
37
|
+
/*
|
|
38
|
+
* This file is part of the Vatts.js Project.
|
|
39
|
+
* Copyright (c) 2026 itsmuzin
|
|
40
|
+
*
|
|
41
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
+
* you may not use this file except in compliance with the License.
|
|
43
|
+
* You may obtain a copy of the License at
|
|
44
|
+
*
|
|
45
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
*
|
|
47
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
48
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
+
* See the License for the specific language governing permissions and
|
|
51
|
+
* limitations under the License.
|
|
52
|
+
*/
|
|
37
53
|
const path = __importStar(require("node:path"));
|
|
38
54
|
const fs_1 = require("../fs");
|
|
39
55
|
const templates_1 = require("../templates");
|
package/dist/summary.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printSummary = printSummary;
|
|
4
|
+
/*
|
|
5
|
+
* This file is part of the Vatts.js Project.
|
|
6
|
+
* Copyright (c) 2026 itsmuzin
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
4
20
|
const console_1 = require("vatts/console");
|
|
5
21
|
function printSummary(ctx) {
|
|
6
22
|
console.clear();
|
package/dist/templates.js
CHANGED
|
@@ -11,6 +11,22 @@ exports.webIndexRouteTemplate = webIndexRouteTemplate;
|
|
|
11
11
|
exports.backendExampleRouteTemplate = backendExampleRouteTemplate;
|
|
12
12
|
exports.vueExampleRoute = vueExampleRoute;
|
|
13
13
|
exports.vueExampleLayout = vueExampleLayout;
|
|
14
|
+
/*
|
|
15
|
+
* This file is part of the Vatts.js Project.
|
|
16
|
+
* Copyright (c) 2026 itsmuzin
|
|
17
|
+
*
|
|
18
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
19
|
+
* you may not use this file except in compliance with the License.
|
|
20
|
+
* You may obtain a copy of the License at
|
|
21
|
+
*
|
|
22
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
25
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
26
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
+
* See the License for the specific language governing permissions and
|
|
28
|
+
* limitations under the License.
|
|
29
|
+
*/
|
|
14
30
|
function globalsCssTemplate(willTailwind) {
|
|
15
31
|
// even without tailwind, leave empty file to avoid import errors
|
|
16
32
|
return willTailwind ? `@import "tailwindcss";\n` : `body {
|
package/dist/validate.js
CHANGED
|
@@ -35,6 +35,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.validateAppName = validateAppName;
|
|
37
37
|
exports.assertTargetDirIsSafeEmpty = assertTargetDirIsSafeEmpty;
|
|
38
|
+
/*
|
|
39
|
+
* This file is part of the Vatts.js Project.
|
|
40
|
+
* Copyright (c) 2026 itsmuzin
|
|
41
|
+
*
|
|
42
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
|
+
* you may not use this file except in compliance with the License.
|
|
44
|
+
* You may obtain a copy of the License at
|
|
45
|
+
*
|
|
46
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
+
*
|
|
48
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
49
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
50
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
|
+
* See the License for the specific language governing permissions and
|
|
52
|
+
* limitations under the License.
|
|
53
|
+
*/
|
|
38
54
|
const fs = __importStar(require("node:fs"));
|
|
39
55
|
const path = __importStar(require("node:path"));
|
|
40
56
|
const WINDOWS_RESERVED_NAMES = new Set([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vatts-app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "CLI tool to create a new Vatts.js application",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
-
"author": "
|
|
20
|
+
"author": "mfraz",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.11.24",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"commander": "^14.0.2",
|
|
29
29
|
"ts-node": "^10.9.2",
|
|
30
|
-
"vatts": "1.2.
|
|
30
|
+
"vatts": "1.2.3"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rimraf dist && tsc",
|