Skip to content

Commit 2da8a4c

Browse files
committed
Initial commit
0 parents  commit 2da8a4c

26 files changed

+12838
-0
lines changed

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
plugins: ['@typescript-eslint/eslint-plugin'],
4+
extends: [
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:prettier/recommended',
7+
'plugin:react/recommended',
8+
],
9+
parserOptions: {
10+
ecmaVersion: 2018,
11+
sourceType: 'module',
12+
ecmaFeatures: {
13+
jsx: true,
14+
},
15+
},
16+
rules: {
17+
'prettier/prettier': 'error',
18+
'react/prop-types': 'off',
19+
},
20+
ignorePatterns: ['node_modules', 'lib'],
21+
settings: {
22+
react: {
23+
version: 'detect',
24+
},
25+
},
26+
};

.github/workflows/push.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI/CD
2+
on: push
3+
env:
4+
SLACK_WEBHOOK: ${{ secrets.ADMIN_SLACK_WEBHOOK }}
5+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
8+
9+
jobs:
10+
test:
11+
name: test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Setup
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: '14.x'
20+
- uses: actions/cache@v1
21+
id: yarn-cache
22+
with:
23+
path: node_modules
24+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-node_modules-
27+
- name: Install
28+
if: steps.yarn-cache.outputs.cache-hit != 'true'
29+
run: yarn install
30+
- name: Lint
31+
run: yarn lint
32+
- name: Build
33+
run: yarn build
34+
- name: Test
35+
run: yarn test
36+
- name: Authenticate with NPM Token
37+
run: yarn config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
38+
# - name: Release
39+
# env:
40+
# SLACK_WEBHOOK: ${{ secrets.ADMIN_SLACK_WEBHOOK }}
41+
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
# run: yarn release
44+
45+
notify:
46+
name: Notify
47+
runs-on: ubuntu-latest
48+
if: failure()
49+
needs:
50+
- test
51+
steps:
52+
- uses: technote-space/workflow-conclusion-action@v1
53+
- uses: 8398a7/action-slack@v3
54+
with:
55+
status: ${{ env.WORKFLOW_CONCLUSION }}
56+
fields: repo,message,commit,author,action,eventName,ref,workflow
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
60+
if: always()

.gitignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
example/node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Microbundle cache
58+
.rpt2_cache/
59+
.rts2_cache_cjs/
60+
.rts2_cache_es/
61+
.rts2_cache_umd/
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# dotenv environment variables file
73+
.env
74+
.env.test
75+
76+
# parcel-bundler cache (https://parceljs.org/)
77+
.cache
78+
.parcel-cache
79+
80+
# Next.js build output
81+
.next
82+
out
83+
84+
# Nuxt.js build / generate output
85+
.nuxt
86+
dist
87+
88+
# Gatsby files
89+
.cache/
90+
# Comment in the public line in if your project uses Gatsby and not Next.js
91+
# https://nextjs.org/blog/next-9-1#public-directory-support
92+
# public
93+
94+
# vuepress build output
95+
.vuepress/dist
96+
97+
# Serverless directories
98+
.serverless/
99+
100+
# FuseBox cache
101+
.fusebox/
102+
103+
# DynamoDB Local files
104+
.dynamodb/
105+
106+
# TernJS port file
107+
.tern-port
108+
109+
# Stores VSCode versions used for testing VSCode extensions
110+
.vscode-test
111+
.idea
112+
113+
# yarn v2
114+
.yarn/cache
115+
.yarn/unplugged
116+
.yarn/build-state.yml
117+
.yarn/install-state.gz
118+
.pnp.*
119+
120+
.DS_store
121+
122+
# build files
123+
/build
124+
/lib
125+
/types
126+
.adminbro
127+
example/.adminbro

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.github
3+
commitlint.config.js
4+
.idea
5+
test

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@softwarebrothers:registry=https://npm.pkg.github.com/SoftwareBrothers
2+
registry=https://registry.npmjs.org/

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"arrowParens": "avoid"
7+
}

.releaserc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
4+
"master",
5+
"next",
6+
"next-major",
7+
{
8+
"name": "beta",
9+
"prerelease": true
10+
}
11+
],
12+
"plugins": [
13+
"@semantic-release/commit-analyzer",
14+
"@semantic-release/release-notes-generator",
15+
"@semantic-release/npm",
16+
"@semantic-release/github",
17+
"@semantic-release/git",
18+
[
19+
"semantic-release-slack-bot",
20+
{
21+
"notifyOnSuccess": true,
22+
"notifyOnFail": true
23+
}
24+
]
25+
]
26+
}

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2018 SoftwareBrothers.co
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Feature for AdminBro
2+
3+
This is feature template.
4+
5+
## AdminBro
6+
7+
AdminBro 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 AdminBro generates UI which allows you (or other trusted users) to manage content.
8+
9+
Check out the example application with mongo and postgres models here: https://admin-bro-example-app-staging.herokuapp.com/admin
10+
11+
Or visit [AdminBro](https://github.com/SoftwareBrothers/admin-bro) github page.
12+
13+
## Usage
14+
15+
16+
## License
17+
18+
AdminBro is Copyright © 2020 SoftwareBrothers.co. It is free software, and may be redistributed under the terms specified in the [LICENSE](LICENSE.md) file.
19+
20+
## About SoftwareBrothers.co
21+
22+
<img src="https://softwarebrothers.co/assets/images/software-brothers-logo-full.svg" width=240>
23+
24+
We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.
25+
26+
* We are available for [hire](https://softwarebrothers.co/contact).
27+
* If you want to work for us - checkout the [career page](https://softwarebrothers.co/career).

commitlint.config.js

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+
};

0 commit comments

Comments
 (0)