Skip to content

Commit f1584f9

Browse files
committed
fix(tools): improve development run-scripts
1 parent 9bc4824 commit f1584f9

8 files changed

Lines changed: 34 additions & 39 deletions

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"preinstall": "npx only-allow pnpm",
8-
"prepare": "npx is-ci || npx husky",
9-
"dev": "pnpm run develop",
7+
"prepare": "is-ci || husky",
108
"develop": "astro dev",
11-
"start": "node ./run-server.mjs",
12-
"build": "rm -rf ./dist && astro check && astro build",
13-
"preview": "wrangler pages dev ./dist",
14-
"astro": "astro",
9+
"build": "astro build",
10+
"preview": "pnpm build && wrangler pages dev",
1511
"format": "prettier . --write --cache && eslint . --cache --fix",
1612
"lint": "prettier . --check --cache && eslint . --cache",
1713
"playwright:run": "playwright test",
@@ -22,7 +18,7 @@
2218
"pnpm format"
2319
],
2420
"**/*.{mdx,md}": [
25-
"npx prettier . --write"
21+
"pnpm exec prettier . --write"
2622
]
2723
},
2824
"dependencies": {
@@ -48,7 +44,7 @@
4844
"husky": "9.1.7",
4945
"is-ci": "4.1.0",
5046
"lint-staged": "16.1.2",
51-
"prettier": "3.5.3",
47+
"prettier": "3.6.2",
5248
"prettier-plugin-astro": "0.14.1",
5349
"sharp": "0.34.2",
5450
"wrangler": "^4.0.0"

pnpm-lock.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/docs/how-to-open-a-pull-request.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ Some examples of good PR titles would be:
9393
3. Submit the pull request from your branch to freeCodeCamp's `main` branch.
9494

9595
4. Include a more detailed summary of the changes you made and how your changes are helpful in the body of your PR.
96-
9796
- You will be presented with a pull request template. This is a checklist that you should have followed before opening the pull request.
9897

9998
- Fill in the details as you see fit. Ensure that you give the reviewers enough context to review the changes. If the PR makes changes to the UI, be sure to include screenshots of the changes as well. All of this information will be reviewed and the reviewers will decide whether or not your pull request is accepted.
@@ -104,7 +103,6 @@ Some examples of good PR titles would be:
104103
> Example: `Closes #123` will close issue 123
105104
106105
5. Indicate if you have tested on a local copy of the site or not.
107-
108106
- This is very important when making changes that are not just edits to text content like documentation or a challenge description. Examples of changes that need local testing include JavaScript, CSS, or HTML, which could change the functionality or layout of a page.
109107

110108
- If your PR affects the behavior of a page, it should be accompanied by corresponding [Playwright integration tests](/how-to-add-playwright-tests/).

src/content/docs/how-to-setup-freecodecamp-locally.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ We have automated the process of installing all the dependencies & tools you wil
117117
and you should see a workspace created for you. This works for any repository or pull-request on GitHub.
118118

119119
2. Alternatively install one of the below extensions for your browser.
120-
121120
- [Chrome Webstore](https://chrome.google.com/webstore/detail/gitpod-always-ready-to-co/dodmmooeoklaejobgleioelladacbeki) - works with Chromium-based browsers like Google Chrome, Brave, Edge, etc.
122121
- [Firefox Add-on](https://addons.mozilla.org/en-US/firefox/addon/gitpod) - Firefox
123122

src/content/docs/how-to-translate-files.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ We just ask that you understand the following:
3939
For example, we would want to deploy at least the first 3 certifications when we ship a new world language for the first time.
4040

4141
The directories on Crowdin containing the first 3 certifications are:
42-
4342
- 14-responsive-web-design-22
4443
- 15-javascript-algorithms-and-data-structures-22
4544
- 03-front-end-development-libraries

src/content/docs/how-to-work-on-localized-client-webapp.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ Most of the files for translating the platform are located in the [`client/i18n`
2929
- config
3030
- i18n.ts
3131
- i18n
32-
3332
- configForTests.js
3433
- config.js
3534
- locales
36-
3735
- **chinese** _Name of the world language_
3836
- intro.json
3937
- links.json

src/content/docs/moderator-handbook.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ Camperbot serves as our moderation bot, and all of the commands use Discord's na
286286
3. **Creating a private discussion**
287287

288288
There may be situations where you need to address a concern with a camper privately. This should not be done through DMs, which can lead to situations where you claim one thing and the camper claims another. Instead, use the bot's functionality to create a private discussion:
289-
290289
- Call the `/private` command, where `target` is the camper you want to open a private channel with.
291290
- The bot will create a new channel, and add the mentioned camper and all moderators with the `Your Friendly Moderator` role. While all moderators are added to the channel for transparency, the moderator who calls this command should be the only one to interact with the camper unless they request assistance.
292291
- When the conversation is complete, click the `❌ Close` button _on the first message in the private channel_ to have the bot close and delete that channel.
@@ -306,7 +305,6 @@ Camperbot serves as our moderation bot, and all of the commands use Discord's na
306305
If a violation was clearly unintended and doesn't warrant moderation action or private conversation, make the offending camper aware of their actions without making it come across as a warning.
307306

308307
For example:
309-
310308
- Camper posts a wall of code to request help:
311309

312310
Moderator: **@username** Please use CodePen or Pastebin when posting large amounts of code.

wrangler.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generated by Wrangler on Tue Jul 08 2025 11:51:51 GMT+0530 (India Standard Time)
2+
name = "contribute"
3+
pages_build_output_dir = "dist"
4+
compatibility_date = "2024-11-11"
5+
6+
[placement]
7+
mode = "smart"

0 commit comments

Comments
 (0)