Skip to content

Commit 639a5bd

Browse files
author
Dan Wilson
authored
Merge pull request #369 from drone/drone2
Merging drone2 branch into master
2 parents ac1349f + 995f61c commit 639a5bd

File tree

471 files changed

+141931
-39519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

471 files changed

+141931
-39519
lines changed

.commitlintrc.json

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

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ENV Variables
2+
REACT_APP_DRONE_SERVER=
3+
REACT_APP_DRONE_TOKEN=
4+
5+
# For macOS and Linux
6+
SASS_PATH=node_modules:src
7+
# For Windows
8+
SASS_PATH=./node_modules;./src

.eslintrc.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"extends": ["react-app", "airbnb", "airbnb/hooks", "airbnb/whitespace"],
3+
"rules": {
4+
"max-len": [1, {
5+
"code": 120,
6+
"ignoreTemplateLiterals": true,
7+
"ignoreComments": true
8+
}],
9+
"jsx-a11y/label-has-associated-control": [2, {
10+
"assert": "htmlFor"
11+
}],
12+
"react/jsx-props-no-spreading": "off",
13+
"react/jsx-sort-props": [
14+
"warn",
15+
{
16+
"callbacksLast": true,
17+
"shorthandLast": true,
18+
"noSortAlphabetically": true
19+
}
20+
],
21+
"import/order": [
22+
"warn",
23+
{
24+
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
25+
"newlines-between": "always",
26+
"alphabetize": {
27+
"order": "asc",
28+
"caseInsensitive": true
29+
}
30+
}
31+
],
32+
"import/prefer-default-export": "off"
33+
},
34+
"settings": {
35+
"import/resolver": {
36+
"node": {
37+
"moduleDirectory":["node_modules", "src/"]
38+
}
39+
}
40+
}
41+
}

.gitignore

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1-
node_modules
2-
dist/files/*
3-
*.txt
4-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
/dist/files
14+
/dist/*_gen.go
15+
16+
# misc
17+
.DS_Store
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
/.vscode
27+
28+
# .git
29+
.eslintcache
30+
531
.env
6-
.env.*
7-
hermione
32+
.env.development.local
33+
.env.local

.huskyrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"hooks": {}
3+
}

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,jsx}": "eslint --fix --ignore-path .gitignore",
3+
"*.{css,sass,scss,md,html}": "stylelint --fix --ignore-path .gitignore"
4+
}

.stylelintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-recommended-scss",
5+
"stylelint-config-css-modules",
6+
"stylelint-config-recess-order"
7+
],
8+
"rules": {
9+
"no-descending-specificity": null,
10+
"at-rule-no-unknown": null,
11+
"scss/at-rule-no-unknown": [
12+
true,
13+
{
14+
"ignoreAtRules": ["value"]
15+
}
16+
]
17+
}
18+
}

README.md

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,70 @@
1-
# drone-ui
1+
## Drone UI
22

3-
## Configuration
3+
### Getting started
44

5-
Create a `.env.development.local` file with the drone server address (no trailing slash) and your drone user token:
5+
1. **Clone this repository**
66

7-
```
8-
VUE_APP_DRONE_SERVER=https://drone.company.com
9-
VUE_APP_DRONE_TOKEN=f0af17449a83681de22db7ce16672f16
10-
```
7+
```bash
8+
git clone https://github.com/drone/drone-ui.git
9+
```
1110

12-
## Project setup
13-
```
14-
npm install
11+
2. **Install dependencies**
12+
13+
```bash
14+
npm install
15+
```
16+
17+
3. **Copy .env.example and rename it into .env**
18+
19+
```bash
20+
cp .env.example .env.development.local
21+
```
22+
23+
4. **Fill required variables. For example:**
24+
25+
```text
26+
REACT_APP_DRONE_SERVER=https://drone.company.com
27+
REACT_APP_DRONE_TOKEN=<your_drone_token>
28+
```
29+
30+
### Run the app
31+
32+
```bash
33+
npm run start
1534
```
1635

17-
### Compiles and hot-reloads for development
36+
### Build the app
37+
38+
```bash
39+
npm run build
1840
```
41+
42+
### Run the built app
43+
44+
```bash
1945
npm run serve
2046
```
2147

22-
### Compiles and minifies for production
48+
### Run linters
49+
50+
```bash
51+
npm run lint
2352
```
24-
npm run build
53+
54+
### Run linters and fix auto fixable problems
55+
56+
```bash
57+
npm run lint:fix
2558
```
2659

2760
### Run your tests
28-
```
61+
62+
```bash
2963
npm run test
3064
```
3165

32-
### Lints and fixes files
33-
```
34-
npm run lint
35-
```
66+
## Commits
67+
68+
We use Conventional Commits for commit messages. You can read more about Conventional Commits [here](https://www.conventionalcommits.org/en/v1.0.0/). [Here](https://cheatography.com/albelop/cheat-sheets/conventional-commits/) you can find a useful Conventional Commits Cheat Sheet.
69+
70+
We try to make our commits "atomic". [Here](https://www.freshconsulting.com/atomic-commits/) and [here](https://en.wikipedia.org/wiki/Atomic_commit) you can read more about Atomic commits.

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/dist.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package dist
22

33
//go:generate togo http -package dist -output dist_gen.go
4-

0 commit comments

Comments
 (0)