Commit Graph

50 Commits

Author SHA1 Message Date
sdtsui b8aa529d29 [WIP] Add packages and tasks for linting scss 2017-08-14 10:03:16 +02:00
kumavis 0188e7b94d Merge branch 'master' into NewUI-flat 2017-08-08 23:30:58 -07:00
kumavis 59e83d2b80 build - factor watcify into bundler generation 2017-08-08 17:53:34 -07:00
kumavis 4a4736195f build - fix error swallowing on dev 2017-08-08 17:46:31 -07:00
sdtsui 02c2106c3b Merge branch 'master' into feat/mm-ui-5 2017-08-06 19:55:34 -07:00
sdtsui aeaf917cbb Clean up gulpfile 2017-08-06 13:44:50 -07:00
sdtsui bd9549bddc Use 4.x pattern for watching scss 2017-08-06 13:43:25 -07:00
sdtsui bc73cbdbfe Cleanup css and gulpfile post-migration 2017-08-06 12:29:26 -07:00
sdtsui 3f222854e4 Migrate from css to scss + autoprefixer 2017-08-06 12:09:17 -07:00
kumavis ecaa235b5e phishing detection - move phishing detection into contentscript and metamask controller 2017-08-02 14:26:10 -07:00
Dan Finlay 4d218ac57a Remove responsive folder from gulp 2017-07-25 17:39:40 -07:00
Dan Finlay a41e5788cf Merge branch 'master' into NewUI 2017-07-20 12:39:06 -07:00
Dan Finlay 52b92fbe40 Add first version of phishing site warning
Links to my own blacklist for now, since I added a package.json for easy importing.

We can point at the main 408H repository once this is merged:
https://github.com/409H/EtherAddressLookup/pull/24

Redirects detected phishing sites [here](https://metamask.io/phishing.html).
2017-07-12 13:09:20 -07:00
Dan Finlay e285f2cae9 Get duplicate UI template working 2017-07-03 16:16:53 -07:00
Kevin Serrano f21d425839
Simplify build variables. Remove maps from production. 2017-06-26 11:37:12 -07:00
Dan Finlay de500250c4 Fix build for eth-contract-metadata 2017-06-13 17:46:47 -07:00
Dan Finlay d8c94fca75 Add address image map to icon factory
Deriving from the new address image map repository I've added here:
https://github.com/MetaMask/ethereum-contract-icons

With this PR, images for addresses added to that repository will be shown instead of jazzicons in MetaMask.
2017-05-26 00:43:14 -07:00
kumavis 0500068327 build - fix disc task 2017-05-08 12:30:47 -07:00
kumavis 4d42cfaa25 build - make gulp return non-zero error code on bundle fail 2017-04-25 14:04:51 -07:00
Kevin Serrano 65c84ac4b2
Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
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