1.1.1 • Published 4 years ago

multipack-core v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

GitHub Multipack

Features

  • Lerna structure to build monorepo packages
  • ESLint and Prettier to enforce code style.
  • Pre-commit hooks with husky and lint-staged
  • Docusaurus docs generator preconfigured to work well with Github Pages
  • Preconfigured Jest and react-testing-library to test (ts|tsx) files and colect coverage from all packages
  • Preconfigured Github workflow actions to run tests after each pushed commit

Getting started.

  • Clone the project: git clone --depth=1 https://github.com/Gherciu/multipack.git <YOUR_PROJECT_NAME>
  • Setup project: npm install

Running npm run link:packages will installing all packages dependencies and linking any cross-dependencies. This command is crucial, as it allows you to use your package names in require() as if the packages were already existing and available in your node_modules folder.

Publishing

To build and publish your packages you just need to run: npm run publish:packages

This will run the build script and then publish your packages. It is currently set to publish each package individually so that their versions are independent.

CLI Commands

npm run build:packages - build all packages with webpack in production mode

npm run watch:packages - start webpack in watch mode to rebuild packages on each change

npm run publish:packages - publish all packages in package registry (npm, yarn ...)

npm run link:packages - will installing all packages dependencies and linking any cross-dependencies in each package

npm run test:packages - run jest tests in each package and colect coverage from all packages

npm run watch:test:packages - run and watch all tests for changes

npm run lint:packages - lint all packages

npm run fix:packages - lint and fix all packages

npm run start:docs - start a Docusaurus server that serve files from /www folder predestinated for docs.

npm run publish:docs - publish generated docs with Docusaurus to Github Pages

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or you can sponsor via Open Collective

Open Collective

Author

@Gherciu/multipack © GHERCIU, Released under the MIT License. Authored and maintained by GHERCIU with help from contributors (list).

If you like this repository star⭐ and watch👀 on GitHub

1.1.1

4 years ago

1.1.0

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago