Skip to content

Commit 8f3c074

Browse files
TheZokeredgarmueller
authored andcommitted
Configure CI & linter, fix build (#4)
* Configure travis * Configure ts-lint * Configure jest * Configure coveralls * Configure greenkeeper * Rename tooling package (package with same name exists)
1 parent 84361dc commit 8f3c074

20 files changed

+5543
-1292
lines changed

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
sudo: required
2+
3+
language: node_js
4+
5+
node_js:
6+
- 'node'
7+
8+
cache: npm
9+
10+
before_install:
11+
- npm update
12+
13+
install:
14+
- npm ci
15+
- lerna bootstrap --npm-ci-mode --ignore-scripts
16+
- lerna exec --no-bail --npm-ci-mode -- npm run postinstall
17+
18+
script:
19+
- lerna run build
20+
- lerna run lint
21+
# - npm run coveralls

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Make it easier for developers to use [JSONForms](https://github.com/eclipsesourc
55
## Continuous Integration
66
The JSONForms project is build and tested via [Travis](https://travis-ci.org/). Coverage is documented by [Coveralls](https://coveralls.io).
77

8-
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)
8+
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/)
99

1010
## Getting started
1111

greenkeeper.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"groups": {
3+
"default": {
4+
"packages": [
5+
"package.json",
6+
"theia-plugin/package.json",
7+
"vscode-extension/package.json",
8+
"tooling/package.json"
9+
]
10+
}
11+
}
12+
}

jest.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
};

tooling/package-lock.json renamed to jsonforms-tooling-common/package-lock.json

+24-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/package.json renamed to jsonforms-tooling-common/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tooling",
2+
"name": "jsonforms-tooling-common",
33
"description": "",
44
"version": "0.0.1",
55
"publisher": "EclipseSource",
@@ -11,7 +11,8 @@
1111
"build": "npm run compile",
1212
"compile": "rimraf out && tsc -p ./ --declaration",
1313
"postinstall": " ",
14-
"custominstall": "npm run postinstall"
14+
"custominstall": "npm run postinstall",
15+
"lint": "tslint --project tsconfig.json"
1516
},
1617
"dependencies": {
1718
"@jsonforms/core": "^2.0.12",
File renamed without changes.
File renamed without changes.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": "0.0.1",
3-
"packages": ["tooling", "theia-plugin", "vscode-extension"]
3+
"packages": ["jsonforms-tooling-common", "theia-plugin", "vscode-extension"]
44
}

0 commit comments

Comments
 (0)