Skip to content

Commit

Permalink
feat(v0): empty project
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 committed Jul 26, 2018
1 parent 25d90a2 commit 39da078
Show file tree
Hide file tree
Showing 16 changed files with 4,876 additions and 45 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
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
12 changes: 12 additions & 0 deletions .editorconfig
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
46 changes: 1 addition & 45 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,13 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
dist
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry = https://registry.npmjs.org
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
8

38 changes: 38 additions & 0 deletions .vscode/launch.json
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"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
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
}
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
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
}
}
]
}
21 changes: 21 additions & 0 deletions LICENSE
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.
38 changes: 38 additions & 0 deletions README.md
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
77 changes: 77 additions & 0 deletions package.json
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"
}
}
}
}
5 changes: 5 additions & 0 deletions src/index.test.ts
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 added src/index.ts
Empty file.
22 changes: 22 additions & 0 deletions tsconfig.json
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"]
}
20 changes: 20 additions & 0 deletions tsconfig.test.json
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"]
}
Loading

0 comments on commit 39da078

Please sign in to comment.