create-vatts-app 1.1.0 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2026 itsmuzin
1
+ Copyright 2026 mfraz
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
package/dist/cli.js CHANGED
@@ -35,6 +35,22 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.parseArgs = parseArgs;
37
37
  exports.promptForMissingOptions = promptForMissingOptions;
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 console_1 = __importStar(require("vatts/console"));
39
55
  function normalizeAliasPrefix(raw) {
40
56
  const trimmed = raw.trim();
@@ -92,7 +108,10 @@ async function promptForMissingOptions(opts) {
92
108
  }
93
109
  let framework = opts.framework;
94
110
  async function askFramework() {
95
- const frame = await console_1.default.ask("What framework do you want to use? (React/Vue)", 'react');
111
+ const frame = await console_1.default.selection("What framework do you want to use?", {
112
+ "react": "React",
113
+ "vue": "Vue"
114
+ });
96
115
  console.log('');
97
116
  if (frame.toLowerCase() !== 'react' && frame.toLowerCase() !== 'vue') {
98
117
  return await askFramework();
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.0",
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": "itsmuzin",
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.0"
30
+ "vatts": "1.2.3"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rimraf dist && tsc",