An open API service indexing awesome lists of open source software.

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.

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/)