Skip to content

Commit

Permalink
chore(): add github remplates, add circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Dec 11, 2019
1 parent 9fd0d2c commit 2ed14b6
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 15 deletions.
59 changes: 59 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: 2

aliases:
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- &install-deps
run:
name: Install dependencies
command: npm ci
- &build-packages
run:
name: Build
command: npm run build

jobs:
build:
working_directory: ~/nest
docker:
- image: circleci/node:12
steps:
- checkout
- run:
name: Update NPM version
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Build
command: npm run build

integration_tests:
working_directory: ~/nest
docker:
- image: circleci/node:12
steps:
- checkout
- *restore-cache
- *install-deps
- run:
name: Integration tests
command: npm run test:integration

workflows:
version: 2
build-and-test:
jobs:
- build
- integration_tests:
requires:
- build

46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->

## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
</code></pre>

## Current behavior
<!-- Describe how the issue manifests. -->


## Expected behavior
<!-- Describe what the desired behavior would be. -->


## Minimal reproduction of the problem with instructions
<!-- Please share a repo, a gist, or step-by-step instructions. -->

## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->


## Environment

<pre><code>
Nest version: X.Y.Z
<!-- Check whether this is still an issue in the most recent Nest version -->

For Tooling issues:
- Node version: XX <!-- run `node --version` -->
- Platform: <!-- Mac, Linux, Windows -->

Others:
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
</code></pre>
41 changes: 41 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## PR Checklist
Please check if your PR fulfills the following requirements:

- [ ] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)


## PR Type
What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->
```
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:
```

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

Issue Number: N/A


## What is the new behavior?


## Does this PR introduce a breaking change?
```
[ ] Yes
[ ] No
```

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->


## Other information
11 changes: 8 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# source
e2e/
lib/
.idea/
coverage/

# config
tsconfig.json
tslint.json
e2e/
.prettierignore
.prettierrc
.travis.yml
docker-compose.yml
jest.config.js
jest-e2e.config.js
renovate.json
coverage/
sample.tsconfig.json
cc-test-reporter

# misc
sample/
.github/
FUNDING.yml
sample.tsconfig.json
8 changes: 1 addition & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
"trailingComma": "all"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "nest-bull",
"name": "@nestjs/bull",
"version": "0.9.0",
"description": "Nest - modern, fast, powerful node.js web framework (@bull)",
"homepage": "https://github.com/fwoelffel/nest-bull",
"homepage": "https://github.com/nestjs/bull",
"bugs": {
"url": "https://github.com/fwoelffel/nest-bull/issues"
"url": "https://github.com/nestjs/bull/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fwoelffel/nest-bull.git"
"url": "git+https://github.com/nestjs/bull.git"
},
"license": "MIT",
"author": "Frederic Woelffel <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion sample/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller, Get, Param, ParseIntPipe } from '@nestjs/common';
import { InjectQueue } from 'nest-bull';
import { Queue } from 'bull';
import { InjectQueue } from 'nest-bull';

@Controller()
export class AppController {
Expand Down

0 comments on commit 2ed14b6

Please sign in to comment.