stormcloud-video-player 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stormcloud-vp.min.js +19 -0
- package/package.json +11 -4
- package/rollup.config.js +51 -0
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stormcloud-video-player",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "lib/index.cjs",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
7
|
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --out-dir lib",
|
|
8
|
+
"build:minified": "rollup -c rollup.config.js",
|
|
9
|
+
"build:all": "npm run clean && npm run build && npm run build:minified",
|
|
8
10
|
"dev": "tsup src/index.ts --format esm,cjs --dts --watch --out-dir lib",
|
|
9
11
|
"clean": "rm -rf lib dist",
|
|
10
12
|
"build:lib": "npm run build"
|
|
@@ -17,10 +19,15 @@
|
|
|
17
19
|
"hls.js": "^1.6.11"
|
|
18
20
|
},
|
|
19
21
|
"devDependencies": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
23
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
24
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
25
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
22
26
|
"@types/react": "^18.3.4",
|
|
23
|
-
"@types/react-dom": "^18.3.0"
|
|
27
|
+
"@types/react-dom": "^18.3.0",
|
|
28
|
+
"tslib": "^2.8.1",
|
|
29
|
+
"tsup": "^8.5.0",
|
|
30
|
+
"typescript": "^5.9.2"
|
|
24
31
|
},
|
|
25
32
|
"type": "module",
|
|
26
33
|
"module": "lib/index.js",
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
3
|
+
import terser from "@rollup/plugin-terser";
|
|
4
|
+
import typescript from "@rollup/plugin-typescript";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
input: "src/index.ts",
|
|
8
|
+
|
|
9
|
+
output: {
|
|
10
|
+
file: "dist/stormcloud-vp.min.js",
|
|
11
|
+
format: "umd",
|
|
12
|
+
name: "StormcloudVP",
|
|
13
|
+
sourcemap: false,
|
|
14
|
+
globals: {},
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
plugins: [
|
|
18
|
+
resolve({
|
|
19
|
+
browser: true,
|
|
20
|
+
preferBuiltins: false,
|
|
21
|
+
}),
|
|
22
|
+
commonjs({
|
|
23
|
+
include: ["node_modules/**"],
|
|
24
|
+
}),
|
|
25
|
+
typescript({
|
|
26
|
+
tsconfig: "./tsconfig.json",
|
|
27
|
+
sourceMap: false,
|
|
28
|
+
inlineSources: false,
|
|
29
|
+
declaration: false,
|
|
30
|
+
declarationMap: false,
|
|
31
|
+
}),
|
|
32
|
+
terser({
|
|
33
|
+
compress: {
|
|
34
|
+
drop_console: false,
|
|
35
|
+
drop_debugger: true,
|
|
36
|
+
pure_funcs: ["console.debug"],
|
|
37
|
+
},
|
|
38
|
+
mangle: {
|
|
39
|
+
reserved: ["StormcloudVP"],
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
42
|
+
],
|
|
43
|
+
|
|
44
|
+
external: [],
|
|
45
|
+
|
|
46
|
+
onwarn(warning, warn) {
|
|
47
|
+
if (warning.code === "CIRCULAR_DEPENDENCY") return;
|
|
48
|
+
if (warning.code === "THIS_IS_UNDEFINED") return;
|
|
49
|
+
warn(warning);
|
|
50
|
+
},
|
|
51
|
+
};
|