1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
Commit Graph

141 Commits

Author SHA1 Message Date
kumavis
7b9b890aa9 build - fix scss + js reload 2018-03-29 22:19:15 -07:00
kumavis
b2d0e9871c build - fix copy devMode 2018-03-29 21:53:38 -07:00
kumavis
4606a23c3f build - refactor scss compilation into single config 2018-03-29 21:28:35 -07:00
kumavis
77d4a9a2bb build - dev - fix js build order 2018-03-29 17:37:49 -07:00
kumavis
7067f63627 build - dev - run js tasks in parallel and set watch flag 2018-03-29 17:34:30 -07:00
kumavis
86c7c6746d build - refactor copy and copy:watch (renamed to copy:dev) 2018-03-28 23:11:07 -07:00
kumavis
253abd60fc build - extension - move js files to toplevel 2018-03-28 21:29:57 -07:00
kumavis
b88119c238 build - mascara - copy proxy html 2018-03-28 20:54:59 -07:00
kumavis
18acdfe6b3 build - refactor js build process 2018-03-28 20:41:56 -07:00
kumavis
e5c6c93c29 build - fix mascara sourcemaps dest 2018-03-28 20:13:47 -07:00
kumavis
909cbca7a6 build - remove copy debug 2018-03-28 19:59:24 -07:00
kumavis
91e8ea205e build - remove deprecated deps task 2018-03-28 19:58:06 -07:00
kumavis
98f2400649 build - refactor copy tasks 2018-03-28 19:56:44 -07:00
kumavis
4f915cf2d8 build - refactor build task generators + add mascara to standard build phase 2018-03-28 14:07:32 -07:00
kumavis
848e0401e9 build - fix sourcemaps for dev 2018-03-23 19:01:32 -07:00
kumavis
6219a7da4b build - always generate sourcemaps 2018-03-23 18:38:27 -07:00
kumavis
985e376911 build - for build, write sourcemaps to dist/sourcemaps 2018-03-23 15:52:53 -07:00
kumavis
154f384fe4 build - always create sourcemaps 2018-03-23 15:49:34 -07:00
Thomas Huang
6a428bbef7
Revert "Issue 3505 | Transpile to ES5" 2018-03-21 12:22:15 -07:00
Ryan Rowland
faa2849082 Issue 3505 | Transpile to ES5 2018-03-19 23:11:48 -07:00
Dan Finlay
81fa0742f7 Fix inpage provider name regression
Fixes #3372 by not minifying the name of our inpage provider, which some
people were using to identify MetaMask (not our preferred, supported
method of web3.currentProvider.isMetaMask).
2018-03-02 10:32:53 -08:00
Dan
d8896a8c31 Merge branch 'master' into uat 2018-02-07 16:32:47 -03:30
Dan Finlay
678bf561ce Remove deps from build process
Was running out of stdout memory, preventing me from building.
2018-02-01 12:26:17 -08:00
Chi Kei Chan
77c545336b Merge branch 'uat' into newmaster 2018-01-19 15:29:36 -08:00
kumavis
bb853c6b1c lint - ignore vendor js 2018-01-17 15:45:36 -08:00
kumavis
0e52684acd lint - ignore vendor js 2018-01-17 15:35:47 -08:00
Alexander Tseung
81f86cfab6 Merge branch 'uat' into uat-master-011618 2018-01-16 18:17:28 -08:00
Dan J Miller
77eb7b2db6 [NewUI-flat] Fix gulp build (#2975)
* Only run uglify when building for prod; set environment when building for prod; use gulp-uglify-es.

* Revert change of dist script.
2018-01-15 19:00:07 -08:00
Dan J Miller
41057a76c5 [NewUI] Build mascara with uglification and gzipping. (#2735)
* Adds uglification and gzipping.

* Build mascara with uglification and gzipping.

* Remove gzipping from extension build.
2018-01-11 18:15:22 -08:00
kumavis
27ace69a7f build - add 'deps' step that records output of 'npm ls' into build 2018-01-10 13:54:29 -08:00
Dan
ec6c3c33bd Merge branch 'master' into NewUI-flat-merge-with-master 2017-12-06 21:11:52 -08:00
Dan Finlay
4a42c816c2 Ensure Opera build excludes chromereload file
Fixes #2504
2017-11-21 15:19:10 -08:00
Chi Kei Chan
301c737bbc Merge branch 'master' into NewUI-flat 2017-10-24 16:56:49 -07:00
Daijiro Wachi
c1eb8f16dc Add lint:fix command to gulp and npm-scripts 2017-10-21 21:04:24 +02:00
Chi Kei Chan
c8c773d641 Merge branch 'NewUI-flat' into merge 2017-10-18 22:58:46 -07:00
Dan Finlay
d71f14cb67 Increase build readability 2017-10-12 14:03:42 -04:00
Dan Finlay
d0d082d70c Merge branch 'master' into i1340-SynchronousInjection 2017-10-12 13:25:19 -04:00
frankiebee
2dba03ffc5 dont lint jquery 2017-10-04 22:30:28 -07:00
frankiebee
245ab70881 add /mascara to linting 2017-10-04 22:10:30 -07:00
Dan Finlay
1cba6543a4 Begin implementing sync injection idea 2017-10-04 15:35:04 -07:00
Dan
5452a26b36 Fixes lint errors and adds stylelint-config-standard to package.json 2017-08-31 04:16:07 -07:00
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