Skip to content

Commit 31fa5b9

Browse files
authored
Merge pull request #757 from atom-minimap/free-colors
2 parents 0c821fa + 6ea910b commit 31fa5b9

File tree

6 files changed

+315
-310
lines changed

6 files changed

+315
-310
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
3939
- name: Run Ubuntu tests
4040
if: ${{ contains(matrix.os, 'ubuntu') }}
41-
run: npm run test_build && npm run test
41+
run: npm run build.test && npm run test
4242

4343
# One or two of the tests are flaky on Windows/MacOs
4444
- name: Run Windows and MacOS tests
4545
if: ${{ !contains(matrix.os, 'ubuntu') }}
4646
continue-on-error: true
47-
run: npm run test_build && npm run test
47+
run: npm run build.test && npm run test
4848

4949
Lint:
5050
if: "!contains(github.event.head_commit.message, '[skip ci]')"

.terserrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const isDev = process.env.NODE_ENV !== "production"
22
const isTest = process.env.NODE_ENV === "test"
3+
const isReadable = process.env.READABLE_BUILD || isDev || isTest
34

45
export default {
56
// "module": false, // controlled by Parcel
@@ -28,8 +29,8 @@ export default {
2829
"parse": {
2930
"ecma": 2020
3031
},
31-
"mangle": !isDev,
32+
"mangle": isReadable ? false : true,
3233
"format": {
33-
"beautify": isDev
34+
"beautify": isReadable
3435
},
3536
}

lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ let subscriptionsOfCommands = null
6464
*/
6565
export const emitter = new Emitter()
6666

67-
6867
/**
6968
DOMStylesReader cache used for storing token colors
7069
*/

0 commit comments

Comments
 (0)