1.9.10 • Published 7 months ago

@banch0u/core-project-test-repository v1.9.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

📦 @banch0u/core-project-test-repository – Development & Deployment Guide

✨ Live Development Setup

To develop and test changes in the core package live within another project (e.g., docflow, hr, contract, account and etc.), follow these steps:


📌 Before You Start

Ensure that Yalc is installed globally on your system:

npm install -g yalc

💠 Step 1: Start the Core Package in Watch Mode

This will watch your src/ directory for changes, rebuild the dist/ folder, and automatically push updates to .yalc:

npm run dev

💠 Step 2: In Your Main Project (Consumer App)

Important: Before executing this step, make sure your main project's dev server is stopped.

✅ a. Add the Core Package via Yalc

yalc add @banch0u/core-project-test-repository

This copies the current dist/ folder into your project's .yalc directory and updates your package.json.

🔗 b. Link the Core Package

yalc link @banch0u/core-project-test-repository

This creates a symlink to the core package. Now, all changes from the npm run dev watcher will reflect automatically when you start your project's dev server again (npm start).


⚠️ Important Notes

  • Your package.json will temporarily contain:

    "@banch0u/core-project-test-repository": "file:.yalc/@banch0u/core-project-test-repository"
  • This file path will break production builds or CI/CD pipelines.

  • Before deploying or committing:

    • Manually delete the line above from your package.json.
    • Replace it by installing the latest package from npm:
    npm install @banch0u/core-project-test-repository@latest

📦 Publishing to NPM

1. Build the Package

npm run build

This will transpile your src/ folder into the dist/ folder.

2. Bump Version

Use npm version to update the package version according to the type of change:

  • Patch (small fix): npm version patch1.0.0 → 1.0.1
  • Minor (new feature, backward compatible): npm version minor1.0.0 → 1.1.0
  • Major (breaking changes): npm version major1.0.0 → 2.0.0

3. Publish to NPM

npm publish

Your changes will now be available on the npm registry. Consumers can install the latest version via:

npm install @banch0u/core-project-test-repository@latest

Happy coding 💻🚀

1.9.10

7 months ago

1.9.9

7 months ago

1.9.8

7 months ago

1.9.7

7 months ago

1.9.6

7 months ago

1.9.5

7 months ago

1.9.4

8 months ago

1.9.3

8 months ago

1.9.2

8 months ago

1.9.1

8 months ago

1.9.0

9 months ago

1.8.4

9 months ago

1.8.3

9 months ago

1.8.2

9 months ago

1.8.1

9 months ago

1.8.0

9 months ago

1.7.2

9 months ago

1.7.1

10 months ago

1.7.0

10 months ago

1.6.2

10 months ago

1.6.1

10 months ago

1.6.0

10 months ago

1.5.3

10 months ago

1.5.2

10 months ago

1.5.1

10 months ago

1.5.0

10 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.1.0

10 months ago

1.0.30

10 months ago