simple-scaffold 1.3.0 → 1.3.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/.github/workflows/docs.yml +1 -1
- package/CHANGELOG.md +14 -5
- package/package.json +1 -4
- package/pages/cli.md +1 -1
- package/pages/configuration_files.md +1 -1
- package/src/cmd.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [1.3.
|
|
3
|
+
## [1.3.1](https://github.com/chenasraf/simple-scaffold/compare/v1.3.0...v1.3.1) (2023-04-28)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
###
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* docs ([6e19a86](https://github.com/chenasraf/simple-scaffold/commit/6e19a86190dd924058a48448aa6463569ef1125f))
|
|
9
|
+
* remove old peer-dep ([c7e2ef8](https://github.com/chenasraf/simple-scaffold/commit/c7e2ef862cb658feb1071ac120b185d8b34d6dd3))
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
## [1.3.0](https://github.com/chenasraf/simple-scaffold/compare/v1.2.0...v1.3.0) (2023-04-25)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
9
14
|
|
|
15
|
+
- load scaffold config from files
|
|
16
|
+
([c398976](https://github.com/chenasraf/simple-scaffold/commit/c3989769fee445c9183ff5e5b3892c4e9fb66a9e))
|
|
10
17
|
|
|
11
18
|
### Bug Fixes
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
20
|
+
- config option should not be mandatory
|
|
21
|
+
([3db6a91](https://github.com/chenasraf/simple-scaffold/commit/3db6a918f13d9300efa2fcb4a356d004475ab91c))
|
|
22
|
+
- export config file type
|
|
23
|
+
([4302eb5](https://github.com/chenasraf/simple-scaffold/commit/4302eb5ce35ed6cf1dc80dfb92790c3fdd96f963))
|
|
15
24
|
|
|
16
25
|
## [1.2.0](https://github.com/chenasraf/simple-scaffold/compare/v1.1.4...v1.2.0) (2023-04-24)
|
|
17
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-scaffold",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A simple command to generate any file structure, from single components to entire app boilerplates.",
|
|
5
5
|
"homepage": "https://casraf.dev/simple-scaffold",
|
|
6
6
|
"repository": "https://github.com/chenasraf/simple-scaffold.git",
|
|
@@ -63,8 +63,5 @@
|
|
|
63
63
|
"ts-node": "^10.9.1",
|
|
64
64
|
"typedoc": "^0.24.6",
|
|
65
65
|
"typescript": "^5.0.4"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"doc-theme": "file:./doc-theme"
|
|
69
66
|
}
|
|
70
67
|
}
|
package/pages/cli.md
CHANGED
|
@@ -60,7 +60,7 @@ Options:
|
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
> See
|
|
63
|
-
> [Configuration Files](https://chenasraf.githun.io/simple-scaffold/pages/docs/
|
|
63
|
+
> [Configuration Files](https://chenasraf.githun.io/simple-scaffold/pages/docs/configuration_files.md)
|
|
64
64
|
> for organizing multiple scaffold types into easy-to-maintain files
|
|
65
65
|
|
|
66
66
|
You can also add this as a script in your `package.json`:
|
|
@@ -19,7 +19,7 @@ example:
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
The configuration contents are identical to the
|
|
22
|
-
[Node.js configuration structure](https://chenasraf.
|
|
22
|
+
[Node.js configuration structure](https://chenasraf.github.io/simple-scaffold/pages/node.md):
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
interface ScaffoldConfig {
|
package/src/cmd.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import massarg from "massarg"
|
|
3
3
|
import chalk from "chalk"
|
|
4
|
-
import { LogLevel, ScaffoldCmdConfig
|
|
4
|
+
import { LogLevel, ScaffoldCmdConfig } from "./types"
|
|
5
5
|
import { Scaffold } from "./scaffold"
|
|
6
6
|
import path from "path"
|
|
7
7
|
import fs from "fs/promises"
|
|
8
8
|
import { parseAppendData, parseConfig } from "./utils"
|
|
9
|
-
import { OptionsBase } from "massarg/types"
|
|
10
9
|
|
|
11
10
|
export async function parseCliArgs(args = process.argv.slice(2)) {
|
|
12
11
|
const pkg = JSON.parse((await fs.readFile(path.join(__dirname, "package.json"))).toString())
|