Mario Sanchez Prada
478bf2f59f
Fix npm run init to work when using NPM >= 8
...
From NPM >=6 and as explained in RFC 21[1], npm is removing the
npm_config_* and npm_package_* environment variables from the
context of lifecycle scripts and so, while some of them such
as the npm_package_config_* ones will still work on NPM 7, we
need to adapt to this change or it won't be able to setup the
repository from NPM 8 on.
This change does a small change to make sure that we work on
every possible situation, relying on those environment variables
if still using NPM <= 7, or simply reading the package.json file
as a dictionary when using NPM >= 8.
[1] https://github.com/npm/rfcs/blob/main/implemented/0021-reduce-lifecycle-script-environment.md
Resolves https://github.com/brave/brave-browser/issues/19993
2021-12-08 19:56:03 +01:00
Pete Miller
f971a33416
Support npm >=7 package.json -> environment variable conversion
2021-11-29 14:47:22 -08:00
Mihai PLESA
704edea7db
reverted project compatible with npm 7
2021-11-26 10:49:44 -05:00
Mihai PLESA
ac49d08e3d
made project compatible with npm 7
2021-11-24 11:35:50 -05:00
bridiver
dd19e91333
move commands to brave-core
2020-07-27 19:26:09 -07:00
Andreas Solleder
a27a259c93
fix typo
...
Signed-off-by: Andreas Solleder <sollederandreas@gmail.com>
2020-07-03 17:39:25 +02:00
Pete Miller
72fe86dc5d
Sync gets post-sync git ref logging
...
Helps diagnose some infrequent CI issues
2020-06-24 11:41:47 -07:00
bridiver
c4670db8e0
let util.run
handle logging
2020-06-16 10:41:46 -07:00
Simon Hong
480ebdabf0
Replace components image resources
2020-06-04 08:18:28 +09:00
bridiver
2edceb1449
don't use -D because users could lose their local git branches
2020-06-03 14:35:31 -07:00
bridiver
9b1d893191
fix logging
2020-06-02 13:56:07 -07:00
bridiver
e89b2dd04c
fix chromiumArgs
2020-06-02 13:16:15 -07:00
bridiver
4142815046
don't worry about updating chromium after brave-core update yet because we haven't moved the chromium version to brave-core yet
2020-06-02 13:16:15 -07:00
bridiver
ae9e705e16
don't make extra fetches
2020-06-02 13:16:15 -07:00
bridiver
2bc1a89e14
default to continueOnFail === false and handle failures for continueOnFail === true
2020-06-02 13:16:15 -07:00
Pete Miller
9daafba7e9
Sync - logging organization
2020-06-02 13:16:15 -07:00
Pete Miller
3fccff06a7
Sync - fetch chromium before checking for updates, re-run gclient sync directly when neccessary
2020-06-02 13:16:15 -07:00
bridiver
d5e963c4a0
always use --force
for an explicit force reset
2020-06-02 13:16:15 -07:00
bridiver
4593297268
handle git checkout in sync.js
2020-06-02 13:16:15 -07:00
bridiver
289cb8c3a5
don't try to create a new branch because this might be a tag that we don't have locally yet
2020-06-02 13:16:15 -07:00
bridiver
277fe18dab
if we're changing branches, make sure we're on the right branch first
2020-06-02 13:16:15 -07:00
bridiver
e010b9d146
add cleanup option for init
2020-06-02 13:16:15 -07:00
bridiver
a1938b479a
actually return a result from shouldUpdateChromium
2020-06-02 13:16:15 -07:00
bridiver
f5cacf872f
use the branch name if possible so we can update to origin
2020-06-02 13:16:15 -07:00
bridiver
29d8e7213a
use the rev hash because branch name doesn't always update correctly
2020-06-02 13:16:15 -07:00
bridiver
ae7e481d20
trim braveCoreRef
2020-06-02 13:16:15 -07:00
bridiver
d4681aef20
allow for resetting braveCore without forcing a chromium reset
2020-06-02 13:16:15 -07:00
bridiver
9e08b6a144
manually checkout brave-core on init so we can move most of what is currently in brave-browser into brave-core
2020-06-02 13:16:15 -07:00
bridiver
1596149869
don't create a new var
2020-06-02 13:16:15 -07:00
bridiver
df1412156a
use current brave-core branch for sync and package.json branch for init
2020-06-02 13:16:15 -07:00
bridiver
f4b30aa432
only update chromium if the version has changed
2020-06-02 13:16:14 -07:00
bridiver
fa6ddbe755
don't copy ntp resources
...
partial fix for https://github.com/brave/brave-browser/issues/9063
2020-05-28 12:57:26 -07:00
mkarolin
9b98c4402c
Ensure dest dir exists before copying redirect-cc.py
2020-05-26 09:51:48 -04:00
mkarolin
c73d2649f1
On Windows copy redirect-cc.py to the output dir.
...
It will be executed from brave/script/redirect-cc.cmd and is copied to
shorten the command line.
2020-05-26 09:51:47 -04:00
samartnik
8e3e38506c
[Android] Fix for dark mode colors
2020-05-26 09:49:57 -04:00
Brian Johnson
24d97dd85d
Merge pull request #9340 from brave/npm-run-gclient
...
Npm run gclient
2020-04-23 11:11:50 -07:00
bridiver
8ba0a4319b
restore accidentally removed --with_branch_heads
2020-04-21 17:53:19 -07:00
Brian Johnson
a9de8b9f26
Merge branch 'master' into npm-run-gclient
2020-04-21 14:35:06 -07:00
bridiver
5f09447116
use correct brave-core branch name
2020-04-20 17:19:47 -07:00
bridiver
1ff1c37ddd
add wrapper for gclient direct access and split out apply patches
2020-04-20 14:37:30 -07:00
bridiver
2914adee84
use gclient to set branches
2020-04-20 11:23:51 -07:00
bridiver
eb913b11a1
don't change the brave-core remote
2020-04-13 08:15:02 -07:00
bridiver
741022966a
remove extra fetch that was slowing things down
2020-04-08 13:58:11 -07:00
Brian Johnson
0ad6032a12
Merge pull request #9080 from brave/revert-8994-android_resources
...
Revert "don't copy java/res"
2020-04-08 06:21:33 -07:00
Linh
3e40a4ae10
Merge pull request #9017 from brave/allow-src-repo-change
...
Allow src repo change
2020-04-08 14:54:50 +09:00
Simon Hong
b62abc5574
Revert "don't copy java/res"
2020-04-08 13:00:50 +09:00
bridiver
9fb3bfcd8c
only delete/add remote when it actually changes
2020-04-07 11:45:21 -07:00
bridiver
e5f4a3f6ec
fetch remote when switching repos
2020-04-07 11:45:01 -07:00
bridiver
c1d9c18894
add braveCoreDir exists check
2020-04-06 10:12:02 -07:00
bridiver
e75616d2fb
force updating of remote origin
2020-04-03 16:34:47 -07:00