https://profiq-gitignore-production.glb.edgio.link/
Generate your project-specific .gitignore: Perfectly crafted for your tech stack
Simple webpage and api to generate .gitignore files for your project.
- https://gitignore.profiq.com/api/search?query=<search_query>
- Searches for technologies that match the
search_query
- Returns list of technologies that match the
search_query
- https://gitignore.profiq.com/api/result?options=<options_list>&remDupl=<remove_duplicates>
- Generates
.gitignore
file for given options options_list
is a list of technologies separated by commaremove_duplicates
is a boolean value that indicates whether to remove duplicate lines from the result, default istrue
- Use Yarn as the package manager for this project.
- Make sure to include a
yarn.lock
file in the project repository. - When adding or updating dependencies, use
yarn add
or respetively
yarn upgrade
- Clone the project repository using
git clone https://github.com/profiq/gitignore
- Navigate to the project directory using
cd gitignore
- Clone Toptal templates using
yarn clone-templates
- Install project dependencies using
yarn install
- Run the project locally using
yarn dev
- Create a new branch for each feature or bug fix using
git checkout -b <branch-name>
- Commit changes frequently with descriptive commit messages using
git commit -m "<commit-message>"
- Push changes to the remote repository using
git push origin <branch-name>
- Create a pull request for code review and merge into the main branch.
- On every pull request, the code will be automatically tested and deployed to preview environment.
- Write unit tests for all new features and bug fixes.
- Run tests using
yarn test
- Make sure all tests pass before merging changes.
- Follow the project's coding conventions and style guide.
- Use a linter to enforce code style rules.
- Format code using
yarn format
- All changed files are also formatted automatically on every commit.
- For sake of ability to search templates without exact match,
techOptions.json
file is compiled usingupdate-tech-options/update-list.mjs
script run weekly techOptions.json
is map with keys being possible keywords for search and values actual technology names- To understand the structure of the templates, please check https://github.com/toptal/gitignore
- To combine templates, patch and stack files and also to deal with link files, the
update-tech-options/update-list.mjs
script generates alsotechOptionsFiles.json
file where for each technology there is a list of files that should be combined to get the final template
- runs on PR and push to the main branch
- tests building the project
- checks prettier
- runs unit tests
- Runs weekly to update
techOptions.json
andtechOptionsFiles.json
files if the template structure changed - If the structure of the templates changed, new PR is created
- The project is deployed to Edgio
- organization: profiq
- property: gitignore
- There are 3 deployment workflows for 3 environments: preview, production and dev, each of them has similar steps:
- checkout the code
- get node_modules cache
- install dependencies
- clone Toptal templates
- build and deploy the project to the environment
- To deploy project locally using Edgio, run
edg build && edg run -p
- runs on every PR to deploy the preview environment
- adds a comment to the PR with the link to the proper preview
- runs on release to deploy the production environment
- https://profiq-gitignore-production.glb.edgio.link/
- runs on every push to the main branch to deploy preview of current state of the main branch
- https://profiq-gitignore-dev.glb.edgio.link