create-innovator 0.1.0

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/dist/cli.js +27 -0
  3. package/package.json +54 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
package/dist/cli.js ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/cli.ts
4
+ import { readFileSync } from "fs";
5
+ import { defineCommand, runMain } from "citty";
6
+ var pkgUrl = new URL("../package.json", import.meta.url);
7
+ var pkg = JSON.parse(readFileSync(pkgUrl, "utf8"));
8
+ var version = pkg.version ?? "0.0.0";
9
+ var main = defineCommand({
10
+ meta: {
11
+ name: "create-innovator",
12
+ version,
13
+ description: "Create an Innovator app"
14
+ },
15
+ args: {
16
+ name: {
17
+ type: "string",
18
+ required: false,
19
+ description: "Project name"
20
+ }
21
+ },
22
+ run({ args }) {
23
+ const projectName = args.name ?? "my-innovator-app";
24
+ console.log(`Scaffolding ${projectName}...`);
25
+ }
26
+ });
27
+ runMain(main);
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "create-innovator",
3
+ "version": "0.1.0",
4
+ "description": "Create Innovator App",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-innovator": "./dist/cli.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "engines": {
13
+ "node": ">=24",
14
+ "pnpm": ">=10.28.2"
15
+ },
16
+ "dependencies": {
17
+ "citty": "0.2.0"
18
+ },
19
+ "devDependencies": {
20
+ "@commitlint/cli": "20.4.1",
21
+ "@commitlint/config-conventional": "20.4.1",
22
+ "@eslint/js": "9.39.2",
23
+ "@types/node": "^24",
24
+ "commitizen": "4.3.1",
25
+ "cz-conventional-changelog": "3.3.0",
26
+ "eslint": "9.39.2",
27
+ "globals": "17.3.0",
28
+ "husky": "9.1.7",
29
+ "lint-staged": "16.2.7",
30
+ "prettier": "3.8.1",
31
+ "tsup": "8.5.1",
32
+ "tsx": "4.21.0",
33
+ "typescript": "5.9.3",
34
+ "typescript-eslint": "8.54.0"
35
+ },
36
+ "config": {
37
+ "commitizen": {
38
+ "path": "./node_modules/cz-conventional-changelog"
39
+ }
40
+ },
41
+ "prettier": {
42
+ "semi": true,
43
+ "singleQuote": true,
44
+ "tabWidth": 2,
45
+ "trailingComma": "all",
46
+ "printWidth": 120
47
+ },
48
+ "scripts": {
49
+ "build": "tsup",
50
+ "dev": "tsx src/cli.ts",
51
+ "format": "prettier . --write",
52
+ "lint": "eslint ."
53
+ }
54
+ }