mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 13:33:18 +00:00
dependencies: Use one package.json structure.
The two package.json structure is no longer needed. https://www.electron.build/tutorials/two-package-structure Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
# Dependency directories
|
# Dependency directory
|
||||||
node_modules/
|
/node_modules/
|
||||||
|
|
||||||
# npm cache directory
|
# npm cache directory
|
||||||
.npm
|
.npm
|
||||||
|
|||||||
@@ -21,13 +21,11 @@ node_js:
|
|||||||
before_install:
|
before_install:
|
||||||
- ./scripts/travis-xvfb.sh
|
- ./scripts/travis-xvfb.sh
|
||||||
- npm install -g gulp
|
- npm install -g gulp
|
||||||
- (cd app && npm ci --ignore-scripts)
|
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
- app/node_modules
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run travis
|
- npm run travis
|
||||||
|
|||||||
1325
app/package-lock.json
generated
1325
app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "zulip",
|
|
||||||
"productName": "Zulip",
|
|
||||||
"version": "4.1.0-beta",
|
|
||||||
"desktopName": "zulip.desktop",
|
|
||||||
"description": "Zulip Desktop App",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"copyright": "Kandra Labs, Inc.",
|
|
||||||
"author": {
|
|
||||||
"name": "Kandra Labs, Inc.",
|
|
||||||
"email": "support@zulipchat.com"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/zulip/zulip-desktop.git"
|
|
||||||
},
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/zulip/zulip-desktop/issues"
|
|
||||||
},
|
|
||||||
"main": "main/index.js",
|
|
||||||
"keywords": [
|
|
||||||
"Zulip",
|
|
||||||
"Group Chat app",
|
|
||||||
"electron-app",
|
|
||||||
"electron",
|
|
||||||
"Desktop app",
|
|
||||||
"InstantMessaging"
|
|
||||||
],
|
|
||||||
"dependencies": {
|
|
||||||
"@electron-elements/send-feedback": "^1.0.8",
|
|
||||||
"@sentry/electron": "^1.2.1",
|
|
||||||
"adm-zip": "^0.4.14",
|
|
||||||
"auto-launch": "^5.0.5",
|
|
||||||
"backoff": "^2.5.0",
|
|
||||||
"crypto-random-string": "^3.1.0",
|
|
||||||
"dotenv": "^8.2.0",
|
|
||||||
"electron-is-dev": "^1.1.0",
|
|
||||||
"electron-log": "^4.0.7",
|
|
||||||
"electron-spellchecker": "^2.2.1",
|
|
||||||
"electron-updater": "^4.2.2",
|
|
||||||
"electron-window-state": "^5.0.3",
|
|
||||||
"escape-html": "^1.0.3",
|
|
||||||
"i18n": "^0.8.5",
|
|
||||||
"node-json-db": "^1.0.3",
|
|
||||||
"request": "^2.88.2",
|
|
||||||
"semver": "^7.1.3",
|
|
||||||
"wurl": "^2.5.4"
|
|
||||||
},
|
|
||||||
"optionalDependencies": {
|
|
||||||
"node-mac-notifier": "^1.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1543
package-lock.json
generated
1543
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@@ -50,7 +50,7 @@
|
|||||||
"**/*.node"
|
"**/*.node"
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"**/*",
|
"app/**/*",
|
||||||
"!**/node_modules/cld/deps/cld"
|
"!**/node_modules/cld/deps/cld"
|
||||||
],
|
],
|
||||||
"copyright": "©2019 Kandra Labs, Inc.",
|
"copyright": "©2019 Kandra Labs, Inc.",
|
||||||
@@ -151,6 +151,29 @@
|
|||||||
"Desktop app",
|
"Desktop app",
|
||||||
"InstantMessaging"
|
"InstantMessaging"
|
||||||
],
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"@electron-elements/send-feedback": "^1.0.8",
|
||||||
|
"@sentry/electron": "^1.2.1",
|
||||||
|
"adm-zip": "^0.4.14",
|
||||||
|
"auto-launch": "^5.0.5",
|
||||||
|
"backoff": "^2.5.0",
|
||||||
|
"crypto-random-string": "^3.1.0",
|
||||||
|
"dotenv": "^8.2.0",
|
||||||
|
"electron-is-dev": "^1.1.0",
|
||||||
|
"electron-log": "^4.0.7",
|
||||||
|
"electron-spellchecker": "^2.2.1",
|
||||||
|
"electron-updater": "^4.2.2",
|
||||||
|
"electron-window-state": "^5.0.3",
|
||||||
|
"escape-html": "^1.0.3",
|
||||||
|
"i18n": "^0.8.5",
|
||||||
|
"node-json-db": "^1.0.3",
|
||||||
|
"request": "^2.88.2",
|
||||||
|
"semver": "^7.1.3",
|
||||||
|
"wurl": "^2.5.4"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"node-mac-notifier": "^1.1.0"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/adm-zip": "^0.4.32",
|
"@types/adm-zip": "^0.4.32",
|
||||||
"@typescript-eslint/eslint-plugin": "^2.22.0",
|
"@typescript-eslint/eslint-plugin": "^2.22.0",
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
echo "Removing node_modules and app/node_modules"
|
echo "Removing node_modules"
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm -rf app/node_modules
|
|
||||||
|
|
||||||
echo "node_modules removed reinstalling npm packages"
|
echo "node_modules removed reinstalling npm packages"
|
||||||
npm i
|
npm i
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo "Removing node_modules and app/node_modules"
|
echo "Removing node_modules"
|
||||||
rmdir /s /q node_modules
|
rmdir /s /q node_modules
|
||||||
rmdir /s /q app/node_modules
|
|
||||||
|
|
||||||
echo "node_modules removed reinstalling npm packages"
|
echo "node_modules removed reinstalling npm packages"
|
||||||
npm i
|
npm i
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* Electron is more or less Chrome, you can get developer tools using `CMD+ALT+I`
|
* Electron is more or less Chrome, you can get developer tools using `CMD+ALT+I`
|
||||||
|
|
||||||
### Error : ChecksumMismatchError
|
### Error : ChecksumMismatchError
|
||||||
- Try deleteing `node_modules` && `app/node_modules` directories. Re-install dependencies using `npm install`
|
- Try deleting the `node_modules` directory and reinstalling dependencies using `npm install`
|
||||||
|
|
||||||
### Error : Module version mismatch. Expected 50, got 51
|
### Error : Module version mismatch. Expected 50, got 51
|
||||||
- Make sure you have installed [node-gyp](https://github.com/nodejs/node-gyp#installation) dependencies properly
|
- Make sure you have installed [node-gyp](https://github.com/nodejs/node-gyp#installation) dependencies properly
|
||||||
|
|||||||
@@ -17,13 +17,5 @@
|
|||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": false,
|
"noUnusedParameters": false,
|
||||||
"noImplicitReturns": true
|
"noImplicitReturns": true
|
||||||
},
|
}
|
||||||
"include":[
|
|
||||||
"app/**/*",
|
|
||||||
"typings.d.ts"
|
|
||||||
],
|
|
||||||
"exclude":[
|
|
||||||
"node_modules",
|
|
||||||
"app/node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user