Skip to content

Commit 522e875

Browse files
committed
chore: add github/release files
1 parent 2087820 commit 522e875

7 files changed

Lines changed: 126 additions & 5 deletions

File tree

‎.github/workflows/push.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI/CD
2+
on: push
3+
env:
4+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
7+
8+
jobs:
9+
testAndPublish:
10+
name: Test & Publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '18'
19+
- uses: actions/cache@v2
20+
id: yarn-cache
21+
with:
22+
path: node_modules
23+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-node_modules-
26+
- name: Install
27+
if: steps.yarn-cache.outputs.cache-hit != 'true'
28+
run: yarn install
29+
- name: Build
30+
run: yarn build
31+
- name: Release
32+
env:
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: yarn release

‎.npmignore‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
.github
3+
commitlint.config.cjs
4+
.idea
5+
test
6+
src
7+
.releaserc
8+
.prettierrc
9+
.eslintrc.cjs

‎.npmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access=public

‎.releaserc‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": [
3+
"main",
4+
{
5+
"name": "beta",
6+
"prerelease": true
7+
}
8+
],
9+
"plugins": [
10+
"@semantic-release/commit-analyzer",
11+
"@semantic-release/release-notes-generator",
12+
"@semantic-release/npm",
13+
"@semantic-release/github",
14+
"@semantic-release/git"
15+
]
16+
}

‎README.md‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# @adminjs/cli
2+
3+
An official CLI tool of AdminJS.
4+
5+
## AdminJS
6+
7+
AdminJS is an automatic admin interface which can be plugged into your application. You, as a developer, provide database models (like posts, comments, stores, products or whatever else your application uses), and AdminJS generates UI which allows you (or other trusted users) to manage content.
8+
9+
Check out AdminJS Demo: https://demo.adminjs.co
10+
11+
Or visit [AdminJS](https://github.com/SoftwareBrothers/adminjs) github page.
12+
13+
## Installation
14+
15+
NPM:
16+
```bash
17+
$ npm i -g @adminjs/cli
18+
```
19+
20+
Yarn:
21+
```bash
22+
$ yarn global add @adminjs/cli
23+
```
24+
25+
## Commands
26+
27+
Create an AdminJS project:
28+
```
29+
$ adminjs create
30+
```
31+
32+
View the list of available commands:
33+
```
34+
$ adminjs help
35+
```
36+
37+
## Development
38+
39+
TBA
40+
41+
## License
42+
43+
AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the [LICENSE](LICENSE.md) file.
44+
45+
## About rst.software
46+
47+
<img src="https://pbs.twimg.com/profile_images/1367119173604810752/dKVlj1YY_400x400.jpg" width=150>
48+
49+
We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.
50+
51+
* We are available for [hire](https://www.rst.software/estimate-your-project).
52+
* If you want to work for us - check out the [career page](https://www.rst.software/join-us).

‎commitlint.config.cjs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

‎package.json‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
"dev": "yarn clean && yarn build && yarn register:local"
1919
},
2020
"devDependencies": {
21+
"@commitlint/cli": "^17.4.4",
22+
"@commitlint/config-conventional": "^17.4.4",
23+
"@semantic-release/git": "^10.0.1",
2124
"@types/fs-extra": "^11.0.4",
2225
"@types/node": "^18.15.11",
2326
"@types/prompts": "^2.4.9",
2427
"@types/randomstring": "^1.1.11",
2528
"@typescript-eslint/eslint-plugin": "^5.58.0",
2629
"@typescript-eslint/parser": "^5.58.0",
27-
"copyfiles": "^2.4.1",
2830
"eslint": "^8.38.0",
2931
"eslint-config-airbnb": "^19.0.4",
3032
"eslint-config-prettier": "^9.0.0",
@@ -33,18 +35,21 @@
3335
"eslint-plugin-prettier": "^5.0.1",
3436
"eslint-plugin-react": "^7.32.2",
3537
"eslint-plugin-react-hooks": "^4.6.0",
36-
"fs-extra": "^11.1.1",
38+
"husky": "^8.0.3",
3739
"prettier": "^3.1.0",
38-
"prompts": "^2.4.2",
39-
"rimraf": "^5.0.0",
40+
"semantic-release": "^21.0.1",
4041
"typescript": "^5.0.4"
4142
},
4243
"dependencies": {
4344
"chalk": "^5.3.0",
45+
"copyfiles": "^2.4.1",
4446
"flat": "^6.0.1",
47+
"fs-extra": "^11.1.1",
4548
"pino": "^8.16.2",
4649
"pino-pretty": "^10.2.3",
47-
"randomstring": "^1.3.0"
50+
"prompts": "^2.4.2",
51+
"randomstring": "^1.3.0",
52+
"rimraf": "^5.0.0"
4853
},
4954
"bin": {
5055
"adminjs": "./lib/cli.js"

0 commit comments

Comments
 (0)