Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,30 @@
"repository": "https://github.com/thefringeninja/sql-stream-store-browser.git",
"scripts": {
"analyze": "source-map-explorer build/static/js/main.*",
"start": "react-scripts start",
"build": "prettier --list-different \"src/**/*.js\" && react-scripts build",
"eject": "react-scripts eject",
"format": "prettier --write \"src/**/*.js\""
"start": "react-scripts-ts start",
"build": "prettier --list-different \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && react-scripts-ts build",
"eject": "react-scripts-ts eject",
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\""
},
"main": "src/index.js",
"main": "src/index.tsx",
"private": false,
"devDependencies": {
"@types/classnames": "^2.2.6",
"@types/history": "^4.7.2",
"@types/jss": "^9.5.7",
"@types/prettier": "^1.13.2",
"@types/react": "^16.4.18",
"@types/react-dom": "^16.0.9",
"@types/react-tap-event-plugin": "^0.0.30",
"@types/react-transition-group": "^2.0.14",
"@types/uuid": "^3.4.4",
"babel-plugin-module-resolver": "3.1.1",
"prettier": "1.14.2",
"source-map-explorer": "1.6.0"
"react-scripts-ts": "3.1.0",
"source-map-explorer": "1.6.0",
"tslint-config-prettier": "1.15.0",
"typescript": "3.1.3",
"typesync": "0.4.0"
},
"dependencies": {
"@material-ui/core": "3.2.1",
Expand All @@ -29,7 +42,6 @@
"react-inspector": "2.3.0",
"react-remarkable": "1.1.3",
"react-schema-form": "0.5.0",
"react-scripts": "2.0.5",
"react-tap-event-plugin": "3.0.2",
"rxjs": "5.4.3",
"uri-js": "4.2.2",
Expand Down
18 changes: 0 additions & 18 deletions src/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import SqlStreamStoreBrowser from './SqlStreamStoreBrowser';

const anyWindow = window as any;
anyWindow.SqlStreamStoreBrowser = SqlStreamStoreBrowser;
anyWindow.ReactDOM = ReactDOM;
anyWindow.React = React;

export default SqlStreamStoreBrowser;
34 changes: 34 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"compilerOptions": {
"baseUrl": "./src",
"outDir": "build/dist",
"module": "commonjs",
"target": "es5",
"lib": [
"dom",
"es6",
"esnext.array"
],
"sourceMap": true,
"allowJs": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "src",
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"alwaysStrict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
},
"exclude": [
"node_modules",
"build",
"scripts",
"webpack",
],
"types": [
"typePatches"
]
}
3 changes: 3 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./tsconfig.json"
}
13 changes: 13 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
"tslint:latest",
"tslint-config-prettier"
],
"defaultSeverity": "warning",
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts"
]
}
}
Loading