-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25d90a2
commit 39da078
Showing
16 changed files
with
4,876 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2 | ||
references: | ||
yarn_cache_key: &yarn_cache_key | ||
yarn-v1-{{ checksum "yarn.lock" }} | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:10.7 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- *yarn_cache_key | ||
- yarn-v1- | ||
- run: | ||
name: dependencies | ||
command: yarn install --frozen-lockfile | ||
- run: | ||
name: build | ||
command: yarn build | ||
- run: | ||
name: test | ||
command: yarn test | ||
- run: | ||
name: deploy | ||
command: yarn run semantic-release || true | ||
- save_cache: | ||
key: *yarn_cache_key | ||
paths: ~/circleci/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry = https://registry.npmjs.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Jest", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js", | ||
"stopOnEntry": false, | ||
"args": ["--runInBand", "${file}"], | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "legacy", | ||
"runtimeArgs": ["--nolazy"], | ||
"sourceMaps": true, | ||
"outFiles": ["${workspaceRoot}/dist/**/*.js"] | ||
}, | ||
{ | ||
"name": "TS-Node (index)", | ||
"type": "node", | ||
"request": "launch", | ||
"args": ["src/index.ts"], | ||
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], | ||
"sourceMaps": true, | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector" | ||
}, | ||
{ | ||
"name": "TS-Node", | ||
"type": "node", | ||
"request": "launch", | ||
"args": ["${relativeFile}"], | ||
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], | ||
"sourceMaps": true, | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"prettier.printWidth": 100, | ||
"prettier.singleQuote": true, | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"search.exclude": { | ||
"dist/": true, | ||
"node_modules/": true | ||
}, | ||
"[javascript]": { | ||
"editor.formatOnSave": true | ||
}, | ||
"[json]": { | ||
"editor.formatOnSave": true | ||
}, | ||
"[typescript]": { | ||
"editor.formatOnSave": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"command": "source tools/environment_setup.sh", | ||
"type": "shell", | ||
"label": "setupEnvironment" | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "typescript", | ||
"tsconfig": "tsconfig.json", | ||
"problemMatcher": ["$tsc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Dan Caddigan | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# warthog | ||
|
||
[![npm version](https://img.shields.io/npm/v/warthog.svg)](https://www.npmjs.org/package/warthog) | ||
[![CircleCI](https://circleci.com/gh/goldcaddy77/warthog/tree/master.svg?style=shield)](https://circleci.com/gh/goldcaddy77/warthog/tree/master) | ||
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
|
||
## Warthog | ||
|
||
Opinionated set of tools for setting up GraphQL backed by TypeORM | ||
|
||
## Table of Contents | ||
|
||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [API](#api) | ||
- [Contribute](#contribute) | ||
- [License](#license) | ||
|
||
## Install | ||
|
||
```bash | ||
yarn add warthog | ||
``` | ||
|
||
## Usage | ||
|
||
todo | ||
|
||
## API | ||
|
||
todo | ||
|
||
## Contribute | ||
|
||
PRs accepted, fire away! | ||
|
||
## License | ||
|
||
MIT © Dan Caddigan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "warthog", | ||
"version": "0.0.0-development", | ||
"description": "Opinionated set of tools for setting up GraphQL backed by TypeORM", | ||
"main": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"author": "Dan Caddigan", | ||
"scripts": { | ||
"build": "yarn tsc", | ||
"precommit": "lint-staged && npm test", | ||
"preversion": "lint-staged && npm test", | ||
"semantic-release": "semantic-release", | ||
"test": "jest --verbose" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/goldcaddy77/warthog.git" | ||
}, | ||
"keywords": [ | ||
"graphql", | ||
"typeorm", | ||
"typescript" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/goldcaddy77/warthog/issues" | ||
}, | ||
"homepage": "https://github.com/goldcaddy77/warthog#readme", | ||
"dependencies": { | ||
"@types/jest": "^23.3.0", | ||
"jest": "^23.4.1", | ||
"ts-jest": "^23.0.1" | ||
}, | ||
"devDependencies": { | ||
"condition-circle": "^2.0.1", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^7.2.0", | ||
"prettier": "^1.6.1", | ||
"semantic-release": "^15.8.1", | ||
"typescript": "^2.9.2" | ||
}, | ||
"lint-staged": { | ||
"*.{js,json}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"prettier": { | ||
"printWidth": 100, | ||
"singleQuote": true | ||
}, | ||
"release": { | ||
"verifyConditions": "condition-circle" | ||
}, | ||
"jest": { | ||
"transform": { | ||
".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
"testRegex": "\\.test\\.ts$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"\\.test\\.ts$" | ||
], | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfigFile": "tsconfig.test.json" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe('Logger test', () => { | ||
it('works if true is truthy', () => { | ||
expect(true).toBeTruthy(); | ||
}); | ||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"declarationDir": "dist/types", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"lib": ["es2015", "es2016", "es2017", "esnext.asynciterable"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noImplicitAny": true, | ||
"outDir": "dist", | ||
"paths": { | ||
"*": ["node_modules/*"] | ||
}, | ||
"sourceMap": true, | ||
"target": "es5", | ||
"typeRoots": ["node_modules/@types"] | ||
}, | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "build/dist", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"lib": ["es6"], | ||
"sourceMap": true, | ||
"allowJs": true, | ||
"moduleResolution": "node", | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"noUnusedLocals": true, | ||
"typeRoots": ["node_modules/@types", "./typings"] | ||
}, | ||
"exclude": ["node_modules", "build", "dist", "scripts", "acceptance-tests", "webpack", "jest"] | ||
} |
Oops, something went wrong.