Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iteam1337/templates
Project templates with our preferred configuration.
https://github.com/iteam1337/templates
Last synced: about 4 hours ago
JSON representation
Project templates with our preferred configuration.
- Host: GitHub
- URL: https://github.com/iteam1337/templates
- Owner: Iteam1337
- Created: 2022-03-22T09:23:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T23:31:43.000Z (1 day ago)
- Last Synced: 2024-11-07T00:31:30.772Z (1 day ago)
- Language: JavaScript
- Size: 14.1 MB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 👷♀️ templates 👷
This repository contains Iteam project templates to scaffold new projects and a small CLI to initialize them.
## How to use
1. In your terminal, run:
```sh
npm init @iteam/templates@latest
```
2. You will be presented with the templates available (currently koa-typescript, react-typescript, react and vite)
3. When you choose a template, a sub-directory with a new project will be created.### How to contribute
The CLI part of this project is responsible for "end user usage", as in when you use the CLI to install a new template. All the source code for the CLI is in the `src` directory.
When you run `npm run build` from the root, we bundle the source files into `./index.js`. Later, when this CLI is used, said `./index.js` is executed, effectively running the CLI script in the terminal of the consumer.
You can test the script locally by running:
```sh
npm run build
node index.js
```This project is set up with [semantic-release](https://github.com/semantic-release/semantic-release).
Every push to the main branch will trigger a Github Actions workflow (`./.github/workflows/release`).This workflow will do the following:
- Run tests
- Run `npx semantic-relase`, which will in turn:
- Analyze the commits since the last release, using the commit names based on [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/)
- If eligible\*, create a new SemVer version tag based on the commit names
- If eligible\*, publish a new version of this library to NPM at `@iteam/create-templates`
- If eligible\*, append the new version to the changelog\
\
\* _Eligible means if the commits since the last release motivates a new release, where commit name `fix:` motivates a patch version, `feat:` motivates a minor version, and `BREAKING CHANGE`(footer) motivates a major version._
_Read more at [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/#summary)_