mirror of
https://github.com/buildbot/buildbot.git
synced 2021-05-20 10:47:20 +03:00
Use Typescript
Ideas taken from https://github.com/angular-seattle/protractor-new-hope
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
"description": "smoke tests for buildbot with protractor",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"protractor": "^5.1.0"
|
||||
"protractor": "^5.1.0",
|
||||
"ts-node": "~4.1.0",
|
||||
"tslint": "~5.9.1",
|
||||
"typescript": "^2.5.3"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
|
||||
@@ -2,7 +2,7 @@ exports.config = {
|
||||
allScriptsTimeout: 11000,
|
||||
|
||||
specs: [
|
||||
'e2e/*.scenarios.js'
|
||||
'e2e/*.scenarios.ts'
|
||||
],
|
||||
|
||||
capabilities: {
|
||||
@@ -18,5 +18,11 @@ exports.config = {
|
||||
|
||||
jasmineNodeOpts: {
|
||||
defaultTimeoutInterval: 50000
|
||||
},
|
||||
|
||||
onPrepare() {
|
||||
require('ts-node').register({
|
||||
project: './tsconfig.ee.json'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@ exports.config = {
|
||||
allScriptsTimeout: 11000,
|
||||
|
||||
specs: [
|
||||
'e2e/*.scenarios.js'
|
||||
'e2e/*.scenarios.ts'
|
||||
],
|
||||
|
||||
capabilities: {
|
||||
@@ -20,5 +20,11 @@ exports.config = {
|
||||
|
||||
jasmineNodeOpts: {
|
||||
defaultTimeoutInterval: 30000
|
||||
},
|
||||
|
||||
onPrepare() {
|
||||
require('ts-node').register({
|
||||
project: './tsconfig.ee.json'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
14
smokes/tsconfig.ee.json
Normal file
14
smokes/tsconfig.ee.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/e2e",
|
||||
"baseUrl": "./",
|
||||
"module": "commonjs",
|
||||
"target": "es2017",
|
||||
"types": [
|
||||
"jasmine",
|
||||
"jasminewd2",
|
||||
"node"
|
||||
]
|
||||
}
|
||||
}
|
||||
20
smokes/tsconfig.json
Normal file
20
smokes/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist/out-tsc",
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "es6",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
"dom",
|
||||
"es2015.promise"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user