Skip to content

Commit

Permalink
JSDraw: Fix build for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
tanas80 committed Jun 25, 2024
1 parent e8db761 commit 87500c7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
9 changes: 9 additions & 0 deletions source/web/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
src/**/*.ts
!src/**/*.d.ts

page/**/*.ts
!page/**/*.d.ts

form/**/*.ts
!form/**/*.d.ts

# Developer keys
upload.keys.json

Expand Down
4 changes: 4 additions & 0 deletions source/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# JSDraw.Lite changelog

## 0.0.3 (2024-06-25)

Fix build for TypeScript

## 0.0.2 (2024-06-24)

Typing to Typescript
4 changes: 2 additions & 2 deletions source/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions source/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@datagrok-libraries/js-draw-lite",
"friendlyName": "JsDrawLite",
"version": "0.0.2",
"version": "0.0.3",
"description": "JSDraw.Lite forked from http://www.scilligence.com/",
"devDependencies": {
"@types/node": "^18.11.18",
Expand All @@ -20,8 +20,8 @@
"webpack-cli": "^4.9.1"
},
"scripts": {
"build": "webpack",
"build-prod": "cross-env NODE_ENV=production webpack",
"build": "tsc && webpack",
"build-prod": "cross-env NODE_ENV=production \"tsc && webpack\"",
"lint": "eslint src --ext .ts",
"lint-fix": "eslint src --ext .ts --fix"
},
Expand Down
15 changes: 8 additions & 7 deletions source/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
Expand Down Expand Up @@ -55,17 +55,18 @@
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */

/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
"sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
"mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */

/* Experimental Options */
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */

/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
},
"include": ["**/*.ts"]
}

0 comments on commit 87500c7

Please sign in to comment.