Skip to content

Commit d302ee5

Browse files
committed
Theme modern to typescript
1 parent 075bb55 commit d302ee5

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import * as Blockly from 'blockly/core';
1212

1313
export default Blockly.Theme.defineTheme('modern', {
14+
name: 'modern',
1415
base: Blockly.Themes.Classic,
1516
blockStyles: {
1617
colour_blocks: {
@@ -96,5 +97,5 @@ export default Blockly.Theme.defineTheme('modern', {
9697
},
9798
componentStyles: {},
9899
fontStyle: {},
99-
startHats: null,
100+
startHats: undefined,
100101
});

plugins/theme-modern/tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"outDir": "dist",
5+
"declaration": true,
6+
"declarationMap": true,
7+
"sourceMap": true,
8+
"module": "es2015",
9+
"moduleResolution": "bundler",
10+
"target": "es6",
11+
"strict": true
12+
},
13+
// NOTE: `test/**/*` is automatically included in `blockly-scripts start`.
14+
// Only src matters for production builds.
15+
"include": ["src"]
16+
}

0 commit comments

Comments
 (0)