Remove TS configs for now from designer bindins project

This commit is contained in:
Sipke Schoorstra 2021-05-10 10:26:13 +02:00
parent 04aff2c1c9
commit 7a9ccb99cf
4 changed files with 3 additions and 41 deletions

View file

@ -7,14 +7,9 @@
"watch": "cross-env webpack --watch --mode=development --env configuration=Debug"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.1",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^8.1.1",
"cross-env": "^7.0.3",
"monaco-editor": "^0.23.0",
"ts-loader": "^9.1.2",
"typescript": "^4.2.4",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0"
}

View file

@ -1,20 +0,0 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": true,
"allowUnusedLabels": true,
"declaration": false,
"experimentalDecorators": true,
"lib": [
"dom",
"es2019"
],
"moduleResolution": "node",
"module": "esnext",
"target": "ES2019",
"noUnusedLocals": false,
"noUnusedParameters": false,
"jsx": "react",
"jsxFactory": "h"
}
}

View file

@ -6,21 +6,8 @@ module.exports = env => {
return {
entry: ['./index.js'],
devtool: env && env.production ? 'none' : 'source-map',
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js', '.jsx'],
extensions: ['.js'],
},
experiments: {
outputModule: true

View file

@ -8,11 +8,11 @@ using NodaTime;
namespace Elsa.Scripting.JavaScript.Handlers
{
public class DateTimeScriptEngineConfigurator : INotificationHandler<EvaluatingJavaScriptExpression>
public class ConfigureJavaScriptEngineWithDateTimeFeatures : INotificationHandler<EvaluatingJavaScriptExpression>
{
private readonly IClock _clock;
public DateTimeScriptEngineConfigurator(IClock clock)
public ConfigureJavaScriptEngineWithDateTimeFeatures(IClock clock)
{
_clock = clock;
}