1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
kumavis
2efcbd9674 gulp - fix brfs instrumentation 2017-01-10 15:33:00 -08:00
kumavis
074e3f4ab4 gulp - cleanup comments 2017-01-10 13:56:31 -08:00
kumavis
8e3661555d gulp - add disc bundle analysis task 2017-01-10 13:46:15 -08:00
kumavis
464b7d5814 gulp - clean and simplify 2017-01-10 13:08:13 -08:00
Kevin Serrano
68be524019
Take out unneeded permissions from the app. 2017-01-03 11:23:27 -08:00
Kevin Serrano
ed03b89e26
Move tos hash logic to build phase. Create dynamic global variables based on build. 2016-10-11 14:32:03 -07:00
Kevin Serrano
be0c605556 Fix boolean. 2016-09-02 14:42:20 -07:00
Kevin Serrano
2d0077d5c6 Changelog add and rename vars. 2016-09-02 14:15:00 -07:00
Kevin Serrano
b4334a72b4 Refactor for spreading. Add conditionals for livereload. 2016-09-02 14:00:36 -07:00
Kevin Serrano
c02be4fa66 Add production flag. Conditionally copy reload based on production. 2016-09-01 15:19:31 -07:00
Kevin Serrano
168b4c5bc0 Install deps. Fix chrome/firefox typo. 2016-09-01 15:01:45 -07:00
Dan Finlay
40d5b446cf Add Edge build to gulp config 2016-08-07 13:36:02 -07:00
Dan Finlay
bdd2752cc7 Fix some gulp task issues
I know, I've been fixing up the gulp scripts all week. I keep fixing one thing then breaking another.

In this commit, I fix some issues with some previous approaches.

I no longer try to do the copying to `chrome` after `firefox`, I simply stream to both during copy and build tasks, and that logic is reused during dev and build tasks.

The `copyTask` function now supports an array of `destinations`, that allows piping to multiple destinations, which is pretty cool.

The `manifest:cleanup` task that chrome requires is now just part of the `copy` task, so we don't have to remember it everywhere we copy. So obvious it's like why only now.
2016-07-28 12:59:37 -07:00
Dan Finlay
daaac17be2 Fix dev tasks for multi browser copying 2016-07-28 10:50:14 -07:00
Dan Finlay
7f00ee43ba Fix nondeterministic build
We used to be able to copy static resources while we built js, but now part of the copy task is copying firefox built files into chrome, so they need to be done in order.

This could probably be optimized a bit more, but for now it builds reliably again.
2016-07-27 16:58:00 -07:00
Dan Finlay
c759bc5871 Correct typo comment 2016-07-26 17:25:15 -07:00
Dan Finlay
0b620026c2 Fix copy task 2016-07-26 17:13:52 -07:00
Dan Finlay
de5a2bf9bc Fix chrome build 2016-07-26 16:48:48 -07:00
Dan Finlay
5276897668 Store versioned builds in builds folder 2016-07-26 15:35:48 -07:00
Dan Finlay
2368c2993d Add platform specific builds and zip tasks (#486)
* Add platform specific folders to dist folder

* Remove gulp hacks

* Add platform specific bundling

dev and dist tasks now build into platform-specific folders within the `dist` folder.

Added tasks `gulp zip` and `gulp dist`.

`zip` builds the platform-specific folders into platform-specific bundles within the `dist` folder.

`dist` builds and then zips all at once.

* Fix chrome bundle zipping

* Fix broken reference in eth warning

* Fix but where web3.eth.accounts are not available in firefox.

* Bump changelog
2016-07-26 15:15:40 -07:00
Dan Finlay
913a9e85bd Inject inpage script synchronously
Huge thanks to the Firefox team, for their help on the issue of our long-standing inpage script race condition.

http://stackoverflow.com/questions/38577656/how-can-i-make-a-firefox-add-on-contentscript-inject-and-run-a-script-before-oth

The problem is that we were injecting a `script` tag and assigning its `src` attribute, which triggers an asynchronous fetch request, and does not guarantee execution order! (That was news to me!)

Instead, I'm now assigning the `script` tag a `textContent` value of the script to inject, and it seems to fix the problem!

There is also a Firefox-only API that could solve this whole problem in an even more elegant way, so we might want to expose a code path for that solution later on:

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.exportFunction

Allows you to expose an object from one scope to another. There was even talk of creating a polyfill for it that does virtually what we do, message passing between contexts.
2016-07-25 16:38:07 -07:00
Dan Finlay
8fde8a8921 Manually linted 2016-06-21 13:56:04 -07:00
Dan Finlay
45506d6758 Got eslint running correctly 2016-06-21 12:40:09 -07:00
Dan Finlay
7b9a1197c8 Began adding auto linting 2016-06-21 12:07:13 -07:00
Dan Finlay
14916b022e Make gulp watch images folder 2016-06-14 12:43:55 -07:00
kumavis
c2c33ff6cd ui - redesign - app header + accounts selection 2016-05-10 16:52:07 -07:00
kumavis
04a61b7de9 build - post process with dereq 2016-04-20 13:22:41 -07:00
Dan Finlay
d814a45dff Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
kumavis
b3d46e02b8 build - use gulp, remove grunt 2016-03-11 15:21:43 -08:00
kumavis
f52f4d460e build - add gulp build process 2016-03-02 23:08:28 -08:00