hdr-canvas 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hdr-canvas.umd.js +5978 -0
- package/dist/hdr-canvas.umd.js.map +1 -0
- package/package.json +12 -7
- package/rollup.config.mjs +55 -0
- package/tsconfig.json +25 -0
- package/dist/hdr-canvas.cjs +0 -5972
- package/dist/hdr-canvas.cjs.map +0 -1
package/package.json
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "hdr-canvas",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.13",
|
4
4
|
"description": "HDR capable HTML canvas",
|
5
5
|
"main": "dist/hdr-canvas.cjs",
|
6
6
|
"module": "dist/hdr-canvas.js",
|
7
7
|
"type": "module",
|
8
8
|
"exports": {
|
9
9
|
".": {
|
10
|
-
"
|
11
|
-
"
|
10
|
+
"types": "./dist/index.d.ts",
|
11
|
+
"import": "./dist/hdr-canvas.js",
|
12
|
+
"default": "./dist/hdr-canvas.js"
|
12
13
|
},
|
13
|
-
"./three": "./three/*"
|
14
|
+
"./three/*": "./three/*"
|
14
15
|
},
|
15
16
|
"files": [
|
16
17
|
"dist/hdr-canvas.d.ts",
|
@@ -18,12 +19,16 @@
|
|
18
19
|
"dist/hdr-canvas.js.map",
|
19
20
|
"dist/hdr-canvas.min.js",
|
20
21
|
"dist/hdr-canvas.min.js.map",
|
21
|
-
"dist/hdr-canvas.
|
22
|
-
"dist/hdr-canvas.
|
22
|
+
"dist/hdr-canvas.umd.js",
|
23
|
+
"dist/hdr-canvas.umd.js.map",
|
23
24
|
"dist/index.d.ts",
|
24
25
|
"dist/@types",
|
25
26
|
"three",
|
26
|
-
"src"
|
27
|
+
"src",
|
28
|
+
"rollup.config.mjs",
|
29
|
+
"tsconfig.json",
|
30
|
+
"README",
|
31
|
+
"LICENCE"
|
27
32
|
],
|
28
33
|
"types": "dist/index.d.ts",
|
29
34
|
"scripts": {
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import typescript from "@rollup/plugin-typescript";
|
2
|
+
import { dts } from "rollup-plugin-dts";
|
3
|
+
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
4
|
+
import terser from "@rollup/plugin-terser";
|
5
|
+
|
6
|
+
// External configs
|
7
|
+
import typescriptOptions from "./tsconfig.json" with { type: "json" };
|
8
|
+
|
9
|
+
const config = [
|
10
|
+
{
|
11
|
+
input: "src/index.ts",
|
12
|
+
output: [
|
13
|
+
{
|
14
|
+
file: "dist/hdr-canvas.js",
|
15
|
+
format: "es",
|
16
|
+
sourcemap: true
|
17
|
+
},
|
18
|
+
{
|
19
|
+
file: "dist/hdr-canvas.umd.js",
|
20
|
+
format: "umd",
|
21
|
+
name: "HDRCanvas",
|
22
|
+
sourcemap: true
|
23
|
+
}
|
24
|
+
],
|
25
|
+
external: ["three" /*, "colorjs.io" */],
|
26
|
+
plugins: [typescript(typescriptOptions), nodeResolve()]
|
27
|
+
},
|
28
|
+
{
|
29
|
+
input: "src/index.ts",
|
30
|
+
output: {
|
31
|
+
file: "dist/hdr-canvas.min.js",
|
32
|
+
format: "iife",
|
33
|
+
name: "HDRCanvas",
|
34
|
+
sourcemap: true
|
35
|
+
},
|
36
|
+
external: ["three"],
|
37
|
+
plugins: [typescript(typescriptOptions), nodeResolve(), terser()]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
input: "src/index.ts",
|
41
|
+
output: [
|
42
|
+
{
|
43
|
+
file: "dist/@types/hdr-canvas.d.ts",
|
44
|
+
format: "es"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
file: "dist/index.d.ts",
|
48
|
+
format: "es"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
plugins: [dts()]
|
52
|
+
}
|
53
|
+
];
|
54
|
+
|
55
|
+
export default config;
|
package/tsconfig.json
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"module": "esnext",
|
4
|
+
"noImplicitAny": true,
|
5
|
+
"removeComments": true,
|
6
|
+
"preserveConstEnums": true,
|
7
|
+
"sourceMap": true,
|
8
|
+
"moduleResolution": "node",
|
9
|
+
"noEmit": false,
|
10
|
+
"noEmitOnError": true,
|
11
|
+
"esModuleInterop": true,
|
12
|
+
"strict": true,
|
13
|
+
"strictNullChecks": true,
|
14
|
+
"declaration": true,
|
15
|
+
"allowJs": false,
|
16
|
+
"skipLibCheck": false,
|
17
|
+
"target": "es2022",
|
18
|
+
"outDir": "dist",
|
19
|
+
"declarationDir": "dist",
|
20
|
+
"typeRoots": ["./node_modules/@types"],
|
21
|
+
"lib": ["dom", "es2022"]
|
22
|
+
},
|
23
|
+
"include": ["src/**/*"],
|
24
|
+
"exclude": ["node_modules", "**/*.spec.ts", "three/**/*"]
|
25
|
+
}
|