+43
-49
lines changedFilter options
+43
-49
lines changed Original file line number Diff line number Diff line change
@@ -5,15 +5,19 @@
5
5
"engines": {
6
6
"node": ">=4.0.0"
7
7
},
8
-
"main": "index.js",
8
+
"main": "index",
9
9
"files": [
10
-
"index.d.ts",
11
-
"index.js.map"
10
+
"index.*"
12
11
],
12
+
"dependencies": {},
13
13
"devDependencies": {
14
14
"@types/eslint": "^4.16.0",
15
15
"@types/mocha": "^2.2.48",
16
16
"@types/node": "^9.4.6",
17
+
"babel-core": "^6.26.0",
18
+
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
19
+
"babel-plugin-transform-es2015-parameters": "^6.24.1",
20
+
"babel-plugin-transform-es2015-spread": "^6.22.0",
17
21
"dts-bundle": "^0.7.3",
18
22
"eslint": "^4.18.0",
19
23
"eslint-config-mysticatea": "^13.0.2",
@@ -24,6 +28,7 @@
24
28
"prettier": "^1.9.2",
25
29
"rimraf": "^2.6.2",
26
30
"rollup": "^0.56.1",
31
+
"rollup-plugin-babel": "^3.0.3",
27
32
"rollup-plugin-node-resolve": "^3.0.3",
28
33
"rollup-plugin-sourcemaps": "^0.4.2",
29
34
"rollup-watch": "^4.3.1",
@@ -33,7 +38,11 @@
33
38
},
34
39
"scripts": {
35
40
"prebuild": "npm run -s clean",
36
-
"build": "tsc --project tsconfig.prod.json && rollup -c -o index.js && dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
41
+
"build": "run-s build:*",
42
+
"build:tsc": "tsc --module es2015 --target es2015",
43
+
"build:mjs": "rollup -c rollup-mjs.config.js",
44
+
"build:js": "rollup -c rollup-js.config.js",
45
+
"build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
37
46
"clean": "rimraf .temp index.*",
38
47
"lint": "eslint src test tools --ext .ts",
39
48
"pretest": "run-s build lint",
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
1
+
import babel from "rollup-plugin-babel"
2
+
import resolve from "rollup-plugin-node-resolve"
3
+
import sourcemaps from "rollup-plugin-sourcemaps"
4
+
5
+
export default {
6
+
input: ".temp/index.js",
7
+
output: {
8
+
file: "index.js",
9
+
format: "cjs",
10
+
sourcemap: true,
11
+
sourcemapFile: "index.js.map",
12
+
strict: true,
13
+
banner: `/*! @author Toru Nagashima <https://github.com/mysticatea> */`,
14
+
},
15
+
plugins: [
16
+
sourcemaps(),
17
+
resolve(),
18
+
babel({
19
+
plugins: [
20
+
"transform-es2015-destructuring",
21
+
"transform-es2015-parameters",
22
+
"transform-es2015-spread",
23
+
],
24
+
}),
25
+
],
26
+
}
Original file line number Diff line number Diff line change
@@ -4,14 +4,12 @@ import sourcemaps from "rollup-plugin-sourcemaps"
4
4
export default {
5
5
input: ".temp/index.js",
6
6
output: {
7
-
file: "index.js",
8
-
format: "cjs",
7
+
file: "index.mjs",
8
+
format: "es",
9
9
sourcemap: true,
10
-
sourcemapFile: "index.js.map",
10
+
sourcemapFile: "index.mjs.map",
11
11
strict: true,
12
-
banner: `/*!
13
-
* @author Toru Nagashima <https://github.com/mysticatea>
14
-
*/`,
12
+
banner: `/*! @author Toru Nagashima <https://github.com/mysticatea> */`,
15
13
},
16
14
plugins: [sourcemaps(), resolve()],
17
15
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4