Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic release #10

Merged
merged 7 commits into from
Nov 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
coverage
.nyc_output
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: node_js
node_js:
- 'stable'
node_js: stable
yarn: true

before_install: yarn global add greenkeeper-lockfile@1

before_script: greenkeeper-lockfile-update

after_script: greenkeeper-lockfile-upload
before_script: yarn global add codecov
script:
- node_modules/.bin/nyc yarn test && yarn travis-deploy-once "yarn semantic-release"
after_success: codecov
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# JSON-typescript <a href="https://travis-ci.org/mike-north/json-typescript" align='right'><img src="https://travis-ci.org/mike-north/json-typescript.svg?branch=master"></a>
TypeScript type information for compile-time validation of [JSON objects](https://www.json.org/).

[![Greenkeeper badge](https://badges.greenkeeper.io/mike-north/json-typescript.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/mike-north/json-typescript.svg?branch=master)](https://travis-ci.org/mike-north/json-typescript)
[![Version](https://img.shields.io/npm/v/json-typescript.svg)](https://www.npmjs.com/package/json-typescript)

## How to use this

Expand All @@ -12,13 +13,13 @@ npm install --save-dev json-typescript

2. Import this package
```ts
import _JSON from 'json-typescript';
import * as _JSON from 'json-typescript';
```

3. Check to see if json types are validated correctly

```ts
import _JSON from 'json-typescript';
import * as _JSON from 'json-typescript';

// ✅ This should be OK
let doc: _JSON.Value = {
Expand Down