Skip to content

Commit

Permalink
Configure CI & linter, fix build (#4)
Browse files Browse the repository at this point in the history
* Configure travis
* Configure ts-lint
* Configure jest
* Configure coveralls
* Configure greenkeeper
* Rename tooling package (package with same name exists)
  • Loading branch information
TheZoker authored and edgarmueller committed Jan 15, 2019
1 parent 84361dc commit 8f3c074
Show file tree
Hide file tree
Showing 20 changed files with 5,543 additions and 1,292 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required

language: node_js

node_js:
- 'node'

cache: npm

before_install:
- npm update

install:
- npm ci
- lerna bootstrap --npm-ci-mode --ignore-scripts
- lerna exec --no-bail --npm-ci-mode -- npm run postinstall

script:
- lerna run build
- lerna run lint
# - npm run coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Make it easier for developers to use [JSONForms](https://github.com/eclipsesourc
## Continuous Integration
The JSONForms project is build and tested via [Travis](https://travis-ci.org/). Coverage is documented by [Coveralls](https://coveralls.io).

Current status: [![Build Status](https://travis-ci.org/eclipsesource/jsonforms-tooling.svg?branch=master)](https://travis-ci.org/eclipsesource/jsonforms-tooling) [![Coverage Status](https://coveralls.io/repos/eclipsesource/jsonforms-tooling/badge.svg?branch=master&service=github)](https://coveralls.io/github/eclipsesource/jsonforms-tooling?branch=master)
Current status: [![Build Status](https://travis-ci.org/eclipsesource/jsonforms-tooling.svg?branch=master)](https://travis-ci.org/eclipsesource/jsonforms-tooling) [![Coverage Status](https://coveralls.io/repos/eclipsesource/jsonforms-tooling/badge.svg?branch=master&service=github)](https://coveralls.io/github/eclipsesource/jsonforms-tooling?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/eclipsesource/jsonforms-tooling.svg)](https://greenkeeper.io/)

## Getting started

Expand Down
12 changes: 12 additions & 0 deletions greenkeeper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"groups": {
"default": {
"packages": [
"package.json",
"theia-plugin/package.json",
"vscode-extension/package.json",
"tooling/package.json"
]
}
}
}
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tooling",
"name": "jsonforms-tooling-common",
"description": "",
"version": "0.0.1",
"publisher": "EclipseSource",
Expand All @@ -11,7 +11,8 @@
"build": "npm run compile",
"compile": "rimraf out && tsc -p ./ --declaration",
"postinstall": " ",
"custominstall": "npm run postinstall"
"custominstall": "npm run postinstall",
"lint": "tslint --project tsconfig.json"
},
"dependencies": {
"@jsonforms/core": "^2.0.12",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.0.1",
"packages": ["tooling", "theia-plugin", "vscode-extension"]
"packages": ["jsonforms-tooling-common", "theia-plugin", "vscode-extension"]
}
Loading

0 comments on commit 8f3c074

Please sign in to comment.