@naseej/blox 1.4.4 → 1.5.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.
Files changed (3) hide show
  1. package/dist/run.js +1625 -159
  2. package/package.json +24 -22
  3. package/readme.md +24 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naseej/blox",
3
- "version": "1.4.4",
3
+ "version": "1.5.1",
4
4
  "description": "blox cli",
5
5
  "bin": {
6
6
  "blox": "./bin/run"
@@ -33,46 +33,48 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@tsconfig/node20": "^20.1.4",
36
+ "@types/cross-spawn": "^6.0.6",
37
+ "@types/ejs": "3.1.5",
38
+ "@types/fs-extra": "11.0.4",
39
+ "@types/klaw": "^3.0.6",
40
+ "@types/lodash": "4.17.20",
41
+ "@types/ms": "0.7.34",
36
42
  "@types/node": "^20.12.12",
37
43
  "@types/prompts": "^2.4.9",
38
44
  "@types/signale": "^1.4.7",
39
45
  "@types/yargs": "^17.0.32",
40
- "@types/klaw": "^3.0.6",
41
- "@types/fs-extra": "11.0.4",
42
- "@types/ms": "0.7.34",
43
- "@types/ejs": "3.1.5",
44
- "@types/lodash": "4.17.20",
45
- "eslint": "^8.57.0",
46
- "vitest": "2.1.8",
47
- "vite-tsconfig-paths": "^5.1.4",
48
- "prettier": "^3.2.5",
49
- "tsx": "4.19.2",
50
- "tsup": "^8.0.2",
51
- "typescript": "^5.7.2",
52
46
  "@typescript-eslint/eslint-plugin": "^8.17.0",
53
47
  "@typescript-eslint/parser": "^8.17.0",
48
+ "cli-docs-generator": "^1.0.7",
49
+ "eslint": "^8.57.0",
54
50
  "eslint-config-prettier": "^8.10.0",
55
51
  "eslint-import-resolver-typescript": "^3.6.1",
56
52
  "eslint-plugin-import": "^2.29.1",
57
53
  "eslint-plugin-prettier": "^5.1.3",
58
54
  "eslint-plugin-react": "^7.34.1",
59
55
  "eslint-plugin-unused-imports": "^3.2.0",
60
- "cli-docs-generator": "^1.0.7",
61
56
  "husky": "^9.1.7",
62
- "patch-package": "^8.0.0"
57
+ "patch-package": "^8.0.0",
58
+ "prettier": "^3.2.5",
59
+ "tsup": "^8.0.2",
60
+ "tsx": "4.19.2",
61
+ "typescript": "^5.7.2",
62
+ "vite-tsconfig-paths": "^5.1.4",
63
+ "vitest": "2.1.8"
63
64
  },
64
65
  "dependencies": {
65
- "ansis": "3.3.2",
66
66
  "@clack/prompts": "^0.8.2",
67
- "fs-extra": "^11.2.0",
68
- "klaw": "^4.1.0",
69
- "ejs": "^3.1.10",
70
- "env-paths": "^2.2.1",
71
67
  "@commander-js/extra-typings": "12.1.0",
68
+ "ansis": "3.3.2",
72
69
  "commander": "12.1.0",
73
- "ms": "2.1.3",
70
+ "cross-spawn": "^7.0.6",
74
71
  "dayjs": "1.11.13",
72
+ "ejs": "^3.1.10",
73
+ "env-paths": "^2.2.1",
74
+ "fs-extra": "^11.2.0",
75
+ "ignore": "^7.0.5",
76
+ "klaw": "^4.1.0",
75
77
  "lodash": "^4.17.21",
76
- "ignore": "^7.0.5"
78
+ "ms": "2.1.3"
77
79
  }
78
80
  }
package/readme.md CHANGED
@@ -1,9 +1,4 @@
1
- #
2
- ![logo](./assets/blox.png)
3
-
4
- ### Introduction and Goals
5
-
6
- BLOX is started kit built to speed Medad Product development by providing prebuild blocks of code that can be added with all its provided functionalities in one cli command.
1
+ # BLOX CLI
7
2
 
8
3
  ### Prerequisites
9
4
 
@@ -32,6 +27,7 @@ Commands:
32
27
  blox init Init new app [alias: i]
33
28
  blox add Add block to app [alias: a]
34
29
  blox update Update app/block [alias: u]
30
+ blox contribute Contribute changes to template/base/block repos [alias: cb]
35
31
  blox conf Set blox global config [alias: c]
36
32
  blox upgrade Upgrade blox cli to latest version
37
33
  blox migrate Migrate blox schema
@@ -51,6 +47,7 @@ Options:
51
47
  * [init](#init)
52
48
  * [add](#add)
53
49
  * [update](#update)
50
+ * [contribute](#contribute)
54
51
  * [conf](#conf)
55
52
  * [upgrade](#upgrade)
56
53
  * [migrate](#migrate)
@@ -109,6 +106,27 @@ Options:
109
106
 
110
107
  * Note: you may need to resolve merge conflicts if found
111
108
 
109
+ #### contribute
110
+
111
+ ```sh
112
+ blox contribute --help
113
+ ```
114
+
115
+ ```
116
+ blox contribute
117
+
118
+ Contribute changes back to template/base/block repositories
119
+
120
+ Options:
121
+ --existing Add changes to an existing contribution branch
122
+ --title <title> Contribution title
123
+ --description <text> Contribution description
124
+ --commits <commits> Comma-separated commit hashes from the app repo
125
+ --force Bypass safety pre-flight checks
126
+ --type <type> Target: template | base | block
127
+ --name <name> Target name (with --type)
128
+ ```
129
+
112
130
  #### conf
113
131
 
114
132
  ```sh
@@ -146,7 +164,3 @@ blox migrate
146
164
 
147
165
  Migrate blox schema
148
166
  ```
149
-
150
- ### Docs
151
-
152
- - [Design](./docs/design.md)