Commit graph

14 commits

Author SHA1 Message Date
Zach Bloomquist a339f60f2c chore(tests): fix most of the broken jasmine tests 2021-11-21 20:02:23 -08:00
Ben Gotow cff437e900
Upgrade to Electron 8, improve TS usage and TS errors outside calendar [requires re- npm install] (#2284)
* Shfit away from default exports and PropTypes for better TS support

* localize strings and expand use of types in WeekView, create new EventOccurence distinct from Event

* Remove calendar wrap, use TS enum for view type + consistent prop interface

* Bump Typescript to 3.8.3 and improve query / attribute / search typings

* Re-use the Autolinker for calendar event descriptions with aggressive phone detection

* Clean up WeekView and the editing popover, lots of cruft here

* Update ScrollRegion to initialize scrollbar provided by external ref

* Expose ScrollRegion’s resizeObserver to clean up tick interval tracking

* Simply tickGenerator and move it to a helper

* Bump to Electron 8.x for Chrome 75+ CSS features

* Bump Handlebars dep to fix annoying npm audit noise

* Remove electron-remote from electron-spellchecker

* Explicitly add node-gyp, why is this necessary?

* Fix lesslint issues

* Bump eslint and let it fix 133 issues

* Satisfy remaining eslint@2020 errors by hand

* Add tsc-watch npm script and fix all TS errors outside calendar

* Configure appveyor to publish all the pdb files it gets

* Log sync exit codes and signals for easier triage on Windows

* Upgrade npm, mark that the build process supports Node 11+ not just Node 11

* Resolve more errors

* Upgrade sqlite to be a context-aware native module

* Fix: Tab key no longer navigating into contenteditable because tabIndex not inferred

* Fix: Bad print styles because Chrome now adds more CSS of it’s own when doctype is missing

* Fix: before-navigate is now called after beforeunload
2021-02-14 15:58:22 -06:00
Ben Gotow 149b389508
Replace Babel with TypeScript compiler, switch entire app to TypeScript 🎉 (#1404)
* Switch to using Typescript instead of Babel

* Switch all es6 / jsx file extensions to ts / tsx

* Convert Utils to a TS module from module.exports style module

* Move everything from module.exports to typescript exports

* Define .d.ts files for mailspring-exports and component kit… Yes it seems this is the best option :(

* Load up on those @types

* Synthesize TS types from PropTypes for standard components

* Add types to Model classes and move constructor constants to instance vars

* 9800 => 7700 TS errors

* 7700 => 5600 TS errors

* 5600 => 5330 TS errors

* 5330 => 4866 TS errors

* 4866 => 4426 TS errors

* 4426 => 2411 TS errors

* 2411 > 1598 TS errors

* 1598 > 769 TS errors

* 769 > 129 TS errors

* 129 > 22 TS errors

* Fix runtime errors

* More runtime error fixes

* Remove support for custom .es6 file extension

* Remove a few odd remaining references to Nylas

* Don’t ship Typescript support in the compiled app for now

* Fix issues in compiled app - module resolution in TS is case sensitive?

* README updates

* Fix a few more TS errors

* Make “No Signature” option clickable + selectable

* Remove flicker when saving file and reloading keymaps

* Fix mail rule item height in preferences

* Fix missing spacing in thread sharing popover

* Fix scrollbar ticks being nested incorrectly

* Add Japanese as a manually reviewed language

* Prevent the thread list from “sticking”

* Re-use Sheet when switching root tabs, prevent sidebar from resetting

* Ensure specs run

* Update package configuration to avoid shpping types

* Turn eslint back on - we will opt-in to the TS rules one by one
2019-03-04 11:03:12 -08:00
Ben Gotow 22357dff60 Upgrade prettier to 1.10, fix linter issues 2018-01-24 14:13:08 -08:00
Ben Gotow e69c742590 Remove all remaining Coffeescript / CJSX 🎉 2018-01-23 17:35:09 -08:00
Ben Gotow 97e36cb1d9 Fix remaining lint errors, make travis run tests and linters 2017-09-27 11:08:07 -07:00
Ben Gotow 941cb45cb6 Strip confidentiality notices that break quoted text detection 2017-09-26 17:21:23 -07:00
Ben Gotow 9fcca0ea0b Clean up quoted text processing, remove dead code 2017-09-26 16:54:14 -07:00
Ben Gotow b6d962843e Rename nylas-component-kit, nylas-exports, nylas-store, nylas-observables 2017-09-26 11:42:18 -07:00
Ben Gotow 0f54aa11b5 Adopt prettier , upgrade ESLint 2017-09-26 11:33:08 -07:00
Ben Gotow 9347ef25f7 Broaden search for header blocks, trim trailing <hr> 2017-09-25 16:56:47 -07:00
Ben Gotow caf3021239 Fix quoted text specs to reflect removal of tail whitespace 2017-09-25 16:56:47 -07:00
Ben Gotow 6679acbbda Fix / re-enable more specs 2017-08-26 15:13:34 -07:00
Ben Gotow 7f3731bc10 Clean up project directory structure, removing legacy packages folder 2017-08-10 19:24:10 -07:00