@allohamora/cli
Advanced tools
Comparing version 1.17.0 to 1.18.0
@@ -116,5 +116,2 @@ #!/usr/bin/env node | ||
}; | ||
const runScript = async (name) => { | ||
await runCommand(`npm run ${name}`); | ||
}; | ||
const installDevelopmentDependencies = async (...names) => { | ||
@@ -392,4 +389,3 @@ await runCommand(`npm i -D ${names.join(' ')}`); | ||
await installDevelopmentDependencies(PACKAGE_NAME$6); | ||
await addScripts({ name: 'prepare', script: PACKAGE_NAME$6 }); | ||
await runScript('prepare'); | ||
await runCommand(`npx ${PACKAGE_NAME$6} init`); | ||
}; | ||
@@ -848,5 +844,5 @@ | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Get release notes from CHANGELOG.md | ||
uses: yashanand1910/standard-release-notes@v1.2.1 | ||
uses: yashanand1910/standard-release-notes@v1.4.0 | ||
id: get_release_notes | ||
@@ -856,3 +852,3 @@ with: | ||
- name: Release to github | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
@@ -892,5 +888,5 @@ body: \${{ steps.get_release_notes.outputs.release_notes }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
@@ -933,5 +929,5 @@ cache: "npm" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
@@ -971,5 +967,5 @@ cache: "npm" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
@@ -982,3 +978,3 @@ cache: "npm" | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
uses: codecov/codecov-action@v4 | ||
`; | ||
@@ -985,0 +981,0 @@ const defaultConfig$1 = { |
{ | ||
"name": "@allohamora/cli", | ||
"version": "1.17.0", | ||
"version": "1.18.0", | ||
"description": "cli to initialize projects and more", | ||
@@ -5,0 +5,0 @@ "input": "./src/index.ts", |
@@ -1,2 +0,2 @@ | ||
# CLI | ||
# @allohamora/cli | ||
@@ -9,4 +9,10 @@ [](https://www.npmjs.com/package/@allohamora/cli) | ||
The [Allohamora](https://github.com/allohamora) CLI is a command line interface with scripts to initialize projects and more. Sorted by categories. | ||
is a command line interface with scripts to initialize projects and more | ||
## Usage | ||
```bash | ||
npx @allohamora/cli | ||
``` | ||
## Requirements | ||
@@ -21,27 +27,28 @@ | ||
## Usage | ||
## Categories | ||
```bash | ||
npx @allohamora/cli | ||
``` | ||
| Category | Description | Options | | ||
| --------------------- | ------------------------------------------------------- | -------------------------- | | ||
| [**js**](#js-options) | is a category with scripts to initialize js/ts projects | default, node:ts, react:ts | | ||
## Overview | ||
## JS Options | ||
- [**js**](/src/categories/js/index.ts) is a category with scripts to initialize js/ts projects, have default and node:ts config options | ||
- [**commitlint**](/src/categories/js/commitlint) is a script to initialize [commitlint](https://github.com/conventional-changelog/commitlint) with [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) config. Has [husky](https://github.com/typicode/husky) integration | ||
- [**eslint**](/src/categories/js/eslint) is a script to initialize [eslint](https://github.com/eslint/eslint) with config and lint scripts. Has [prettier](https://github.com/prettier/prettier) integration | ||
- [**stylelint**](/src/categories/js/stylelint) is a script to initialize [stylelint](https://github.com/stylelint/stylelint) with config and lint scripts. Has [prettier](https://github.com/prettier/prettier) integration | ||
- [**husky**](/src/categories/js/husky) is a script to initialize [husky](https://github.com/typicode/husky). | ||
- [**lint-staged**](/src/categories/js/lint-staged) is a script to initialize [lint-staged](https://github.com/okonet/lint-staged). Has [husky](https://github.com/typicode/husky), [jest](https://github.com/facebook/jest), [eslint](https://github.com/eslint/eslint), [prettier](https://github.com/prettier/prettier), [stylelint](https://github.com/stylelint/stylelint) integrations | ||
- [**prettier**](/src/categories/js/prettier) is a script to initialize [prettier](https://github.com/prettier/prettier) with config and format scripts. | ||
- [**release-workflow**](/src/categories/js/release-worflow) is script to initialize github release workflow what creates release from [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) CHANGELOG.md when you push tag like \*.\*.\*(1.1.0, 5.0.0, 0.0.0, etc). | ||
- [**standard-version**](/src/categories/js/standard-version) is a script to initialize [standard-version](https://github.com/conventional-changelog/standard-version) with [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) config(with repository url if defined or "\<repository url\>" placeholder), custom options(like removed "v" tag prefix) and release scripts. | ||
- [**jest**](/src/categories/js/jest) is a script to initialize [jest](https://github.com/facebook/jest) with config and test scripts. | ||
- [**docker**](src/categories/js/docker) is a script to initialize [docker](https://github.com/docker) with Dockerfile and .dockerignore files | ||
- [**test-workflow**](/src/categories/js/test-workflow) is a script to initialize github test workflow what runs `npm run test` on each push to github. | ||
- [**build-workflow**](/src/categories/js/build-workflow) is a script to initialize github build workflow that runs `npm run build` on each push to github. | ||
- [**codecov-workflow**](/src/categories/js/codecov-workflow) is a script to initialize codecov workflow that collects code coverage and send it to codecov. The workflow configured to work in public repositories (without codecov token), to run in private repository you need to modify the workflow and add token in codecov action | ||
- [**dependabot**](src/categories/js/dependabot) is a script to initialize github dependabot what manages project dependencies vulnerabilities and opens pull requests with fixes. | ||
| Option | Description | Integrations | | ||
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **commitlint** | Initialize [commitlint](https://github.com/conventional-changelog/commitlint) with [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) config. | [husky](https://github.com/typicode/husky) | | ||
| **eslint** | Initialize [eslint](https://github.com/eslint/eslint) with config and lint scripts | [prettier](https://github.com/prettier/prettier) | | ||
| **stylelint** | Initialize [stylelint](https://github.com/stylelint/stylelint) with config and lint scripts | [prettier](https://github.com/prettier/prettier) | | ||
| **husky** | Initialize [husky](https://github.com/typicode/husky). | | | ||
| **lint-staged** | Initialize [lint-staged](https://github.com/okonet/lint-staged) | [husky](https://github.com/typicode/husky), [jest](https://github.com/facebook/jest), [eslint](https://github.com/eslint/eslint), [prettier](https://github.com/prettier/prettier), [stylelint](https://github.com/stylelint/stylelint) | | ||
| **prettier** | Initialize [prettier](https://github.com/prettier/prettier) with config and format scripts. | | | ||
| **release-workflow** | Initialize github release workflow what creates release from [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) CHANGELOG.md when you push tag like _._.\* (1.1.0, 5.0.0, 0.0.0, etc). | | | ||
| **standard-version** | Initialize [standard-version](https://github.com/conventional-changelog/standard-version) with [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) config(with repository url if defined or "<repository url>" placeholder), custom options(like removed "v" tag prefix) and release scripts. | | | ||
| **jest** | Initialize [jest](https://github.com/facebook/jest) with config and test scripts. | | | ||
| **docker** | Initialize [docker](https://github.com/docker) with Dockerfile and .dockerignore files | | | ||
| **test-workflow** | Initialize github test workflow what runs `npm run test` on each push to github. | | | ||
| **build-workflow** | Initialize github build workflow that runs `npm run build` on each push to github. | | | ||
| **codecov-workflow** | Initialize codecov workflow that collects code coverage and send it to codecov. The workflow configured to work in public repositories (without codecov token), to run in private repository you need to modify the workflow and add token in codecov action | | | ||
| **dependabot** | Initialize github dependabot what manages project dependencies vulnerabilities and opens pull requests with fixes. | | | ||
\*integrations runs only if package is installing or installed. | ||
\*_Integrations run only if the package is installing or installed._ | ||
@@ -48,0 +55,0 @@ ## License |
Sorry, the diff of this file is not supported yet
128362
56
1004