This repository is a collection of utility TypeScript libraries.
- Go to the root of the project you want to publish.
- Edit
package.jsonto update the version. - Go to the root of the QLACK-TS project and execute:
ng build --project {projectname}, e.g.ng build --project @qlack/forms - Go to the root of the QLACK-TS project under
distfolder, e.g.dist/qlack/formsand execute:npm publish
Once you've made changes to the libraries, you may need to test them inside your application before publishing.
- Assuming you have already built the libraries you need (see steps above), navigate to each dist folder, e.g. dist\qlack\forms, and execute
npm link - Inside your project's root folder, change the versions of the corresponding libraries in package.json and execute
npm link {projectname}, e.g. (if you want to link to more than one libraries you should place them in the same command)npm link @qlack/forms @qlack/form-validation - Once you are done testing, execute the following command from your project's root folder to unlink local libraries
npm unlink {projectname}, e.g.npm unlink @qlack/forms @qlack/form-validation - Publish the local libraries as described in the previous section and execute
npm installin your project's root folder to download the published version. - You may also need to remove your local directories from being able to get linked from other libraries. Navigate to the root library and execute the following command
npm uninstall -g {projectname}
We welcome contributions and appreciate your effort to help improve this project!
To keep things organized please follow the steps below:
-
Fork the repository to your own GitHub account.
-
Clone your fork to your local machine:
git clone https://github.com/<your-username>/<repo>.git cd <repo>
-
Make your changes and Commit your work:
-
Push the branch to your fork.
-
Open a Pull Request (PR) against the main repository:
- A Pull Request (PR) is a GitHub feature that lets you propose changes from your fork back to the original repository.
- To create one:
- Log in to your GitHub account.
- Navigate to your forked repository.
- Click the "Contribute" button (usually near the top of the repo page).
- Select "Open pull request".
- Make sure the base repository is the original project and the base branch (
master) is correct. - Confirm that the “compare” branch is the branch you pushed.
-
In the PR form:
- Provide a clear description of the changes and why they are needed
- Reference related issues if applicable
- Request a review from maintainers
- Be open to feedback and ready to make revisions
You can also watch an overview of how to contribute to OSS via Pull Requests here: GitHub Pull Request Tutorial