Skip to content

Commit d0b7afe

Browse files
committed
Exclude test dependencies from production Atom binary
1 parent 924b063 commit d0b7afe

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"base16-tomorrow-light-theme": "file:packages/base16-tomorrow-light-theme",
4040
"bookmarks": "https://www.atom.io/api/packages/bookmarks/versions/0.46.0/tarball",
4141
"bracket-matcher": "https://www.atom.io/api/packages/bracket-matcher/versions/0.91.2/tarball",
42-
"chai": "4.2.0",
4342
"chart.js": "2.9.4",
4443
"clear-cut": "^2.0.2",
4544
"coffee-script": "1.12.7",
@@ -74,9 +73,6 @@
7473
"grim": "2.0.3",
7574
"image-view": "https://www.atom.io/api/packages/image-view/versions/0.64.0/tarball",
7675
"incompatible-packages": "file:packages/incompatible-packages",
77-
"jasmine-json": "~0.0",
78-
"jasmine-reporters": "1.1.0",
79-
"jasmine-tagged": "^1.1.4",
8076
"key-path-helpers": "^0.4.0",
8177
"keybinding-resolver": "https://www.atom.io/api/packages/keybinding-resolver/versions/0.39.0/tarball",
8278
"language-c": "https://www.atom.io/api/packages/language-c/versions/0.60.19/tarball",
@@ -121,9 +117,6 @@
121117
"marked": "1.2.0",
122118
"metrics": "https://www.atom.io/api/packages/metrics/versions/1.8.1/tarball",
123119
"minimatch": "^3.0.3",
124-
"mocha": "6.2.3",
125-
"mocha-junit-reporter": "2.0.0",
126-
"mocha-multi-reporters": "^1.1.4",
127120
"mock-spawn": "^0.2.6",
128121
"normalize-package-data": "3.0.0",
129122
"notifications": "https://www.atom.io/api/packages/notifications/versions/0.71.0/tarball",

script/bootstrap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ async function bootstrap() {
4747
const runApmInstall = require('./lib/run-apm-install')
4848
runApmInstall(CONFIG.repositoryRootPath, ci)
4949

50+
// test dependencies
51+
runApmInstall(path.join(CONFIG.repositoryRootPath, 'spec'), ci);
52+
5053
await installScriptDependenciesPromise;
5154
await Thread.terminate(installScriptDependencies)
5255

spec/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "atom-tests",
3+
"description": "Atom tests",
4+
"dependencies": {
5+
"chai": "4.2.0",
6+
"jasmine-json": "~0.0",
7+
"jasmine-reporters": "1.1.0",
8+
"jasmine-tagged": "^1.1.4",
9+
"mocha": "6.2.3",
10+
"mocha-junit-reporter": "2.0.0",
11+
"mocha-multi-reporters": "^1.1.4"
12+
}
13+
}

0 commit comments

Comments
 (0)