@stackonward/cli 1.5.1 → 1.5.3

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/dist/index.js CHANGED
@@ -19313,7 +19313,7 @@ function registerDeploy(program2) {
19313
19313
 
19314
19314
  // src/index.ts
19315
19315
  var program = new Command();
19316
- program.name("stackonward").description("Create projects and install reusable components and snippets").version("1.5.1");
19316
+ program.name("stackonward").description("Create projects and install reusable components and snippets").version("1.5.3");
19317
19317
  program.command("init [name]").description("Create a new project from template").option("-t, --template <template>", "Template to use").option("-d, --dir <directory>", "Target directory").option("--skip-install", "Skip dependency installation").option("--skip-git", "Skip git initialization").option("--module <module>", "Go module path (required for go-backend)").option("--author <author>", "Author name").option("-y, --yes", "Use defaults without interactive prompts").action(init);
19318
19318
  program.command("add [items...]").description("Add components or snippets to your project").option("-c, --component", "Add component(s)").option("-s, --snippet", "Add snippet(s)").option("-a, --all", "Add all items in category").option("-y, --yes", "Skip confirmation prompts").option("-o, --overwrite", "Overwrite existing files").option("-p, --path <path>", "Custom install path").action(add);
19319
19319
  program.command("list [type]").description("List available templates, components, or snippets").option("-t, --templates", "List templates").option("-c, --components", "List components").option("-s, --snippets", "List snippets").action(list);
@@ -15,13 +15,13 @@
15
15
  "name": "@stackonward/analytics-nuxt",
16
16
  "description": "Provider-neutral Nuxt analytics lifecycle",
17
17
  "type": "npm",
18
- "version": "^0.2.2"
18
+ "version": "^0.2.4"
19
19
  },
20
20
  "@stackonward/cli": {
21
21
  "name": "@stackonward/cli",
22
22
  "description": "StackOnward project and resource CLI",
23
23
  "type": "npm",
24
- "version": "^1.5.1"
24
+ "version": "^1.5.3"
25
25
  },
26
26
  "@stackonward/cms-client": {
27
27
  "name": "@stackonward/cms-client",
@@ -57,7 +57,7 @@
57
57
  "name": "@stackonward/eslint-config",
58
58
  "description": "Shared ESLint configuration",
59
59
  "type": "npm",
60
- "version": "^1.0.1"
60
+ "version": "^1.0.2"
61
61
  },
62
62
  "@stackonward/file": {
63
63
  "name": "@stackonward/file",
@@ -69,13 +69,13 @@
69
69
  "name": "@stackonward/google-tag-manager-nuxt",
70
70
  "description": "Consent-aware Google Tag Manager analytics integration for Nuxt",
71
71
  "type": "npm",
72
- "version": "^0.3.2"
72
+ "version": "^0.3.3"
73
73
  },
74
74
  "@stackonward/google-tag-manager": {
75
75
  "name": "@stackonward/google-tag-manager",
76
76
  "description": "Google Tag Manager transport and declarative container generator",
77
77
  "type": "npm",
78
- "version": "^0.2.2"
78
+ "version": "^0.3.0"
79
79
  },
80
80
  "@stackonward/identity-browser": {
81
81
  "name": "@stackonward/identity-browser",
@@ -111,7 +111,7 @@
111
111
  "name": "@stackonward/nuxt-site-shell",
112
112
  "description": "Brand-free Nuxt product-site shell",
113
113
  "type": "layer",
114
- "version": "^0.3.1"
114
+ "version": "^0.3.2"
115
115
  },
116
116
  "@stackonward/onex-cms-client": {
117
117
  "name": "@stackonward/onex-cms-client",
@@ -0,0 +1,9 @@
1
+ {
2
+ "recommendations": [
3
+ "Vue.volar",
4
+ "esbenp.prettier-vscode",
5
+ "dbaeumer.vscode-eslint",
6
+ "stylelint.vscode-stylelint",
7
+ "bradlc.vscode-tailwindcss"
8
+ ]
9
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
3
+ "editor.formatOnSave": true,
4
+ "editor.formatOnSaveMode": "file",
5
+ "editor.codeActionsOnSave": {
6
+ "source.fixAll.eslint": "explicit",
7
+ "source.fixAll.stylelint": "explicit"
8
+ },
9
+ "[vue]": {
10
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
11
+ },
12
+ "[typescript]": {
13
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
14
+ },
15
+ "[javascript]": {
16
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
17
+ },
18
+ "eslint.validate": ["javascript", "typescript", "vue"],
19
+ "stylelint.validate": ["css", "vue"],
20
+ "prettier.requireConfig": true
21
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "format_on_save": "on",
3
+ "languages": {
4
+ "Vue": {
5
+ "format_on_save": "on",
6
+ "language_servers": ["...", "eslint"],
7
+ "code_actions_on_format": {
8
+ "source.fixAll.eslint": true
9
+ },
10
+ "formatter": {
11
+ "external": {
12
+ "command": "pnpm",
13
+ "arguments": ["exec", "prettier", "--stdin-filepath", "{buffer_path}"]
14
+ }
15
+ }
16
+ },
17
+ "TypeScript": {
18
+ "format_on_save": "on",
19
+ "code_actions_on_format": {
20
+ "source.fixAll.eslint": true
21
+ },
22
+ "formatter": {
23
+ "external": {
24
+ "command": "pnpm",
25
+ "arguments": ["exec", "prettier", "--stdin-filepath", "{buffer_path}"]
26
+ }
27
+ }
28
+ },
29
+ "JavaScript": {
30
+ "format_on_save": "on",
31
+ "code_actions_on_format": {
32
+ "source.fixAll.eslint": true
33
+ },
34
+ "formatter": {
35
+ "external": {
36
+ "command": "pnpm",
37
+ "arguments": ["exec", "prettier", "--stdin-filepath", "{buffer_path}"]
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -40,3 +40,13 @@ pnpm check
40
40
  `pnpm check` verifies formatting, TypeScript/Vue linting, CSS and Vue-style linting, Nuxt type safety, route rendering and the production build. Husky installs repository-owned `pre-commit` and `commit-msg` hooks during dependency installation. GitHub Actions runs the same gate from the committed lockfile.
41
41
 
42
42
  Use `pnpm lint:code:fix`, `pnpm lint:styles:fix` and `pnpm format` for explicit local fixes. Shared policy comes from versioned `@stackonward/*-config` packages; the root composition files remain application-owned.
43
+
44
+ VS Code and Cursor use the included `.vscode/settings.json`. Install the recommended
45
+ workspace extensions to run ESLint and Stylelint fixes followed by Prettier on save.
46
+ Zed uses `.zed/settings.json`; install its Vue extension for Vue files. Vue,
47
+ TypeScript and JavaScript saves run ESLint fixes and the project's local Prettier.
48
+
49
+ `pnpm format` runs ESLint fixes before Prettier across the project. Vue top-level
50
+ blocks span multiple lines, with a blank line between blocks. The pre-commit hook
51
+ formats staged files, and CI rejects format or lint violations using the same
52
+ project configuration.
@@ -20,7 +20,7 @@
20
20
  "lint:code:fix": "eslint . --fix --max-warnings=0",
21
21
  "lint:styles": "stylelint \"app/**/*.{css,vue}\"",
22
22
  "lint:styles:fix": "stylelint \"app/**/*.{css,vue}\" --fix",
23
- "format": "prettier --write .",
23
+ "format": "pnpm lint:code:fix && prettier --write .",
24
24
  "format:check": "prettier --check .",
25
25
  "test": "vitest run",
26
26
  "test:watch": "vitest",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@stackonward/api-client": "^0.0.3",
32
- "@stackonward/google-tag-manager-nuxt": "^0.3.2",
32
+ "@stackonward/google-tag-manager-nuxt": "^0.3.3",
33
33
  "@stackonward/nuxt-layer-base": "^0.0.4",
34
- "@stackonward/nuxt-site-shell": "^0.3.1"
34
+ "@stackonward/nuxt-site-shell": "^0.3.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@commitlint/cli": "^21.2.2",
@@ -46,7 +46,7 @@
46
46
  "@pinia/colada-nuxt": "^1.0.1",
47
47
  "@pinia/nuxt": "^0.11.3",
48
48
  "@stackonward/commitlint-config": "^0.1.1",
49
- "@stackonward/eslint-config": "^1.0.1",
49
+ "@stackonward/eslint-config": "^1.0.2",
50
50
  "@stackonward/prettier-config": "^0.0.3",
51
51
  "@stackonward/stylelint-config": "^0.1.1",
52
52
  "@types/node": "^22.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackonward/cli",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "StackOnward CLI for creating projects and installing reusable components and snippets",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,9 +37,9 @@
37
37
  "prompts": "^2.4.2",
38
38
  "zod": "4",
39
39
  "@stackonward/api-client": "0.0.3",
40
- "@stackonward/google-tag-manager": "0.2.2",
41
40
  "@stackonward/onedev-provisioning": "0.1.0",
42
- "@stackonward/provisioning": "0.1.0"
41
+ "@stackonward/provisioning": "0.1.0",
42
+ "@stackonward/google-tag-manager": "0.3.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/fs-extra": "^11.0.4",