mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
1157fdc450
Summary: This diff removes significant cruft from N1's compilation and build tooling: - Electron-Packager replaces most of the code in build/tasks/* used to copy things, bundle things, download electron, etc. - script/bootstrap has been replaced with a much simpler script that does not use APM, does not download Electron (we just use electron as an NPM dep) and does not manully compile sqlite. It requires NPMv3, but I think that's safe. - babel and eslint are now devDependencies of the main project. The main project also supports optionalDependencies now. - npm test and npm start replace ./N1.sh - APM is still around, and is only put into N1 so it can install plugins at runtime. It should be removed as soon as we notify package maintainers and have them provide zips. - N1 no longer has it's own compile-cache or babel/typescript/coffeescript compilers. It delegates to electron-compile and electron-compilers. Both of these packages had to be forked and modified slightly, but I'm hopeful the modifications will make it back in to the projects and you can still consult their documentation for more info. + In the near future, I think we should stop shipping electron-compilers with N1. This would mean that all plugins would need to be compiled on pre-publish, just like NPM packages, and would complicate the local development story a bit, but would make the app smaller. electron-compile is not supposed to compile at runtime in the prod app, just pull from the compile cache. - I've re-organized Grunt according to Grunt best practices, where each tasks/* file specifies it's own config and imports grunt tasks. - Unfortunately, I was not able to use any open source projects for the deb and rpm builds, because we have things like postinst hooks and start menu items which are not supported by the electron installer-generators. WIP Turn off all LESS compilation, because themes. Doh. Use Grunt for new build process too, just remove tasks More changes Add babel-eslint Remove unused react-devtools WIP Add name Ignore nonexistent Switch to more modern approach to config for grunt Move zipping to mac installer task Restructure publish task so it aggregates first, can log useful info if publishing is disabled Fix build dirs Fix win installer Fix linux installer Fix linux installer Try making linux A few more Updates Upadtes fixes fixes Get rid of non-meaningful variables Resolve assets path Insert nylas.sh Clean up args more Actually use description Fix display name ugh More tweaks Expliclty write /usr/bin/nylas Improve vars Use old nylas.sh Reinstate APM to better scope this diff Test Plan: Test on Mac, Windows, Linux Reviewers: evan, jackie, juan Reviewed By: jackie, juan Differential Revision: https://phab.nylas.com/D3411
105 lines
2.9 KiB
JSON
105 lines
2.9 KiB
JSON
{
|
|
"name": "nylas",
|
|
"productName": "Nylas N1",
|
|
"version": "0.4.204",
|
|
"description": "The best email app for people and teams at work",
|
|
"license": "GPL-3.0",
|
|
"main": "./src/browser/main.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/nylas/N1.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/nylas/N1/issues"
|
|
},
|
|
"electronVersion": "1.4.5",
|
|
"dependencies": {
|
|
"async": "^0.9",
|
|
"babel-core": "6.8.0",
|
|
"babel-preset-electron": "^0.37.8",
|
|
"babel-preset-react": "^6.16.0",
|
|
"babel-regenerator-runtime": "6.5.0",
|
|
"better-sqlite3": "bengotow/better-sqlite3#a888061ad334c76d2db4c06554c90785cc6e7cce",
|
|
"bluebird": "^2.9",
|
|
"chromium-net-errors": "1.0.3",
|
|
"chrono-node": "^1.1.2",
|
|
"classnames": "1.2.1",
|
|
"coffee-react": "^5.0.0",
|
|
"coffee-script": "1.10.0",
|
|
"coffeestack": "^1.1",
|
|
"color": "^0.7.3",
|
|
"electron": "1.4.5",
|
|
"electron-spellchecker": "0.2.15",
|
|
"emissary": "^1.3.1",
|
|
"emoji-data": "^0.2.0",
|
|
"enzyme": "^2.2.0",
|
|
"event-kit": "^1.0.2",
|
|
"fs-plus": "^2.3.2",
|
|
"guid": "0.0.10",
|
|
"immutable": "3.7.5",
|
|
"jasmine-json": "~0.0",
|
|
"jasmine-react-helpers": "^0.2",
|
|
"jasmine-tagged": "^1.1.2",
|
|
"juice": "^1.4",
|
|
"keytar": "3.0.0",
|
|
"less-cache": "0.21",
|
|
"lru-cache": "^4.0.1",
|
|
"marked": "^0.3",
|
|
"mkdirp": "^0.5",
|
|
"moment": "2.12.0",
|
|
"moment-round": "^1.0.1",
|
|
"moment-timezone": "0.5.4",
|
|
"mousetrap": "^1.5.3",
|
|
"nock": "^2",
|
|
"node-uuid": "^1.4",
|
|
"nslog": "^3",
|
|
"optimist": "0.4.0",
|
|
"pathwatcher": "~6.2",
|
|
"pick-react-known-prop": "0.x.x",
|
|
"promise-queue": "2.1.1",
|
|
"property-accessors": "^1",
|
|
"proxyquire": "1.3.1",
|
|
"q": "^1.0.1",
|
|
"raven": "0.7.2",
|
|
"react": "^15.3.2",
|
|
"react-addons-css-transition-group": "^15.3.0",
|
|
"react-addons-perf": "^15.3.0",
|
|
"react-addons-test-utils": "^15.3.0",
|
|
"react-dom": "^15.3.0",
|
|
"reflux": "0.1.13",
|
|
"request": "^2.53",
|
|
"request-progress": "^0.3",
|
|
"rimraf": "2.5.2",
|
|
"runas": "^3.1",
|
|
"rx-lite": "^4.0.7",
|
|
"rx-lite-testing": "^4.0.7",
|
|
"sanitize-html": "1.9.0",
|
|
"season": "^5.1",
|
|
"semver": "^4.2",
|
|
"source-map-support": "^0.3.2",
|
|
"temp": "^0.8",
|
|
"underscore": "^1.8",
|
|
"underscore.string": "^3.0",
|
|
"windows-shortcuts": "emorikawa/windows-shortcuts#b0a0fc7"
|
|
},
|
|
"devDependencies": {
|
|
"flow-bin": "0.33.0",
|
|
"babel-eslint": "6.0.4",
|
|
"eslint": "3.8.0",
|
|
"eslint-config-airbnb": "12.0.0",
|
|
"eslint-plugin-import": "1.16.0",
|
|
"eslint-plugin-jsx-a11y": "2.2.3",
|
|
"eslint-plugin-react": "6.4.1"
|
|
},
|
|
"optionalDependencies": {
|
|
"node-mac-notifier": "0.0.13"
|
|
},
|
|
"packageDependencies": {},
|
|
"scripts": {
|
|
"test": "electron . --test --enable-logging",
|
|
"start": "electron . --dev --enable-logging",
|
|
"lint": "script/grunt lint",
|
|
"build": "script/grunt build",
|
|
"flow": "flow; test $? -eq 0 -o $? -eq 2"
|
|
}
|
|
}
|