forked from eclipsesource/jsonforms-tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
13,371 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
node_modules/ | ||
theia-plugin/npm-debug.log | ||
|
||
tooling/out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { "modules": false }], | ||
"@babel/preset-typescript" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "jsonforms-tooling", | ||
"version": "0.0.1", | ||
"description": "", | ||
"author": "EclipseSource", | ||
"main": "out/index", | ||
"typings": "out/index", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "babel src -d out --extensions \".ts,.tsx\"", | ||
"compile": "rimraf out && tsc -p ./ --declaration" | ||
}, | ||
"dependencies": { | ||
"npm": "^6.4.1", | ||
"simple-git": "^1.107.0" | ||
}, | ||
"type-check": "tsc", | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/preset-typescript": "^7.1.0", | ||
"@types/node": "^10.12.7", | ||
"rimraf": "^2.6.2", | ||
"typescript": "^3.1.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import * as simplegit from 'simple-git/promise'; | ||
import * as child from 'child_process'; | ||
|
||
export function cloneAndInstall(repo: String, path: string) { | ||
var url = ''; | ||
switch(repo) { | ||
case 'example': | ||
url = 'https://github.com/eclipsesource/make-it-happen-react'; | ||
break; | ||
case 'seed': | ||
url = 'https://github.com/eclipsesource/jsonforms-react-seed'; | ||
break; | ||
} | ||
const git = simplegit(); | ||
console.log('Starting to clone repo'); | ||
git.clone(url, path) | ||
.then(function() { | ||
console.log('Finished to clone repo'); | ||
console.log('Running npm install'); | ||
child.exec('cd /${path} && npm install', (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
console.log(`stdout: ${stdout}`); | ||
console.log(`stderr: ${stderr}`); | ||
}); | ||
}) | ||
.catch((err: any) => console.error('failed: ', err)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es6", | ||
"outDir": "out", | ||
"lib": [ | ||
"es6" | ||
], | ||
"noEmit": false, | ||
"pretty": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"rootDir": "src", | ||
/* Strict Type-Checking Option */ | ||
"strict": true, /* enable all strict type-checking options */ | ||
/* Additional Checks */ | ||
"noUnusedLocals": true /* Report errors on unused locals. */ | ||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ | ||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ | ||
// "noUnusedParameters": true, /* Report errors on unused parameters. */ | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
Oops, something went wrong.