Commit Graph

58 Commits

Author SHA1 Message Date
David Wilson
0c364d0438 Don't change Atom app name on dev channel 2018-06-29 16:31:12 -07:00
David Wilson
9669a9bbfb Update app title and file paths to use channel name 2018-06-28 12:52:39 -07:00
Thomas Johansen
5072e4b54f Remove decompress-zip from the snapshot blacklist 2018-06-06 23:30:20 +02:00
Thomas Johansen
fcb8ca7441 Add yauzl to the snapshot blacklist 2018-06-06 22:29:55 +02:00
Antonio Scandurra
e1e93c08b8 Exclude modules required from xregexp-all.js
This file is already "browserified", meaning that it should be fine to
embed it verbatim inside the snapshot. The errors observed in e.g.
https://circleci.com/gh/atom/atom/7139 were in fact caused by trying to
process xregexp's already "browserified" modules again using
electron-link.
2018-03-13 10:06:19 +01:00
Antonio Scandurra
19087d0c67 ⬆️ electron-link 2018-03-13 10:02:35 +01:00
Max Brunsfeld
74ea91ab2e Fix snapshot blacklist for request module 2018-02-22 13:26:56 -08:00
Michelle Tilley
233e519007 Add winreg to snapshot ignore list 2018-01-09 11:52:18 -08:00
Max Brunsfeld
2fa3b65364 Merge branch 'master' into mb-tree-sitter-parsers 2018-01-03 15:20:10 -08:00
Nathan Sobo
aeb8db2e14 Don't snapshot lodash.isequal because it builds an ArrayBuffer on eval
This won't work until v8 6.2.
2017-12-21 10:10:12 -07:00
Nathan Sobo
b11b0b9f9f Disable inline caches during snapshot generation to work around crash 2017-12-21 09:59:59 -07:00
Max Brunsfeld
28edfb5b0a Exclude tree-sitter's main JS file from the startup snapshot 2017-11-30 09:31:08 -08:00
Wliu
9fcc6a9bce Use endsWith to match modules to exclude from the snapshot 2017-10-20 01:27:15 +02:00
Max Brunsfeld
07614b3b38 Update git-utils main path in startup snapshot blacklist 2017-09-27 12:36:51 -07:00
Max Brunsfeld
07c3c6ea2d Use the Atom Beta executable to verify startup snapshots when building Beta 2017-09-11 09:47:02 -07:00
Antonio Scandurra
8c8d6f7ce4 🔥 Delete unused require 2017-09-06 11:28:19 +02:00
Antonio Scandurra
2050f58a0e Don't override process.env variables 2017-09-06 11:08:58 +02:00
Antonio Scandurra
15d988d441 Use the Node version bundled in Electron to verify snapshot script
Previously, we used to verify the snapshot script by running it in a
new, empty context (similar to the one that `mksnapshot` creates when
generating the startup blob).

However, this context was being created using the Node version that
`script/build` was executed with. Such version may not match the Node
version shipped with Electron, and could thus cause the build script to
report "false negatives" when verifying the snapshot script. For
instance, running `script/build` with Node 4 would cause it to throw an
error when encountering keywords like `async`/`await`, even if they're
100% supported in Electron 1.6.9.

With this commit we are changing the snapshot verification code to use
the Node version bundled in Electron in order to avoid the
aforementioned mismatches.
2017-09-06 11:02:54 +02:00
Ash Wilson
d920d20c2f :burn: diagnostic code 2017-08-08 12:42:01 -04:00
Ash Wilson
1f56713702 Un-exclude nsfw 2017-08-02 11:50:07 -04:00
Ash Wilson
318708bb42 wip 2017-08-02 09:50:57 -04:00
Wliu
16be073c91 Merge branch 'master' into wl-build-on-node-7 2017-05-30 15:40:02 -04:00
Antonio Scandurra
cdb399295b Don't snapshot the iconv-lite module
When deciding which methods to export, `iconv-lite` verifies the
availability of some Node features, which is clearly an unsupported
behavior when executing it via `mksnapshot`.

In this case we were not getting any exception at compile-time, but we
noticed some methods were missing from iconv-lite's API. With this
commit we are excluding this module from the snapshot, thus making all
of its methods available again.
2017-05-22 09:16:56 +02:00
Wliu
7c2510eb9c Merge branch 'master' into wl-build-on-node-7 2017-05-11 12:06:26 -04:00
Michelle Tilley
1ec72d0362 Handle more htmlparser2 snapshot exceptions 2017-05-10 06:33:33 +02:00
Michelle Tilley
ebc824abd1 Update snapshot path exclusions 2017-05-08 07:55:56 +02:00
Max Brunsfeld
0f3e65a9d6 ⬆️ first-mate and oniguruma again
This time with proper startup snapshotting.
2017-04-19 17:39:06 -07:00
Wliu
61fe77e918 Merge branch 'master' into wl-build-on-node-7 2017-03-30 18:46:22 -04:00
Antonio Scandurra
500cefb8d5 Don't snapshot minimatch and fix package transpilation registry on win32
This module uses Node's `path` for determinining which path separator to
use on the current platform. On browsers (and every other environment
that does not support `require`, such as v8 snapshots) it falls back to
always using a forward slash.

As a result, `PackageTranspilationRegistry` (and potentially other
bundled packages that depend on `minimatch`) couldn't match glob
expressions against any given path on Windows, thus causing the custom
transpiler code to not work properly.
2017-03-30 10:32:44 +02:00
Wliu
d202c1abd3 Merge branch 'master' into wl-build-on-node-7 2017-03-24 00:27:57 -04:00
Wliu
25dcf2ed81 👕 2017-03-22 00:22:41 -04:00
Antonio Scandurra
95cf200a7c Merge branch 'as-snapshot-atom-environment' into as-ns-optimize-stylesheets-loading
# Conflicts:
#	script/tdd
2017-03-20 10:06:57 +01:00
Antonio Scandurra
31692f6e6c Merge branch 'master' into as-snapshot-atom-environment 2017-03-20 09:58:15 +01:00
Antonio Scandurra
6722450b7e Merge pull request #14021 from atom/as-fix-snapshot-stack-traces
Use the generated snapshot source map in `source-map-support`
2017-03-17 18:05:42 +01:00
Antonio Scandurra
2f9a9ed657 Merge branch 'master' into as-snapshot-atom-environment 2017-03-17 15:25:10 +01:00
Antonio Scandurra
54a813eda9 Exclude graceful-fs from snapshot 2017-03-17 13:31:21 +01:00
Antonio Scandurra
ccbb276bf5 Bake source maps into the snapshot 2017-03-17 13:25:00 +01:00
Antonio Scandurra
cbe60bd53d Use the generated snapshot source map in source-map-support
This will report the correct file and line numbers on stack traces
instead of always showing `<embedded>:absoluteLineNumber`. As a result,
it will also fix the `notifications` package, which will be able again
to identify which package threw an exception and to create an issue on
its repository.
2017-03-17 12:28:22 +01:00
Antonio Scandurra
c61df72548 Snapshot config, keymaps, tooltips, commands, grammars and styles 2017-03-10 16:48:00 +01:00
Antonio Scandurra
4c6805bf76 Store style sheet sources as auxiliary data in the snapshot 2017-03-09 14:23:58 +01:00
Antonio Scandurra
21de78ce38 Snapshot config, keymaps, tooltips, commands, grammars and styles 2017-03-07 18:30:38 +01:00
Antonio Scandurra
f0e7290b8c Delete unnecessarily excluded modules from snapshot generator 2017-03-06 14:36:33 +01:00
Antonio Scandurra
f05e882911 Copy snapshot in the appropriate location on Linux and Windows 2017-03-06 14:21:13 +01:00
Antonio Scandurra
f2ea38afba Add electron-mksnapshot and use the downloaded bin to generate snapshots 2017-03-06 14:12:18 +01:00
Antonio Scandurra
7fbe68e12e Exclude less from snapshot 2017-03-06 14:11:47 +01:00
Antonio Scandurra
a9ada35354 Snapshot NativeCompileCache 2017-03-02 09:29:07 +01:00
Antonio Scandurra
70c82b1ffa Snapshot pathwatcher and fs-plus 2017-03-02 08:26:21 +01:00
Antonio Scandurra
9aae33a0f1 Use a new version of clear-cut that can be snapshotted 2017-03-01 08:58:58 +01:00
Antonio Scandurra
adb0e39166 WIP 2017-02-28 15:44:02 +01:00
Antonio Scandurra
9b8c7973d7 WIP 2017-02-28 09:34:55 +01:00