Skip to content

Commit

Permalink
Merge pull request #10 from mike-north/semantic-release
Browse files Browse the repository at this point in the history
Semantic release
  • Loading branch information
mike-north committed Nov 7, 2018
2 parents fdefff7 + 04770bf commit eeb3037
Show file tree
Hide file tree
Showing 13 changed files with 6,884 additions and 3,824 deletions.
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

0 comments on commit eeb3037

Please sign in to comment.