Skip to content

Commit dfcf490

Browse files
authored
Merge pull request #10 from ioncakephper:chore/extend-package
fix: 🔥 add package.json sections
2 parents 044f822 + 0f72e39 commit dfcf490

File tree

4 files changed

+3482
-236
lines changed

4 files changed

+3482
-236
lines changed
File renamed without changes.

README.md

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# js-quality-starter
1+
# {{PROJECT_NAME}}
22

33
[![CI](https://github.com/your-username/your-new-repo/actions/workflows/ci.yml/badge.svg)](https://github.com/your-username/your-new-repo/actions/workflows/ci.yml)
44
[![codecov](https://codecov.io/gh/your-username/your-new-repo/graph/badge.svg?token=YOUR_CODECOV_TOKEN)](https://codecov.io/gh/your-username/your-new-repo)
@@ -9,31 +9,19 @@ A template repository for modern JavaScript projects with pre-configured linting
99

1010
This template provides a solid foundation for any new JavaScript project, ensuring code quality and consistency from the start.
1111

12-
## Table of Contents <!-- omit in toc -->
13-
14-
- [Quick Start](#quick-start)
15-
- [Why Choose `js-quality-started`?](#why-choose-js-quality-started)
16-
- [What's Inside?](#whats-inside)
17-
- [Getting Started](#getting-started)
18-
- [Using as a Template](#using-as-a-template)
19-
- [Manual Setup](#manual-setup)
20-
- [Post-Template Setup](#post-template-setup)
21-
- [Available Scripts](#available-scripts)
22-
- [How It Works](#how-it-works)
23-
- [Pre-commit Hooks](#pre-commit-hooks)
24-
- [CI/CD Pipelines](#cicd-pipelines)
25-
- [Customization](#customization)
26-
- [Code Coverage](#code-coverage)
27-
- [Contributing](#contributing)
28-
- [License](#license)
12+
## Table of Contents
13+
14+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
15+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
16+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2917

3018
## Quick Start
3119

3220
```bash
33-
npx degit your-github-username/js-quality-started my-new-project
34-
cd my-new-project
21+
git clone https://github.com/{{GITHUB_USERNAME}}/{{PROJECT_NAME}}.git
22+
cd {{PROJECT_NAME}}
3523
npm install
36-
npm test
24+
npm run setup # Clearly state to run your setup script!
3725
# Start building!
3826
```
3927

@@ -97,8 +85,8 @@ This template comes pre-configured with a suite of modern, industry-standard too
9785
1. Clone the repository:
9886

9987
```bash
100-
git clone https://github.com/your-username/your-new-repo.git # Replace with your actual repository URL
101-
cd your-new-repo
88+
git clone https://github.com/{{GITHUB_USERNAME}}/{{PROJECT_NAME}}.git # Replace with your actual repository URL
89+
cd {{PROJECT_NAME}}
10290
```
10391

10492
2. Install dependencies:
@@ -113,16 +101,18 @@ This template comes pre-configured with a suite of modern, industry-standard too
113101

114102
### Post-Template Setup
115103

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:
117105

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+
```
121110

122111
## Available Scripts
123112

124113
In the project directory, you can run:
125114

115+
````bash
126116
- `npm test`: Runs the tests using Jest.
127117
- `npm run lint`: Lints all `.js` files in the project.
128118
- `npm run lint:fix`: Lints and automatically fixes fixable issues.
@@ -132,6 +122,8 @@ In the project directory, you can run:
132122
- `npm run lint:md:fix`: Lints and automatically fixes fixable issues in Markdown files.
133123
- `npm run format:md`: Checks for formatting issues with Prettier for Markdown files.
134124
- `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.
135127

136128
## How It Works
137129

@@ -185,8 +177,7 @@ To get a dynamic code coverage badge like the one at the top of this `README.md`
185177
uses: codecov/codecov-action@v4
186178
with:
187179
token: ${{ secrets.CODECOV_TOKEN }}
188-
```
189-
180+
```
190181
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).
191182
192183
## Contributing
@@ -195,4 +186,5 @@ We welcome contributions! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) for
195186
196187
## License
197188
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.
190+
````

0 commit comments

Comments
 (0)