create-thunderous 0.0.0 → 0.0.2
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 +35 -0
- package/bin/index.js +2 -1
- package/package.json +1 -1
- package/reference-project/gitignore +3 -0
- package/reference-project/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Create Thunderous
|
|
2
|
+
|
|
3
|
+
> [!CAUTION]
|
|
4
|
+
> This project is experimental. It may not be suitable for production use at this time, as it is subject to bugs and breaking changes.
|
|
5
|
+
|
|
6
|
+
This package is used to create a new Thunderous project.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
To create a new project, the command is simple:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx create thunderous
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
To create a project in the current directory, you can pass `.` to the same command.
|
|
17
|
+
This will skip a few prompts and use the parent folder name as the project name.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Create a project in the current directory
|
|
21
|
+
npx create thunderous .
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Alternatively, if you want to skip the prompts but choose a different project name, you can pass it as an argument:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx create thunderous my-project
|
|
28
|
+
# scaffolds the project under a directory named "my-project", using "my-project" in package.json and other files.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## More Information
|
|
32
|
+
|
|
33
|
+
For more information on how to use this package, please see the [Thunderous documentation](https://thunderous.dev/docs/getting-started).
|
|
34
|
+
|
|
35
|
+
> **Note**: The documentation may not be up to date yet, and thus may not include information about the full Thunderous stack. Please refer to the [source code](https://github.com/thunder-solutions/thunderous/tree/trunk/packages/create-thunderous) for the latest information.
|
package/bin/index.js
CHANGED
|
@@ -162,7 +162,8 @@ function copyDirectoryContents(sourceDir, targetDir) {
|
|
|
162
162
|
|
|
163
163
|
for (const entry of fs.readdirSync(sourceDir, { withFileTypes: true })) {
|
|
164
164
|
const sourcePath = path.join(sourceDir, entry.name);
|
|
165
|
-
const
|
|
165
|
+
const targetName = entry.name === 'gitignore' ? '.gitignore' : entry.name;
|
|
166
|
+
const targetPath = path.join(targetDir, targetName);
|
|
166
167
|
|
|
167
168
|
if (entry.isDirectory()) {
|
|
168
169
|
fs.cpSync(sourcePath, targetPath, { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{ APP_NAME }}",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A demo to showcase Thunderous server capabilities.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"eslint": "^9.38.0",
|
|
29
29
|
"prettier": "^3.6.2",
|
|
30
30
|
"serve": "^14.2.5",
|
|
31
|
-
"thunderous-server": "^0.0.
|
|
31
|
+
"thunderous-server": "^0.0.2",
|
|
32
32
|
"tsx": "^4.20.6",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
34
|
"typescript-eslint": "^8.46.2",
|
|
35
35
|
"undici-types": "^7.16.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"thunderous": "^2.4.
|
|
39
|
-
"thunderous-csr": "^0.0.
|
|
38
|
+
"thunderous": "^2.4.2",
|
|
39
|
+
"thunderous-csr": "^0.0.2"
|
|
40
40
|
}
|
|
41
41
|
}
|