Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
chore: update templates and reformat source
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 6, 2021
1 parent 235abaf commit 5ebb961
Show file tree
Hide file tree
Showing 17 changed files with 8,692 additions and 9,593 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
version: 2
jobs:
build_12.18.2:
build_14.15.4:
docker:
- image: 'circleci/node:12.18.2'
- image: circleci/node:14.15.4
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
build_latest:
docker:
- image: 'circleci/node:latest'
- image: circleci/node:latest
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
workflows:
version: 2
workflow:
jobs:
- build_12.18.2
- build_14.15.4
- build_latest
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# http://editorconfig.org

[*]
indent_style = tab
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
Expand All @@ -16,7 +16,7 @@ indent_style = ignore
insert_final_newline = ignore

[MakeFile]
indent_style = tab
indent_style = space

[*.md]
trim_trailing_whitespace = false
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
],
"rules": {
"prettier/prettier": [
"error"
"error",
{
"endOfLine": "auto"
}
]
}
}
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Report identified bugs
---

<!-- CLICK "Preview" FOR INSTRUCTIONS IN A MORE READABLE FORMAT -->

## Prerequisites

We do our best to reply to all the issues on time. If you will follow the given guidelines, the turn around time will be faster.

- Lots of raised issues are directly not bugs but instead are design decisions taken by us.
- Make use of our [forum](https://forum.adonisjs.com/), or [discord server](https://discord.me/adonisjs), if you are not sure that you are reporting a bug.
- 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_

## Package version

<!-- YOUR ANSWER -->

## Node.js and npm version

<!-- YOUR ANSWER -->

## Sample Code (to reproduce the issue)

<!-- YOUR ANSWER -->

## BONUS (a sample repo to reproduce the issue)

<!-- YOUR ANSWER -->
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Feature request
about: Propose changes for adding a new feature
---

<!-- CLICK "Preview" FOR INSTRUCTIONS IN A MORE READABLE FORMAT -->

## Prerequisites

We do our best to reply to all the issues on time. If you will follow the given guidelines, the turn around time will be faster.

## Consider an RFC

Please create an [RFC](https://github.com/adonisjs/rfcs) instead, if

- Feature introduces a breaking change
- Demands lots of time and changes in the current code base.

_Delete the above section and the instructions in the sections below before submitting_

## Why this feature is required (specific use-cases will be appreciated)?

<!-- YOUR ANSWER -->

## Have you tried any other work arounds?

<!-- YOUR ANSWER -->

## Are you willing to work on it with little guidance?

<!-- YOUR ANSWER -->
24 changes: 8 additions & 16 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": true,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100,
"overrides": [
{
"files": "*.md",
"options": {
"useTabs": false
}
}
]
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": false,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100
}
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,11 @@ Once mailer mappings have been defined, the `use` method will have proper return

[circleci-image]: https://img.shields.io/circleci/project/github/poppinss/manager/master.svg?style=for-the-badge&logo=circleci
[circleci-url]: https://circleci.com/gh/poppinss/manager 'circleci'

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]: "typescript"

[npm-image]: https://img.shields.io/npm/v/@poppinss/manager.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@poppinss/manager 'npm'

[license-image]: https://img.shields.io/npm/l/@poppinss/manager?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md 'license'

[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/poppinss/manager/?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/poppinss/manager/?targetFile=package.json "synk"
[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/poppinss/manager?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/poppinss/manager?targetFile=package.json 'synk'
5 changes: 2 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"core": false,
"ts": true,
"core": true,
"license": "MIT",
"services": [
"circleci"
],
"minNodeVersion": "12.18.2",
"minNodeVersion": "14.15.4",
"probotApps": [
"stale",
"lock"
Expand Down
10 changes: 5 additions & 5 deletions example/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { ManagerContract } from '../src/Contracts'

interface DriverContract {
run(): string
run(): string
}

interface Smtp extends DriverContract {
send(): void
send(): void
}

interface Mailgun extends DriverContract {
verifyAndSend(): void
verifyAndSend(): void
}

type Mappings = {
promotional: Smtp
transactional: Mailgun
promotional: Smtp
transactional: Mailgun
}

type Mailer = ManagerContract<any, DriverContract, DriverContract, Mappings>
Expand Down
2 changes: 1 addition & 1 deletion japaFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ require('@adonisjs/require-ts/build/register')

const { configure } = require('japa')
configure({
files: ['test/**/*.spec.ts'],
files: ['test/**/*.spec.ts'],
})
Loading

0 comments on commit 5ebb961

Please sign in to comment.