Skip to content

Commit 768163b

Browse files
committed
sandbox-runner lib
1 parent d1b82ea commit 768163b

File tree

71 files changed

+460
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+460
-296
lines changed

angular.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"playground": "apps/playground",
1818
"slides": "libs/slides",
1919
"sync": "libs/sync",
20-
"utils": "libs/utils"
21-
}
20+
"utils": "libs/utils",
21+
"sandbox-runner": "libs/sandbox-runner"
22+
},
23+
"defaultProject": "codelab"
2224
}

apps/angular-thirty-seconds/project.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,24 @@
7979
},
8080
"test": {
8181
"executor": "@nrwl/jest:jest",
82-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
82+
"outputs": [
83+
"{workspaceRoot}/coverage/{projectRoot}"
84+
],
8385
"options": {
8486
"jestConfig": "apps/angular-thirty-seconds/jest.config.ts",
8587
"passWithNoTests": true
8688
}
8789
},
8890
"lint": {
8991
"executor": "@nrwl/linter:eslint",
90-
"outputs": ["{options.outputFile}"],
92+
"outputs": [
93+
"{options.outputFile}"
94+
],
9195
"options": {
92-
"lintFilePatterns": ["apps/angular-thirty-seconds/**/*.ts", "apps/angular-thirty-seconds/**/*.html"]
96+
"lintFilePatterns": [
97+
"apps/angular-thirty-seconds/**/*.ts",
98+
"apps/angular-thirty-seconds/**/*.html"
99+
]
93100
}
94101
}
95102
},

apps/codelab/project.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
"namedChunks": true
6363
},
6464
"ru": {
65-
"localize": ["ru"]
65+
"localize": [
66+
"ru"
67+
]
6668
},
6769
"production": {
6870
"outputHashing": "all",
@@ -98,17 +100,24 @@
98100
},
99101
"test": {
100102
"executor": "@nrwl/jest:jest",
101-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
103+
"outputs": [
104+
"{workspaceRoot}/coverage/{projectRoot}"
105+
],
102106
"options": {
103107
"jestConfig": "apps/codelab/jest.config.ts",
104108
"passWithNoTests": true
105109
}
106110
},
107111
"lint": {
108112
"executor": "@nrwl/linter:eslint",
109-
"outputs": ["{options.outputFile}"],
113+
"outputs": [
114+
"{options.outputFile}"
115+
],
110116
"options": {
111-
"lintFilePatterns": ["apps/codelab/**/*.ts", "apps/codelab/**/*.html"]
117+
"lintFilePatterns": [
118+
"apps/codelab/**/*.ts",
119+
"apps/codelab/**/*.html"
120+
]
112121
}
113122
}
114123
},

apps/codelab/src/app/components/angular-test-runner/angular-test-runner.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import * as babel_types from 'babel-types';
1818
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
1919
import { Subscription } from 'rxjs/internal/Subscription';
2020
import { handleTestMessage } from './tests';
21-
import { getTypeScript, ScriptLoaderService, TestRunResult } from "@codelab/utils";
21+
import { TestRunResult } from "@codelab/utils";
2222
import { createSystemJsSandbox } from "@codelab/code-demos";
23+
import { getTypeScript, ScriptLoaderService } from '@codelab/sandbox-runner';
2324

2425
const ts = getTypeScript();
2526

apps/codelab/src/app/components/babel-test-runner/babel-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as T from 'babel-types';
22
import * as babylon from 'babylon';
33
import babel_traverse from '@babel/traverse';
4-
import { getTypeScript } from '@codelab/utils';
4+
import { getTypeScript } from '@codelab/sandbox-runner';
55
import * as TsTypes from 'typescript';
66

77
const ts = getTypeScript();

apps/kirjs/project.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"output": "./assets/runner/"
3737
}
3838
],
39-
"styles": ["apps/kirjs/src/styles.css"],
39+
"styles": [
40+
"apps/kirjs/src/styles.css"
41+
],
4042
"scripts": []
4143
},
4244
"defaultConfiguration": "production",
@@ -50,7 +52,9 @@
5052
"namedChunks": true
5153
},
5254
"ru": {
53-
"localize": ["ru"]
55+
"localize": [
56+
"ru"
57+
]
5458
},
5559
"production": {
5660
"outputHashing": "all",
@@ -86,17 +90,24 @@
8690
},
8791
"test": {
8892
"executor": "@nrwl/jest:jest",
89-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
93+
"outputs": [
94+
"{workspaceRoot}/coverage/{projectRoot}"
95+
],
9096
"options": {
9197
"jestConfig": "apps/kirjs/jest.config.ts",
9298
"passWithNoTests": true
9399
}
94100
},
95101
"lint": {
96102
"executor": "@nrwl/linter:eslint",
97-
"outputs": ["{options.outputFile}"],
103+
"outputs": [
104+
"{options.outputFile}"
105+
],
98106
"options": {
99-
"lintFilePatterns": ["apps/kirjs/**/*.ts", "apps/kirjs/**/*.html"]
107+
"lintFilePatterns": [
108+
"apps/kirjs/**/*.ts",
109+
"apps/kirjs/**/*.html"
110+
]
100111
}
101112
}
102113
},

apps/kirjs/src/app/modules/webassembly/webassembly-playground/monaco-directives/monaco-js-position.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Self,
88
} from '@angular/core';
99
import { CodeDemoEditorInjector } from '@codelab/code-demos';
10-
import { getTypeScript } from '@codelab/utils';
10+
import { getTypeScript } from '@codelab/sandbox-runner';
1111
import { serializeBlocks } from '../../utils';
1212
import { CodePath } from './common';
1313

apps/playground/project.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"output": "./assets/monaco/"
2323
}
2424
],
25-
"styles": ["apps/playground/src/styles.scss"],
25+
"styles": [
26+
"apps/playground/src/styles.scss"
27+
],
2628
"scripts": []
2729
},
2830
"configurations": {
@@ -66,17 +68,24 @@
6668
},
6769
"test": {
6870
"executor": "@nrwl/jest:jest",
69-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
71+
"outputs": [
72+
"{workspaceRoot}/coverage/{projectRoot}"
73+
],
7074
"options": {
7175
"jestConfig": "apps/playground/jest.config.ts",
7276
"passWithNoTests": true
7377
}
7478
},
7579
"lint": {
7680
"executor": "@nrwl/linter:eslint",
77-
"outputs": ["{options.outputFile}"],
81+
"outputs": [
82+
"{options.outputFile}"
83+
],
7884
"options": {
79-
"lintFilePatterns": ["apps/playground/**/*.ts", "apps/playground/**/*.html"]
85+
"lintFilePatterns": [
86+
"apps/playground/**/*.ts",
87+
"apps/playground/**/*.html"
88+
]
8089
}
8190
}
8291
},

libs/angular-ast-viz/project.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"targets": {
77
"build": {
88
"executor": "@nrwl/angular:package",
9-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
9+
"outputs": [
10+
"{workspaceRoot}/dist/{projectRoot}"
11+
],
1012
"options": {
1113
"project": "libs/angular-ast-viz/ng-package.json"
1214
},
@@ -22,15 +24,19 @@
2224
},
2325
"test": {
2426
"executor": "@nrwl/jest:jest",
25-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
27+
"outputs": [
28+
"{workspaceRoot}/coverage/{projectRoot}"
29+
],
2630
"options": {
2731
"jestConfig": "libs/angular-ast-viz/jest.config.ts",
2832
"passWithNoTests": true
2933
}
3034
},
3135
"lint": {
3236
"executor": "@nrwl/linter:eslint",
33-
"outputs": ["{options.outputFile}"],
37+
"outputs": [
38+
"{options.outputFile}"
39+
],
3440
"options": {
3541
"lintFilePatterns": [
3642
"libs/angular-ast-viz/**/*.ts",

libs/angular-slides-to-pdf/project.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"targets": {
77
"build": {
88
"executor": "@nrwl/angular:package",
9-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
9+
"outputs": [
10+
"{workspaceRoot}/dist/{projectRoot}"
11+
],
1012
"options": {
1113
"project": "libs/angular-slides-to-pdf/ng-package.json"
1214
},
@@ -22,15 +24,19 @@
2224
},
2325
"test": {
2426
"executor": "@nrwl/jest:jest",
25-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
27+
"outputs": [
28+
"{workspaceRoot}/coverage/{projectRoot}"
29+
],
2630
"options": {
2731
"jestConfig": "libs/angular-slides-to-pdf/jest.config.ts",
2832
"passWithNoTests": true
2933
}
3034
},
3135
"lint": {
3236
"executor": "@nrwl/linter:eslint",
33-
"outputs": ["{options.outputFile}"],
37+
"outputs": [
38+
"{options.outputFile}"
39+
],
3440
"options": {
3541
"lintFilePatterns": [
3642
"libs/angular-slides-to-pdf/**/*.ts",

0 commit comments

Comments
 (0)