Skip to content

Commit

Permalink
chore: add github/release files
Browse files Browse the repository at this point in the history
  • Loading branch information
dziraf committed Dec 1, 2023
1 parent 2087820 commit 522e875
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI/CD
on: push
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

jobs:
testAndPublish:
name: Test & Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/cache@v2
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build
run: yarn build
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
.github
commitlint.config.cjs
.idea
test
src
.releaserc
.prettierrc
.eslintrc.cjs
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
}
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# @adminjs/cli

An official CLI tool of AdminJS.

## AdminJS

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.

Check out AdminJS Demo: https://demo.adminjs.co

Or visit [AdminJS](https://github.com/SoftwareBrothers/adminjs) github page.

## Installation

NPM:
```bash
$ npm i -g @adminjs/cli
```

Yarn:
```bash
$ yarn global add @adminjs/cli
```

## Commands

Create an AdminJS project:
```
$ adminjs create
```

View the list of available commands:
```
$ adminjs help
```

## Development

TBA

## License

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.

## About rst.software

<img src="https://pbs.twimg.com/profile_images/1367119173604810752/dKVlj1YY_400x400.jpg" width=150>

We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.

* We are available for [hire](https://www.rst.software/estimate-your-project).
* If you want to work for us - check out the [career page](https://www.rst.software/join-us).
3 changes: 3 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
"dev": "yarn clean && yarn build && yarn register:local"
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@semantic-release/git": "^10.0.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.15.11",
"@types/prompts": "^2.4.9",
"@types/randomstring": "^1.1.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -33,18 +35,21 @@
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
"prettier": "^3.1.0",
"prompts": "^2.4.2",
"rimraf": "^5.0.0",
"semantic-release": "^21.0.1",
"typescript": "^5.0.4"
},
"dependencies": {
"chalk": "^5.3.0",
"copyfiles": "^2.4.1",
"flat": "^6.0.1",
"fs-extra": "^11.1.1",
"pino": "^8.16.2",
"pino-pretty": "^10.2.3",
"randomstring": "^1.3.0"
"prompts": "^2.4.2",
"randomstring": "^1.3.0",
"rimraf": "^5.0.0"
},
"bin": {
"adminjs": "./lib/cli.js"
Expand Down

0 comments on commit 522e875

Please sign in to comment.