@keshavsoft/kschema-cli 1.12.7 → 1.12.8
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/bin/v12/commands/tally/steps/locateSource.js +3 -1
- package/package.json +7 -1
- package/CHANGELOG.md +0 -67
- package/dev.md +0 -74
|
@@ -4,11 +4,13 @@ import { fileURLToPath } from "url";
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = path.dirname(__filename);
|
|
6
6
|
|
|
7
|
+
const sourceVersion = "v3";
|
|
8
|
+
|
|
7
9
|
export const locateSource = () => {
|
|
8
10
|
return path.join(
|
|
9
11
|
__dirname,
|
|
10
12
|
"..",
|
|
11
13
|
"template",
|
|
12
|
-
|
|
14
|
+
sourceVersion
|
|
13
15
|
);
|
|
14
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keshavsoft/kschema-cli",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8",
|
|
4
4
|
"description": "CLI to scaffold projects using templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
"bin": {
|
|
20
20
|
"kschema-cli": "./bin/cli.js"
|
|
21
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"bin/",
|
|
24
|
+
"index.js",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
22
28
|
"homepage": "https://cli.keshavsoft.com",
|
|
23
29
|
"repository": {
|
|
24
30
|
"type": "git",
|
package/CHANGELOG.md
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on Keep a Changelog.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## [1.3.1] - 2026-04-21
|
|
10
|
-
|
|
11
|
-
### Added
|
|
12
|
-
- Initial release of `@keshavsoft/kschema-cli`
|
|
13
|
-
- CLI command: `kschema init <template> [projectName]`
|
|
14
|
-
- Template support:
|
|
15
|
-
- basic
|
|
16
|
-
- express
|
|
17
|
-
- Auto project generation using file copy
|
|
18
|
-
- Auto folder naming when projectName not provided:
|
|
19
|
-
- `kschema-<template>-<timestamp>`
|
|
20
|
-
- Modular command structure (`init`, `test`)
|
|
21
|
-
- Version-based CLI execution (`cliVersion` support)
|
|
22
|
-
|
|
23
|
-
### Notes
|
|
24
|
-
- Designed as a wrapper over kschema ecosystem
|
|
25
|
-
- Focused on simplicity and fast project setup
|
|
26
|
-
|
|
27
|
-
## [1.4.1] - 2026-04-23
|
|
28
|
-
|
|
29
|
-
### Added
|
|
30
|
-
- made auto code, no cliversion in package, major change
|
|
31
|
-
|
|
32
|
-
## [1.5.2] - 2026-04-23
|
|
33
|
-
|
|
34
|
-
### Added
|
|
35
|
-
- new cli added generateSamples dependant on kschema npm
|
|
36
|
-
|
|
37
|
-
## [1.5.3] - 2026-04-23
|
|
38
|
-
|
|
39
|
-
- cli perfect with samples also, only kschema version need to change
|
|
40
|
-
|
|
41
|
-
## [1.11.1] - 2026-05-01
|
|
42
|
-
|
|
43
|
-
- express added
|
|
44
|
-
|
|
45
|
-
## [1.12.1] - 2026-05-01
|
|
46
|
-
|
|
47
|
-
- started exporting also, along with cli
|
|
48
|
-
|
|
49
|
-
## [1.12.2] - 2026-05-01
|
|
50
|
-
|
|
51
|
-
- export init and express perfect
|
|
52
|
-
|
|
53
|
-
## [1.12.4] - 2026-05-01
|
|
54
|
-
|
|
55
|
-
- express template perfect need to test
|
|
56
|
-
|
|
57
|
-
## [1.12.5] - 2026-05-02
|
|
58
|
-
|
|
59
|
-
- express started workin on v3
|
|
60
|
-
|
|
61
|
-
## [1.12.6] - 2026-05-02
|
|
62
|
-
|
|
63
|
-
- tally perfect till masters
|
|
64
|
-
|
|
65
|
-
## [1.12.7] - 2026-05-05
|
|
66
|
-
|
|
67
|
-
- tally v3 perfect with voucher post
|
package/dev.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# @keshavsoft/kschema
|
|
2
|
-
|
|
3
|
-
A minimal config store for loading and accessing JSON configuration across your application.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🚀 Installation
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @keshavsoft/kschema
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 📦 Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import { loadConfig, getConfig } from "@keshavsoft/kschema";
|
|
19
|
-
|
|
20
|
-
loadConfig({ name: "test" });
|
|
21
|
-
|
|
22
|
-
console.log(getConfig());
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 🧠 API
|
|
28
|
-
|
|
29
|
-
### loadConfig(config)
|
|
30
|
-
|
|
31
|
-
Loads the configuration into memory.
|
|
32
|
-
|
|
33
|
-
* `config` → Object
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
### getConfig()
|
|
38
|
-
|
|
39
|
-
Returns the loaded configuration.
|
|
40
|
-
|
|
41
|
-
* Throws error if config is not loaded
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## ⚠️ Notes
|
|
46
|
-
|
|
47
|
-
* Config is stored in-memory
|
|
48
|
-
* Must call `loadConfig` before `getConfig`
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## 📌 Example
|
|
53
|
-
|
|
54
|
-
```js
|
|
55
|
-
loadConfig({ user: "keshav" });
|
|
56
|
-
|
|
57
|
-
const data = getConfig();
|
|
58
|
-
|
|
59
|
-
console.log(data.user); // keshav
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## 🛠 Future Scope
|
|
65
|
-
|
|
66
|
-
* Validation support
|
|
67
|
-
* Config updates
|
|
68
|
-
* Remote config loading
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## 👨💻 Author
|
|
73
|
-
|
|
74
|
-
KeshavSoft
|