@tukuyomil032/bricklayer 1.0.2 ā 1.0.41
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/README.md +36 -23
- package/dist/index.js +2 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,12 +6,17 @@ Quickly generate a well-structured TypeScript CLI project with best practices bu
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
⨠**Interactive Setup** - Guided prompts for project configuration
|
|
10
|
-
š¦ **Latest Packages** - Automatically fetches the latest npm package versions
|
|
11
|
-
šØ **Optional Tools** - Choose Prettier and ESLint during setup
|
|
12
|
-
šŖ **Git Hooks** - Pre-configured Husky hooks with lint-staged
|
|
13
|
-
šļø **Clean Structure** - Role-separated files and commands
|
|
14
|
-
ā” **Multiple Package Managers** - Support for pnpm, npm, yarn, and bun
|
|
9
|
+
- ⨠**Interactive Setup** - Guided prompts for project configuration
|
|
10
|
+
- š¦ **Latest Packages** - Automatically fetches the latest npm package versions
|
|
11
|
+
- šØ **Optional Tools** - Choose Prettier and ESLint during setup
|
|
12
|
+
- šŖ **Git Hooks** - Pre-configured Husky hooks with lint-staged
|
|
13
|
+
- šļø **Clean Structure** - Role-separated files and commands
|
|
14
|
+
- ā” **Multiple Package Managers** - Support for pnpm, npm, yarn, and bun
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
- Node.js 18+
|
|
19
|
+
- npm, pnpm, yarn, bun
|
|
15
20
|
|
|
16
21
|
## Installation
|
|
17
22
|
|
|
@@ -32,19 +37,26 @@ bun add -g @tukuyomil032/bricklayer
|
|
|
32
37
|
|
|
33
38
|
```bash
|
|
34
39
|
# When treating the current directory during command execution as the project's root folder:
|
|
35
|
-
|
|
40
|
+
$ brick create
|
|
41
|
+
|
|
42
|
+
# To view the help screen:
|
|
43
|
+
$ brick -h
|
|
36
44
|
|
|
37
45
|
# If you want to specify the project's root folder yourself (we generally recommend using this option):
|
|
38
46
|
# Use the arrow keys (up and down) and the Enter key to navigate to the project's root folder.
|
|
39
|
-
|
|
47
|
+
$ brick create -d
|
|
40
48
|
|
|
41
49
|
# You can also specify a project folder directly by entering a relative path after the `-d` option.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# available aliases
|
|
45
|
-
bl create
|
|
50
|
+
$ brick create -d ~/Documents/dev/CLI/my-test-project
|
|
46
51
|
```
|
|
47
52
|
|
|
53
|
+
## Available Options
|
|
54
|
+
|
|
55
|
+
- ``-h --help`` - display help for command
|
|
56
|
+
- ``-V --version`` - output the version number
|
|
57
|
+
- ``-d --destination`` - Specify the project creation directory
|
|
58
|
+
- This option can be used either to manually select the directory path where the project will be created, or to specify a relative path by entering it directly after ā-dā.
|
|
59
|
+
|
|
48
60
|
Follow the interactive prompts to configure your project:
|
|
49
61
|
|
|
50
62
|
- Project name
|
|
@@ -66,15 +78,16 @@ your-cli/
|
|
|
66
78
|
āāā .husky/ #options
|
|
67
79
|
ā āāā pre-commit
|
|
68
80
|
ā āāā pre-push
|
|
69
|
-
āāā .gitignore
|
|
70
|
-
āāā .prettierrc
|
|
71
|
-
āāā .prettierignore
|
|
72
81
|
āāā .editorconfig
|
|
82
|
+
āāā .gitignore
|
|
73
83
|
āāā .npmignore
|
|
84
|
+
āāā .npmrc
|
|
85
|
+
āāā .prettierignore
|
|
86
|
+
āāā .prettierrc
|
|
74
87
|
āāā eslint.config.js
|
|
75
88
|
āāā package.json
|
|
76
|
-
āāā
|
|
77
|
-
āāā
|
|
89
|
+
āāā README.md
|
|
90
|
+
āāā tsconfig.json
|
|
78
91
|
```
|
|
79
92
|
|
|
80
93
|
## Development
|
|
@@ -85,10 +98,10 @@ git clone https://github.com/tukuyomil032/bricklayer.git
|
|
|
85
98
|
cd bricklayer
|
|
86
99
|
|
|
87
100
|
# Install dependencies
|
|
88
|
-
|
|
101
|
+
npm install
|
|
89
102
|
|
|
90
103
|
# Build
|
|
91
|
-
|
|
104
|
+
npm run build
|
|
92
105
|
|
|
93
106
|
# Test locally
|
|
94
107
|
node dist/index.js create
|
|
@@ -96,10 +109,10 @@ node dist/index.js create
|
|
|
96
109
|
|
|
97
110
|
## Scripts
|
|
98
111
|
|
|
99
|
-
- `
|
|
100
|
-
- `
|
|
101
|
-
- `
|
|
102
|
-
- `
|
|
112
|
+
- `npm run build` - Build the TypeScript project
|
|
113
|
+
- `npm run dev` - Run in development mode
|
|
114
|
+
- `npm run lint` - Lint the code
|
|
115
|
+
- `npm run format` - Format the code with Prettier
|
|
103
116
|
|
|
104
117
|
## Requirements
|
|
105
118
|
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,9 @@ import { createCommand } from './create/index.js';
|
|
|
3
3
|
import { sampleCommand } from './sample.js';
|
|
4
4
|
const program = new Command();
|
|
5
5
|
program
|
|
6
|
-
.name('
|
|
7
|
-
.alias('bl')
|
|
6
|
+
.name('brick')
|
|
8
7
|
.description('Interactive CLI to scaffold TypeScript CLI projects')
|
|
9
|
-
.version('
|
|
8
|
+
.version('1.0.41');
|
|
10
9
|
program.addCommand(createCommand());
|
|
11
10
|
program.addCommand(sampleCommand());
|
|
12
11
|
program.parseAsync(process.argv).catch((err) => {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tukuyomil032/bricklayer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.41",
|
|
5
5
|
"description": "Interactive TypeScript CLI project scaffolder",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"bin": {
|
|
10
|
-
"
|
|
10
|
+
"brick": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|