You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run setup # Clearly state to run your setup script!
37
25
# Start building!
38
26
```
39
27
@@ -97,8 +85,8 @@ This template comes pre-configured with a suite of modern, industry-standard too
97
85
1. Clone the repository:
98
86
99
87
```bash
100
-
git clone https://github.com/your-username/your-new-repo.git # Replace with your actual repository URL
101
-
cdyour-new-repo
88
+
git clone https://github.com/{{GITHUB_USERNAME}}/{{PROJECT_NAME}}.git # Replace with your actual repository URL
89
+
cd{{PROJECT_NAME}}
102
90
```
103
91
104
92
2. Install dependencies:
@@ -113,16 +101,18 @@ This template comes pre-configured with a suite of modern, industry-standard too
113
101
114
102
### Post-Template Setup
115
103
116
-
After creating your repository from this template, be sure to:
104
+
After creating your repository from this template and cloning it locally, personalize your project by running the setup script:
117
105
118
-
1.**Update `package.json`**: Change the `name`, `description`, and `author` fields.
119
-
2.**Update `LICENSE`**: Modify the `[year]` and `[fullname]` to reflect your project's ownership.
120
-
3.**Update `CODE_OF_CONDUCT.md` and `CONTRIBUTING.md`**: Replace the `[YOUR_PROJECT_CONTACT_EMAIL]` placeholder with a valid project contact email.
106
+
```bash
107
+
npm install # Ensure dependencies are installed, including 'inquirer'
108
+
npm run setup
109
+
```
121
110
122
111
## Available Scripts
123
112
124
113
In the project directory, you can run:
125
114
115
+
````bash
126
116
- `npm test`: Runs the tests using Jest.
127
117
- `npm run lint`: Lints all `.js` files in the project.
128
118
- `npm run lint:fix`: Lints and automatically fixes fixable issues.
@@ -132,6 +122,8 @@ In the project directory, you can run:
132
122
- `npm run lint:md:fix`: Lints and automatically fixes fixable issues in Markdown files.
133
123
- `npm run format:md`: Checks for formatting issues with Prettier for Markdown files.
134
124
- `npm run format:md:fix`: Formats all Markdown files with Prettier.
125
+
- `npm run toc`: Generates a Table of Contents for the `README.md` file.
126
+
- `npm run fix:all`: Runs all fixable scripts in one command.
135
127
136
128
## How It Works
137
129
@@ -185,8 +177,7 @@ To get a dynamic code coverage badge like the one at the top of this `README.md`
185
177
uses: codecov/codecov-action@v4
186
178
with:
187
179
token: ${{ secrets.CODECOV_TOKEN }}
188
-
```
189
-
180
+
```
190
181
5. Update the badge URL in `README.md` with your specific repository details and token (if required by Codecov for public repos, though often not for public repos).
191
182
192
183
## Contributing
@@ -195,4 +186,5 @@ We welcome contributions! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) for
195
186
196
187
## License
197
188
198
-
This project is licensed under the [LICENSE](LICENSE.md) file for details.
189
+
This project is licensed under the [LICENSE](LICENSE) file for details.
0 commit comments