iota-utools 0.0.4 → 0.0.6
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/package.json +6 -2
- package/babel.config.cjs +0 -11
- package/rollup.config.js +0 -51
- package/tsconfig.json +0 -26
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iota-utools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
5
|
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/main.d.ts",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"build": "rollup -c",
|
|
9
10
|
"test": "jest --coverage --verbose -u",
|
|
10
11
|
"start": "rollup -c rollup.config.js --watch"
|
|
11
12
|
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib"
|
|
15
|
+
],
|
|
12
16
|
"keywords": [],
|
|
13
17
|
"author": "",
|
|
14
18
|
"license": "ISC",
|
package/babel.config.cjs
DELETED
package/rollup.config.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// ./`rollup.config.js`
|
|
2
|
-
import babel from "@rollup/plugin-babel";
|
|
3
|
-
import commonjs from "rollup-plugin-commonjs";
|
|
4
|
-
import { uglify } from "rollup-plugin-uglify";
|
|
5
|
-
import sourceMaps from "rollup-plugin-sourcemaps";
|
|
6
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
7
|
-
import typescript from "rollup-plugin-typescript2";
|
|
8
|
-
import livereload from "rollup-plugin-livereload"; // hot
|
|
9
|
-
import serve from "rollup-plugin-serve";
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
input: "./src/main.ts",
|
|
13
|
-
|
|
14
|
-
output: [
|
|
15
|
-
{
|
|
16
|
-
format: "cjs",
|
|
17
|
-
file: "lib/index.cjs.js",
|
|
18
|
-
sourcemap: true,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
format: "es",
|
|
22
|
-
file: "lib/index.js",
|
|
23
|
-
sourcemap: true,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
plugins: [
|
|
28
|
-
resolve({
|
|
29
|
-
// 将自定义选项传递给解析插件
|
|
30
|
-
customResolveOptions: {
|
|
31
|
-
moduleDirectory: "node_modules",
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
commonjs(),
|
|
35
|
-
typescript(),
|
|
36
|
-
sourceMaps(),
|
|
37
|
-
uglify(), // 压缩代码
|
|
38
|
-
livereload(),
|
|
39
|
-
babel({
|
|
40
|
-
runtimeHelpers: true,
|
|
41
|
-
// 只转换源代码,不运行外部依赖
|
|
42
|
-
exclude: "node_modules/**",
|
|
43
|
-
babelHelpers: "bundled",
|
|
44
|
-
}),
|
|
45
|
-
serve({
|
|
46
|
-
open: true,
|
|
47
|
-
port: 10801,
|
|
48
|
-
contentBase: ["", "./public"],
|
|
49
|
-
}),
|
|
50
|
-
],
|
|
51
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* tsconfig.json */
|
|
2
|
-
{
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
/* 基础配置 */
|
|
5
|
-
"target": "esnext",
|
|
6
|
-
"lib": [
|
|
7
|
-
"dom",
|
|
8
|
-
"esnext"
|
|
9
|
-
],
|
|
10
|
-
"removeComments": false,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
/* 强类型检查配置 */
|
|
14
|
-
"strict": true,
|
|
15
|
-
"noImplicitAny": false,
|
|
16
|
-
/* 模块分析配置 */
|
|
17
|
-
"baseUrl": ".",
|
|
18
|
-
"outDir": "./lib",
|
|
19
|
-
"esModuleInterop": true,
|
|
20
|
-
"moduleResolution": "node",
|
|
21
|
-
"resolveJsonModule": true
|
|
22
|
-
},
|
|
23
|
-
"include": [
|
|
24
|
-
"src"
|
|
25
|
-
]
|
|
26
|
-
}
|