https://github.com/jhordyess/monorepo-example
This is a monorepo example project. It contains two applications: a Node.js app and a Vanilla TypeScript app.
https://github.com/jhordyess/monorepo-example
npm-workspaces typescript webpack yarn-workspaces
Last synced: about 2 months ago
JSON representation
This is a monorepo example project. It contains two applications: a Node.js app and a Vanilla TypeScript app.
- Host: GitHub
- URL: https://github.com/jhordyess/monorepo-example
- Owner: jhordyess
- License: mit
- Created: 2024-12-05T03:17:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-05T03:24:43.000Z (over 1 year ago)
- Last Synced: 2025-04-05T18:52:30.123Z (about 1 year ago)
- Topics: npm-workspaces, typescript, webpack, yarn-workspaces
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MonoRepo Example
## Description
This is a monorepo example project. It contains two applications: a Node.js app and a Vanilla TypeScript app.
- The Node.js JavaScript app is a simple console application that reads user input and validates it.
- The Vanilla TypeScript app is a simple web application that reads user input from a form and validates it.
The Node.js JavaScript app uses NPM Workspaces to manage its dependencies, while the Vanilla TypeScript app uses Yarn Workspaces.
Both applications define two packages: a validator package and a read-input package. For the Vanilla TypeScript app, Webpack is used to bundle those packages, while for the Node.js app, the packages are used directly.
## Goals
- Demonstrate how to create a monorepo with NPM Workspaces and Yarn Workspaces.
- Illustrate how to share code between the workspaces using shared packages.
- Provide a simple example of a Node.js app and a Vanilla TypeScript app that use shared packages.
## Technologies
### Node.js App
- Node.js 22 π
- JavaScript ES6+
- NPM 10
### Vanilla TypeScript App
- TypeScript 5
- Webpack 5
- Tailwind CSS 3, PostCSS, and Autoprefixer
- Prettier 3
- Vite 6
- Yarn 4 πΆβπ«οΈ with node_modules π
## Contribution
If you would like to contribute to the project, open an issue or make a pull request on the repository.
## License
Β© 2024> [Jhordyess](https://github.com/jhordyess). Under the [MIT](https://choosealicense.com/licenses/mit/) license. See the [LICENSE](./LICENSE) file for more details.
---
Made with πͺ by [Jhordyess](https://www.jhordyess.com/)