Skip to content

Commit 50dfdbd

Browse files
committed
Use latest npm, minor improvements
1 parent b042693 commit 50dfdbd

File tree

4 files changed

+1083
-102
lines changed

4 files changed

+1083
-102
lines changed

hbase-website/README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,21 +354,26 @@ The website is integrated with the Apache HBase Maven build system using the `fr
354354

355355
When you run the Maven build, it automatically:
356356

357-
1. **Installs Node.js v22.20.0 and npm 10.5.0** (if not already available)
357+
1. **Cleans previous build artifacts** (when using `mvn clean`)
358+
- Removes `build/` directory
359+
- Removes `node_modules/` directory
360+
- Ensures a fresh build environment
361+
362+
2. **Installs Node.js v22.20.0 and npm 11.6.2** (if not already available)
358363
- Installed to `target/` directory
359364
- Does not affect your system Node/npm installation
360365

361-
2. **Runs `npm install`** to install all dependencies
366+
3. **Runs `npm install`** to install all dependencies
362367
- Reads from `package.json`
363368
- Installs to `node_modules/`
364369

365-
3. **Runs `npm run ci`** which executes:
370+
4. **Runs `npm run ci`** which executes:
366371
- `npm run lint` - ESLint code quality checks
367372
- `npm run typecheck` - TypeScript type checking
368373
- `npm run test:run` - Vitest unit tests
369374
- `npm run build` - Production build
370375

371-
4. **Build Output**: Generated files are in `build/` directory
376+
5. **Build Output**: Generated files are in `build/` directory
372377

373378
#### Maven Commands
374379

@@ -470,8 +475,22 @@ Fix any errors and try the Maven build again.
470475

471476
**Clean Everything:**
472477

473-
To completely reset the build environment:
478+
To completely reset the build environment, use Maven's clean phase which automatically removes `build/` and `node_modules/`:
479+
480+
```bash
481+
cd hbase-website
482+
mvn clean install
483+
```
484+
485+
This will:
486+
- Remove `build/` directory
487+
- Remove `node_modules/` directory
488+
- Remove `target/` directory
489+
- Reinstall Node.js and npm
490+
- Install all dependencies fresh
491+
- Run the full build pipeline
474492

493+
For a manual clean (if needed):
475494
```bash
476495
cd hbase-website
477496
rm -rf node_modules/ build/ target/ .react-router/

hbase-website/app/components/getting-started.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ export function GettingStartedSection() {
6262
</div>
6363
))}
6464
</div>
65-
{/* <div className="mt-8 flex justify-center">
66-
<Button
67-
asChild
68-
size="lg"
69-
className="bg-primary text-white hover:opacity-90"
70-
>
71-
<a href="#download">Download HBase</a>
72-
</Button>
73-
</div> */}
7465
</div>
7566
</section>
7667
);

0 commit comments

Comments
 (0)