Skip to content

Commit 2fa34d8

Browse files
committed
chore: use parcel instead of rollup
1 parent f691e53 commit 2fa34d8

File tree

5 files changed

+2879
-2063
lines changed

5 files changed

+2879
-2063
lines changed

babel.config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import { Emitter, CompositeDisposable } from "atom"
44
import MinimapElement from "./minimap-element"
55
import Minimap from "./minimap"
6-
import config from "./config.json"
6+
import * as config from "./config.json"
77
import * as PluginManagement from "./plugin-management"
88
import { treeSitterWarning } from "./performance-monitor"
99
import { StyleReader } from "atom-ide-base/commons-ui/dom-style-reader"
1010
import { debounce } from "./deps/underscore-plus"
1111

12-
export { default as config } from "./config.json"
12+
export * as config from "./config.json"
1313
export * from "./plugin-management"
1414
export { default as Minimap } from "./minimap"
1515
export { default as MinimapElement } from "./minimap-element"

package.json

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"lint": "eslint . --fix",
1515
"test.lint": "eslint .",
1616
"clean": "shx rm -rf dist .parcel-cache",
17-
"dev": "cross-env NODE_ENV=development BABEL_KEEP_MODULES=true rollup -c -w",
18-
"build.test": "cross-env NODE_ENV=test BABEL_KEEP_MODULES=true rollup -c",
19-
"build": "cross-env NODE_ENV=production BABEL_KEEP_MODULES=true rollup -c",
17+
"dev": "cross-env NODE_ENV=development parcel watch --target main ./lib/main.js --no-scope-hoist",
18+
"build.test": "npm run clean && cross-env NODE_ENV=test parcel build --target main ./lib/main.js --no-scope-hoist",
19+
"build": "cross-env NODE_ENV=production parcel build --target main ./lib/main.js --no-scope-hoist",
2020
"build-commit": "npm run clean && build-commit -o dist",
2121
"esdoc": "esdoc -c esdoc.json",
2222
"test": "atom --test spec",
@@ -41,7 +41,8 @@
4141
"repository": "https://github.com/atom-minimap/minimap",
4242
"license": "MIT",
4343
"engines": {
44-
"atom": ">=1.52.0"
44+
"atom": ">=1.52.0",
45+
"electron": ">=6.0.0"
4546
},
4647
"providedServices": {
4748
"minimap": {
@@ -68,7 +69,6 @@
6869
"devDependencies": {
6970
"@types/atom": "^1.40.10",
7071
"@types/jasmine": "3.7.7",
71-
"babel-preset-atomic": "^4.1.0",
7272
"build-commit": "^0.1.4",
7373
"cross-env": "^7.0.3",
7474
"esdoc": "^1.1.0",
@@ -77,42 +77,22 @@
7777
"eslint-config-atomic": "^1.16.1",
7878
"jasmine-expect": "^5.0.0",
7979
"npm-check-updates": "latest",
80+
"parcel": "^2.0.0-nightly.734",
8081
"prettier-config-atomic": "^2.0.5",
81-
"rollup-plugin-atomic": "^2.3.2",
8282
"shx": "^0.3.3",
8383
"terser-config-atomic": "^0.1.1",
8484
"underscore-plus": "^1.7.0"
8585
},
86-
"standard": {
87-
"globals": [
88-
"advanceClock",
89-
"atom",
90-
"beforeEach",
91-
"afterEach",
92-
"expect",
93-
"describe",
94-
"fdescribe",
95-
"ffdescribe",
96-
"fffdescribe",
97-
"xdescribe",
98-
"it",
99-
"xit",
100-
"fit",
101-
"ffit",
102-
"fffit",
103-
"jasmine",
104-
"MouseEvent",
105-
"runs",
106-
"spyOn",
107-
"waits",
108-
"waitsFor",
109-
"waitsForPromise",
110-
"devicePixelRatio",
111-
"requestAnimationFrame",
112-
"Event",
113-
"MouseEvent",
114-
"IntersectionObserver",
115-
"cancelAnimationFrame"
116-
]
86+
"targets": {
87+
"main": {
88+
"context": "electron-renderer",
89+
"includeNodeModules": {
90+
"atom": false,
91+
"electron": false,
92+
"fs-plus": false
93+
},
94+
"outputFormat": "commonjs",
95+
"isLibrary": true
96+
}
11797
}
11898
}

0 commit comments

Comments
 (0)