Skip to content

Commit 1ca7344

Browse files
committed
fix: build the package with Parcel - require Atom 1.52 and above
1 parent 2b312a8 commit 1ca7344

File tree

4 files changed

+4309
-299
lines changed

4 files changed

+4309
-299
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ package-lock.json
1111

1212
# Build directories
1313
dist
14+
.parcel-cache

.terserrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("terser-config-atomic")

package.json

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ide-d",
3-
"main": "./dist/ide-d",
3+
"main": "./dist/ide-d.js",
44
"version": "0.4.0",
55
"description": "D language and IDE support for Atom",
66
"keywords": [
@@ -17,7 +17,8 @@
1717
"repository": "https://github.com/Pure-D/atom-ide-d",
1818
"license": "MIT",
1919
"engines": {
20-
"atom": ">=1.0.0 <2.0.0"
20+
"atom": ">=1.52.0 <2.0.0",
21+
"electron": "^6.1.12"
2122
},
2223
"scripts": {
2324
"format": "prettier --write .",
@@ -26,15 +27,26 @@
2627
"test.lint": "eslint .",
2728
"test": "atom --test spec",
2829
"clean": "shx rm -rf dist",
29-
"tsc": "tsc -p src/tsconfig.json",
3030
"tsc.dev": "tsc -p src/tsconfig.json --watch",
31-
"build": "npm run tsc",
32-
"dev": "npm run tsc.dev",
31+
"dev": "cross-env NODE_ENV=developement parcel watch ./src/ide-d.ts",
32+
"build": "cross-env NODE_ENV=production parcel build ./src/ide-d.ts --detailed-report",
3333
"get.grammars": "ts-node -P ./scripts/tsconfig.json ./scripts/get-grammars.ts",
3434
"get.servers": "ts-node -P ./scripts/tsconfig.json ./scripts/get-servers.ts",
3535
"build-commit": "build-commit -o dist",
3636
"prepare": "npm run get.servers && npm run build"
3737
},
38+
"targets": {
39+
"main": {
40+
"context": "electron-renderer",
41+
"includeNodeModules": {
42+
"atom": false,
43+
"electron": false,
44+
"atom-languageclient": false,
45+
"fs-extra": false
46+
},
47+
"isLibrary": true
48+
}
49+
},
3850
"prettier": "prettier-config-atomic",
3951
"atomTestRunner": "./spec/runner",
4052
"activationHooks": [
@@ -101,13 +113,15 @@
101113
"decompress-tarxz": "^3.0.0",
102114
"eslint-config-atomic": "^1.16.2",
103115
"gitly": "^2.1.2",
116+
"parcel": "^2.0.0-beta.3.1",
104117
"prettier-config-atomic": "^2.0.5",
105118
"shx": "0.3.3",
119+
"terser-config-atomic": "^0.1.1",
106120
"ts-node": "^10.1.0",
107121
"typescript": "^4.3.5"
108122
},
109123
"dependencies": {
110-
"atom-languageclient": "^1.14.1",
124+
"atom-languageclient": "1.14.1",
111125
"atom-package-deps": "^7.2.3",
112126
"fs-extra": "^10.0.0",
113127
"semver": "^7.3.5"

0 commit comments

Comments
 (0)