Skip to content

Commit e38a34e

Browse files
committed
Introduce the skeleton compare view
Adds the tsx file and updates the webpack config so that this new tsx file is properly compiled.
1 parent ed04ae9 commit e38a34e

5 files changed

Lines changed: 63 additions & 1 deletion

File tree

extensions/ql-vscode/gulpfile.js/webpack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import * as webpack from 'webpack';
44
export const config: webpack.Configuration = {
55
mode: 'development',
66
entry: {
7-
resultsView: './src/view/results.tsx'
7+
resultsView: './src/view/results.tsx',
8+
compareView: './src/compare/view/compare.tsx',
89
},
910
output: {
1011
path: path.resolve(__dirname, '..', 'out'),
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
env: {
3+
browser: true
4+
},
5+
extends: [
6+
"plugin:react/recommended"
7+
],
8+
settings: {
9+
react: {
10+
version: 'detect'
11+
}
12+
}
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import * as React from 'react';
2+
import * as Rdom from 'react-dom';
3+
4+
interface Props {
5+
/**/
6+
}
7+
8+
export function App(props: Props): JSX.Element {
9+
return (
10+
<div>Compare View!</div>
11+
);
12+
}
13+
14+
Rdom.render(
15+
<App />,
16+
document.getElementById('root')
17+
);
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.octicon {
2+
fill: var(--vscode-editor-foreground);
3+
margin-top: .25em;
4+
}
5+
6+
.octicon-light {
7+
opacity: 0.6;
8+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"module": "esnext",
4+
"moduleResolution": "node",
5+
"target": "es6",
6+
"outDir": "out",
7+
"lib": [
8+
"es6",
9+
"dom"
10+
],
11+
"jsx": "react",
12+
"sourceMap": true,
13+
"rootDir": "..",
14+
"strict": true,
15+
"noUnusedLocals": true,
16+
"noImplicitReturns": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"experimentalDecorators": true
19+
},
20+
"exclude": [
21+
"node_modules"
22+
]
23+
}

0 commit comments

Comments
 (0)