Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
chore: update/format meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 18, 2020
1 parent a234cef commit 9456fcb
Show file tree
Hide file tree
Showing 13 changed files with 1,028 additions and 63 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
jobs:
build_12.0.0:
build_12.18.2:
docker:
- image: 'circleci/node:12.0.0'
- image: 'circleci/node:12.18.2'
working_directory: ~/app
steps:
- checkout
Expand Down Expand Up @@ -36,5 +36,5 @@ workflows:
version: 2
workflow:
jobs:
- build_12.0.0
- build_12.18.2
- build_latest
14 changes: 11 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"extends": ["plugin:adonis/typescriptPackage", "prettier", "prettier/@typescript-eslint"],
"plugins": ["prettier"],
"extends": [
"plugin:adonis/typescriptPackage",
"prettier",
"prettier/@typescript-eslint"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": ["error"]
"prettier/prettier": [
"error"
]
}
}
10 changes: 3 additions & 7 deletions .github/COMMIT_CONVENTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
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.

```js
;/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build|improvement)((.+))?: .{1,50}/
``` js
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build|improvement)((.+))?: .{1,50}/
```

## Commit Message Format
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:

> The **scope** is optional
Expand All @@ -27,7 +26,6 @@ Prefix makes it easier to append a path to a group of routes
5. The optional **footer** can be added after the body, followed by a blank line.

## Types

Only one type can be used at a time and only following types are allowed.

- feat
Expand All @@ -46,15 +44,12 @@ Only one type can be used at a time and only following types are allowed.
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.

### Revert

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.

## Scope

The scope could be anything specifying place of the commit change. For example: `router`, `view`, `querybuilder`, `database`, `model` and so on.

## Subject

The subject contains succinct description of the change:

- use the imperative, present tense: "change" not "changed" nor "changes".
Expand All @@ -72,3 +67,4 @@ The footer should contain any information about **Breaking Changes** and is also
reference GitHub issues that this commit **Closes**.

**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.

5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ We do our best to reply to all the issues on time. If you will follow the given
- Ensure the issue isn't already reported.
- Ensure you are reporting the bug in the correct repo.

_Delete the above section and the instructions in the sections below before submitting_
*Delete the above section and the instructions in the sections below before submitting*

## Description

If this is a feature request, explain why it should be added. Specific use-cases are best.

For bug reports, please provide as much _relevant_ info as possible.
For bug reports, please provide as much *relevant* info as possible.

## Package version

<!-- YOUR ANSWER -->

## Error Message & Stack Trace
Expand Down
23 changes: 23 additions & 0 deletions .github/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app

# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 60

# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false

# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: ['Type: Security']

# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false

# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: false
21 changes: 21 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60

# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7

# Issues with these labels will never be considered stale
exemptLabels:
- 'Type: Security'

# Label to use when marking an issue as stale
staleLabel: 'Status: Abandoned'

# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
build
README.md
docs
*.md
config.json
.eslintrc.json
package.json
*.html
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 120
"printWidth": 100
}
10 changes: 8 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"core": false,
"ts": true,
"license": "MIT",
"services": ["circleci"],
"minNodeVersion": "12.0.0"
"services": [
"circleci"
],
"minNodeVersion": "12.18.2",
"probotApps": [
"stale",
"lock"
]
}
156 changes: 156 additions & 0 deletions npm-audit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<!doctype html>
<html lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/css/bootstrap-material-design.min.css"
integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/atom-one-dark.min.css">

<title>NPM Audit Report</title>
<meta name="description" content="0 known vulnerabilities found.">

<style>
pre {
background-color: #333333;
padding: 15px;
}

pre code {
color: #fff;
}
</style>

</head>

<body class="mb-3">
<div class="container">
<h1 class="mt-5 text-center">NPM Audit Report</h1>

<div class="text-center">
<div class="card-deck my-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">Known vulnerabilities</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
3
</h5>
<p class="card-text">Dependencies</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
July 18th 2020, 11:32:23 am
</h5>
<p class="card-text">Last updated</p>
</div>
</div>
</div>
<div class="card-deck my-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-danger">critical</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-warning">high</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-secondary">moderate</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-primary">low</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-info">info</span>
</p>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col">

<table id="advisories" class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Module</th>
<th scope="col">Severity</th>
<th scope="col">CVEs</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>



<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.js"></script>

<script>
$(document).ready(function () {
$('#advisories').DataTable({
order: [[2, 'asc']]
});
});
</script>
</body>

</html>
Loading

0 comments on commit 9456fcb

Please sign in to comment.