Skip to content

Commit 99defdf

Browse files
committed
feat: restart from scratch
1 parent b0c858b commit 99defdf

Some content is hidden

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

64 files changed

+249
-9923
lines changed

.circleci/config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
jobs:
3+
build_10.15.3:
4+
docker:
5+
- image: 'circleci/node:10.15.3'
6+
working_directory: ~/app
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- 'v1-dependencies-{{ checksum "package.json" }}'
12+
- v1-dependencies-
13+
- run: npm install
14+
- save_cache:
15+
paths:
16+
- node_modules
17+
key: 'v1-dependencies-{{ checksum "package.json" }}'
18+
- run: npm test
19+
build_latest:
20+
docker:
21+
- image: 'circleci/node:latest'
22+
working_directory: ~/app
23+
steps:
24+
- checkout
25+
- restore_cache:
26+
keys:
27+
- 'v1-dependencies-{{ checksum "package.json" }}'
28+
- v1-dependencies-
29+
- run: npm install
30+
- save_cache:
31+
paths:
32+
- node_modules
33+
key: 'v1-dependencies-{{ checksum "package.json" }}'
34+
- run: npm test
35+
workflows:
36+
version: 2
37+
workflow:
38+
jobs:
39+
- build_10.15.3
40+
- build_latest

.editorconfig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# http://editorconfig.org
2-
root = true
32

43
[*]
5-
indent_size = 2
64
indent_style = space
5+
indent_size = 2
76
end_of_line = lf
87
charset = utf-8
98
trim_trailing_whitespace = true
109
insert_final_newline = true
1110

12-
[*.md]
13-
trim_trailing_whitespace = false
14-
1511
[*.json]
1612
insert_final_newline = ignore
1713

@@ -21,3 +17,6 @@ insert_final_newline = ignore
2117

2218
[MakeFile]
2319
indent_style = tab
20+
21+
[*.md]
22+
trim_trailing_whitespace = false

.github/COMMIT_CONVENTION.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## Git Commit Message Convention
2+
3+
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
4+
5+
Using conventional commit messages, we can automate the process of generating the CHANGELOG file. All commits messages will automatically be validated against the following regex.
6+
7+
``` js
8+
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build)((.+))?: .{1,50}/
9+
```
10+
11+
## Commit Message Format
12+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
13+
14+
> The **scope** is optional
15+
16+
```
17+
feat(router): add support for prefix
18+
19+
Prefix makes it easier to append a path to a group of routes
20+
```
21+
22+
1. `feat` is type.
23+
2. `router` is scope and is optional
24+
3. `add support for prefix` is the subject
25+
4. The **body** is followed by a blank line.
26+
5. The optional **footer** can be added after the body, followed by a blank line.
27+
28+
## Types
29+
Only one type can be used at a time and only following types are allowed.
30+
31+
- feat
32+
- fix
33+
- docs
34+
- style
35+
- refactor
36+
- perf
37+
- test
38+
- workflow
39+
- ci
40+
- chore
41+
- types
42+
- build
43+
44+
If a type is `feat`, `fix` or `perf`, then the commit will appear in the CHANGELOG.md file. However if there is any BREAKING CHANGE, the commit will always appear in the changelog.
45+
46+
### Revert
47+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>`., where the hash is the SHA of the commit being reverted.
48+
49+
## Scope
50+
The scope could be anything specifying place of the commit change. For example: `router`, `view`, `querybuilder`, `database`, `model` and so on.
51+
52+
## Subject
53+
The subject contains succinct description of the change:
54+
55+
- use the imperative, present tense: "change" not "changed" nor "changes".
56+
- don't capitalize first letter
57+
- no dot (.) at the end
58+
59+
## Body
60+
61+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
62+
The body should include the motivation for the change and contrast this with previous behavior.
63+
64+
## Footer
65+
66+
The footer should contain any information about **Breaking Changes** and is also the place to
67+
reference GitHub issues that this commit **Closes**.
68+
69+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
70+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _Put an `x` in the boxes that apply_
1818

1919
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
2020

21-
- [ ] I have read the [CONTRIBUTING](https://github.com/adonisjs/adonis-auth/blob/develop/CONTRIBUTING.md) doc
21+
- [ ] I have read the [CONTRIBUTING](https://github.com/adonisjs/adonis-auth/blob/master/CONTRIBUTING.md) doc
2222
- [ ] Lint and unit tests pass locally with my changes
2323
- [ ] I have added tests that prove my fix is effective or that my feature works.
2424
- [ ] I have added necessary documentation (if appropriate)

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
coverage
21
node_modules
3-
.DS_Store
4-
npm-debug.log
5-
.idea
6-
out
7-
.nyc_output
8-
test/tmp
2+
coverage
93
.DS_STORE
4+
.nyc_output
5+
.idea
106
.vscode/
117
*.sublime-project
128
*.sublime-workspace

.npmignore

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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
message="chore(release): %s"

.travis.yml

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

0 commit comments

Comments
 (0)