Skip to content

Commit

Permalink
reduced bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jun 7, 2019
1 parent 45f6e59 commit 596d75a
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- yarn run build:typings
- yarn run build
- scripts/prepackage-plugins.js
- DEBUG=electron-builder scripts/build-linux.js
- travis_wait scripts/build-linux.js

- stage: 'Build'
os: osx
Expand All @@ -35,7 +35,7 @@ jobs:
- yarn run build:typings
- yarn run build
- scripts/prepackage-plugins.js
- DEBUG=electron-builder scripts/build-macos.js
- travis_wait scripts/build-macos.js

- stage: 'Docs'
os: linux
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}
},
"scripts": {
"build": "webpack --color --config app/webpack.main.config.js && webpack --color --config app/webpack.config.js && webpack --color --config terminus-core/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-terminal/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-plugin-manager/webpack.config.js && webpack --color --config terminus-community-color-schemes/webpack.config.js && webpack --color --config terminus-ssh/webpack.config.js",
"build": "webpack --color --config app/webpack.main.config.js && webpack --color --config app/webpack.config.js && webpack --color --config terminus-core/webpack.config.js && webpack --color --config terminus-settings/webpack.config.js && webpack --color --config terminus-terminal/webpack.config.js && webpack --color --config terminus-plugin-manager/webpack.config.js && webpack --color --config terminus-community-color-schemes/webpack.config.js && webpack --color --config terminus-ssh/webpack.config.js",
"build:typings": "tsc --project terminus-core/tsconfig.typings.json && tsc --project terminus-settings/tsconfig.typings.json && tsc --project terminus-terminal/tsconfig.typings.json && tsc --project terminus-plugin-manager/tsconfig.typings.json && tsc --project terminus-ssh/tsconfig.typings.json",
"watch": "cross-env TERMINUS_DEV=1 webpack --progress --color --watch",
"start": "cross-env TERMINUS_DEV=1 electron app --debug",
Expand Down
3 changes: 1 addition & 2 deletions terminus-community-color-schemes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
"devDependencies": {
"@types/node": "12.0.7",
"@types/webpack-env": "^1.13.0"
},
"false": {}
}
}
10 changes: 4 additions & 6 deletions terminus-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
"axios": "^0.19.0",
"bootstrap": "^4.1.3",
"core-js": "^3.1.2",
"deepmerge": "^3.2.0",
"electron-updater": "^4.0.6",
"js-yaml": "^3.9.0",
"mixpanel": "^0.10.2",
"ng2-dnd": "^5.0.2",
"ngx-perfect-scrollbar": "^6.0.0",
"shell-escape": "^0.2.0",
"uuid": "^3.3.2"
"uuid": "^3.3.2",
"winston": "^3.2.1"
},
"optionalDependencies": {
"windows-native-registry": "^1.0.14"
Expand All @@ -43,10 +46,5 @@
"@angular/platform-browser-dynamic": "4.0.1",
"rxjs": "5.3.0",
"zone.js": "0.8.4"
},
"dependencies": {
"deepmerge": "^3.2.0",
"js-yaml": "^3.9.0",
"winston": "^3.2.1"
}
}
4 changes: 0 additions & 4 deletions terminus-core/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ module.exports = {
'fs',
'os',
'path',
'deepmerge',
'untildify',
'winston',
'js-yaml',
'windows-native-registry',
/^rxjs/,
/^@angular/,
Expand Down
9 changes: 3 additions & 6 deletions terminus-plugin-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"@types/node": "12.0.7",
"@types/semver": "^6.0.0",
"@types/webpack-env": "1.13.9",
"axios": "^0.19.0",
"css-loader": "^0.28.0",
"mz": "^2.6.0",
"ngx-pipes": "^1.6.1",
"semver": "^6.1.0"
},
Expand All @@ -34,10 +36,5 @@
"rxjs": "5.3.0",
"terminus-core": "*",
"terminus-settings": "*"
},
"dependencies": {
"axios": "^0.19.0",
"mz": "^2.6.0"
},
"false": {}
}
}
3 changes: 1 addition & 2 deletions terminus-plugin-manager/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ module.exports = {
},
externals: [
'fs',
'net',
'npm',
'path',
'mz/fs',
'mz/child_process',
/^rxjs/,
/^@angular/,
/^@ng-bootstrap/,
Expand Down
8 changes: 4 additions & 4 deletions terminus-ssh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"devDependencies": {
"@types/ssh2": "^0.5.35",
"@types/webpack-env": "^1.13.0",
"ngx-toastr": "^8.0.0"
"ngx-toastr": "^8.0.0",
"ssh2": "^0.8.2",
"ssh2-streams": "^0.4.2"
},
"peerDependencies": {
"@angular/common": "^4.1.3",
Expand All @@ -35,8 +37,6 @@
"windows-process-tree": "^0.2.3"
},
"dependencies": {
"keytar": "^4.7.0",
"ssh2": "^0.8.2",
"ssh2-streams": "^0.4.2"
"keytar": "^4.7.0"
}
}
2 changes: 0 additions & 2 deletions terminus-ssh/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ module.exports = {
},
externals: [
'fs',
'node-ssh',
'ssh2-streams',
'keytar',
'path',
'ngx-toastr',
Expand Down
10 changes: 5 additions & 5 deletions terminus-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"dataurl": "0.1.0",
"deep-equal": "1.0.1",
"file-loader": "^0.11.2",
"hterm-umdjs": "1.4.1",
"mz": "^2.6.0",
"ps-node": "^0.1.6",
"runes": "^0.4.2",
"slug": "^1.1.0",
"uuid": "^3.3.2",
"xterm": "https://registry.npmjs.org/@terminus-term/xterm/-/xterm-3.14.1.tgz",
Expand All @@ -42,11 +46,7 @@
},
"dependencies": {
"fontmanager-redux": "0.3.2",
"hterm-umdjs": "1.4.1",
"mz": "^2.6.0",
"node-pty": "^0.9.0-beta9",
"ps-node": "^0.1.6",
"runes": "^0.4.2"
"node-pty": "^0.9.0-beta9"
},
"optionalDependencies": {
"@terminus-term/windows-process-tree": "^0.2.4",
Expand Down
3 changes: 1 addition & 2 deletions terminus-terminal/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ module.exports = {
]
},
externals: [
'child_process',
'electron',
'fontmanager-redux',
'fs',
'path',
'macos-native-processlist',
'windows-native-registry',
'mz/fs',
'mz/child_process',
'node-pty',
'@terminus-term/windows-process-tree',
'os',
Expand Down

0 comments on commit 596d75a

Please sign in to comment.