24 Commits
Author SHA1 Message Date
Nikolay Vitkov 83867d6096 [cleanup] Remove unused file
We keep the sha in the DEPS file now.

Bug: none
Change-Id: I040a5cef75c1bf62af36378de6091b12a9bc77dc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6343134
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-03-11 04:07:49 -07:00
Nikolay Vitkov effa60d93f [eslint][vscode] Fixes issue with EsLint plugin not working
Bug: none
Change-Id: I1be301aeac1ba08708bd03869fa0bf5b2ff6272f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6190538
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-23 03:05:34 -08:00
Gavin Mak 6268c8472e Migrate third_party/node/<platform> to GCS first class DEPS
This is needed to support presubmit checks (which rely on the node
GCS DEPS) on cog.

Also create a new directory at third_party/node/mac_arm64 for
node-darwin-arm64 since it conflicts with the path at
third_party/node/mac for node-darwin-x64.

Bug: b/333744051
Change-Id: I3b2872305b7ddc9606cff715bbd6cbcfd692b014
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5756663
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2024-08-05 16:35:05 +00:00
Eric Leese 460be15667 Add support for running tests in a full checkout.
Allows the npm run test script to work when running from the
third_party/devtools-frontend/src folder of a full chromium
checkout. In this case it will trigger a chrome build and use
that binary instead of a downloaded release.

Bug: None
Change-Id: Ib53ee477954f298f443b0f528c68b25293701338
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5683365
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Eric Leese <leese@google.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2024-07-10 12:52:54 +00:00
Simon Zünd 7eb84a9762 [deps] Update Node.js from v16.13.0 to v20.11.0
Drive-by fix: Don't pass a response event handler for the ResultsDB
POST request. Node.js requires us to consume the response. This was
not a problem in Node 16, but in Node 20 the process won't exit.

DISABLE_THIRD_PARTY_CHECK="Requires sha1 changes for the binaries"

R=alexrudenko@chromium.org

Bug: None
Change-Id: I339827f632539d20d346c1ca46b18eb2b8075503
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5224187
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2024-01-23 12:38:10 +00:00
Moti Zilberman e2bc335ce7 Fix Node hooks on Apple Silicon
Fixed: 1494447
Change-Id: Ie80af8e1302517640c1433cdf62d2d22651b75e1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4989682
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-10-31 12:13:31 +00:00
Alex Rudenko 09215f4648 Add node for arm64 to DEPS
sha1 taken from https://source.chromium.org/chromium/chromium/src/+/main:third_party/node/mac/node-darwin-arm64.tar.gz.sha1

DISABLE_THIRD_PARTY_CHECK=related changes
Bug: none
Change-Id: Ib3e7cbdb1604300277f481676f5ce5ca12ad534e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4436920
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-04-18 15:11:32 +00:00
Liviu Rau e1d9a915db Use vpython3 in node.py script
Bug: chromium:1413650
Change-Id: Ie16c3a399d7838b4554bc05095c2acb1d22c4dce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4224370
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
2023-02-07 15:29:58 +00:00
Tim van der Lippe 60679104f6 Reland "Update to Node 16"
This reverts commit 86a7f83986.

Reason for revert: fixed sync on Mac

Original change's description:
> Revert "Update to Node 16"
>
> This reverts commit 69fd14af2a.
>
> Reason for revert: Breaks gclient sync on mac: https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8831691191675479761/+/u/gclient_runhooks/stdout
>
> Original change's description:
> > Update to Node 16
> >
> > Chromium updated to Node 16, so we can do so too.
> >
> > DISABLE_THIRD_PARTY_CHECK=Updating Node
> > R=​szuend@chromium.org
> >
> > Bug: 1248945
> > Change-Id: Ibd983d3e94a849aa19ffd8b4cf36951c61748c93
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3253581
> > Reviewed-by: Simon Zünd <szuend@chromium.org>
> > Commit-Queue: Simon Zünd <szuend@chromium.org>
> > Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
>
> Bug: 1248945
> Change-Id: Ie30e45513212cd8e6a88532ee14431741c181057
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3257541
> Auto-Submit: Simon Zünd <szuend@chromium.org>
> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>

DISABLE_THIRD_PARTY_CHECK=Updating Node

Bug: 1248945
Change-Id: I15473467092ddf463a941c2b5531ff53874981a5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3257662
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-11-02 12:52:59 +00:00
Simon Zünd 86a7f83986 Revert "Update to Node 16"
This reverts commit 69fd14af2a.

Reason for revert: Breaks gclient sync on mac: https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8831691191675479761/+/u/gclient_runhooks/stdout

Original change's description:
> Update to Node 16
>
> Chromium updated to Node 16, so we can do so too.
>
> DISABLE_THIRD_PARTY_CHECK=Updating Node
> R=​szuend@chromium.org
>
> Bug: 1248945
> Change-Id: Ibd983d3e94a849aa19ffd8b4cf36951c61748c93
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3253581
> Reviewed-by: Simon Zünd <szuend@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>

Bug: 1248945
Change-Id: Ie30e45513212cd8e6a88532ee14431741c181057
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3257541
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2021-11-02 09:11:20 +00:00
Tim van der Lippe 69fd14af2a Update to Node 16
Chromium updated to Node 16, so we can do so too.

DISABLE_THIRD_PARTY_CHECK=Updating Node
R=szuend@chromium.org

Bug: 1248945
Change-Id: Ibd983d3e94a849aa19ffd8b4cf36951c61748c93
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3253581
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-02 07:37:42 +00:00
Tim van der Lippe 40122e169e Fix line ending printing on Python 3
To reflect the changes in
https://chromium-review.googlesource.com/c/chromium/src/+/2896248/8/third_party/node/node.py

R=jacktfranklin@chromium.org

Bug: none
Change-Id: I25ba29042f537bfef57fba93115be2c194649864
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2914883
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-24 14:48:57 +00:00
Philip Pfaffe 0ac9304e59 Run node.py with vpython
The python binary is going away on lot's of distros, so run node.py with
depot_tools' vpython instead.

Bug: none
Change-Id: I5381ecd4af3d71f0f1595653d175754ee577d946
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2826305
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
2021-04-15 10:06:32 +00:00
Tim van der Lippe 656a5198b7 Update third_party/node to 14.15.4
To reflect the upgrade in https://crrev.com/c/2611325

DISABLE_THIRD_PARTY_CHECK=Node update
R=aerotwist@chromium.org

Bug: None
Change-Id: I78504c2dcdfa8420aea6a9e54be74cac0f22d65f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2647978
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2021-01-26 13:32:18 +00:00
Philip Pfaffe 6368c91be7 Fix two minor issues in node.py
- Comparison with 0 should use != and not `is not`
- stderr and stdout can be None, meaning they can't be concatenated

Change-Id: Ib84b969b1f7fec2c03a0aea095521f8c7ab3674e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2485073
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2020-10-19 15:50:44 +00:00
Paul Lewis 64ba20b911 Adds watch mode for rebuillding changes
Since we are moving to running from built content in the gen/ directory,
we need to have a watcher to ensure convenience for anyone working on
the codebase. This CL introduces a watcher that calls autoninja whenever
a file is changed in the front_end folder. It also updates node.py so
that it outputs the contents of stdout and stderr when the --output flag
is set.

R=tvanderlippe@chromium.org

DISABLE_THIRD_PARTY_CHECK=Updating node alongside relevant changes

Bug: 1098694
Change-Id: I4ddb3d250d0fd80455ea24e95055de74b2be879c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2272559
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-06-29 15:32:58 +00:00
Paul Lewis 5ad7492821 Update node.py to allow logging
The node.py script does not currently output stdout or stderr, which for
ninja-based work makes total sense. However, when using it in more
general contexts (including debugging), having access to stdout and
stderr is useful. This CL allows the addition of --output as the first
argument to node.py, which, if found, will disable the piping of stdout
and stderr, allowing the developer to see their contents.

DISABLE_THIRD_PARTY_CHECK=Update package.json in line with node.py

Change-Id: Icfdd5479a391539dcf8b17e8d2180b5223ee1ea8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2273180
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-06-29 14:40:33 +00:00
Tim van der Lippe 99f1003577 Fix node output for Ninja actions
Ninja actions should not print any output, unless they fail. Therefore,
we should only print the `stdout` if the action fails.

R=jacktfranklin@chromium.org

Change-Id: If56ae2401823b6d93aaeb0d2814634bf4563154a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2249667
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-06-17 14:37:37 +00:00
Mathias Bynens 8a163a0661 Use the bundled node binary for all npm scripts
It was previously only done for 1 out of 12 scripts.

DISABLE_THIRD_PARTY_CHECK=updating Node.js wrapper
No-Presubmit: true
Bug: chromium:1074325
Change-Id: I18cb95af0acfcabb8b2fcb5e9e889921b0ab04db
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2247644
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-06-16 12:07:58 +00:00
Tim van der Lippe 931cc8450e Revert "Add rollup_entrypoint to rollup entrypoints in front_end"
This reverts commit 9f16ccc6a1.

Reason for revert: Fails in Chromium roll: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8877691983703106912/+/steps/compile__with_patch_/0/stdout

Original change's description:
> Add rollup_entrypoint to rollup entrypoints in front_end
> 
> To support lit-html in a release build, we have to run rollup
> separately. Since lit-html source code is targeted to TypeScript,
> the entrypoint front_end/lit-html/lit-html.ts is a TypeScript-authored
> file.
> 
> This means that we can't use `build_release_applications.py` to rollup
> this file (this is by design). Instead, we introduce a new
> `rollup_entrypoint` Ninja target that calls Rollup. We don't have to
> write a special Python file, as we can reuse `node.py` for this, which
> is essentially a pipe-through with a pinned version of Node.
> 
> While the rollup build works, for debug builds we are still missing
> the `front_end/third_party/lit-html` files. We will address that
> in a follow-up CL, once we introduce the first usage of lit-html
> in the codebase.
> 
> We are going to need to make more changes to Rollup later (most notably
> the external files check), but since we aren't using this codepath
> in `build_release_applications.py`, I will fix that in a separate CL.
> 
> To reduce duplication in the Ninja build system, I also extract
> a vars.gni file that has the relevant variables. These are currently
> used in the rollup.gni and typescript.gni.
> 
> Lastly, I had to fix node.py to make sure it wouldn't always print
> the stdout. In Ninja, we should only print to stdout if there is
> an error.
> 
> DISABLE_THIRD_PARTY_CHECK=Ninja fixes
> R=​jacktfranklin@chromium.org,aerotwist@chromium.org
> 
> Bug: 1011811, 1061037
> Change-Id: Ib22ff9c1d78e61c922101444f27c4f0d4ccf9bd6
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2238232
> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>

TBR=aerotwist@chromium.org,tvanderlippe@chromium.org,jacktfranklin@chromium.org

Change-Id: Ida2a1e30d601e87f64a7c35bbc527c700d9cbe70
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1011811, 1061037
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2243175
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-06-12 14:48:09 +00:00
Tim van der Lippe 9f16ccc6a1 Add rollup_entrypoint to rollup entrypoints in front_end
To support lit-html in a release build, we have to run rollup
separately. Since lit-html source code is targeted to TypeScript,
the entrypoint front_end/lit-html/lit-html.ts is a TypeScript-authored
file.

This means that we can't use `build_release_applications.py` to rollup
this file (this is by design). Instead, we introduce a new
`rollup_entrypoint` Ninja target that calls Rollup. We don't have to
write a special Python file, as we can reuse `node.py` for this, which
is essentially a pipe-through with a pinned version of Node.

While the rollup build works, for debug builds we are still missing
the `front_end/third_party/lit-html` files. We will address that
in a follow-up CL, once we introduce the first usage of lit-html
in the codebase.

We are going to need to make more changes to Rollup later (most notably
the external files check), but since we aren't using this codepath
in `build_release_applications.py`, I will fix that in a separate CL.

To reduce duplication in the Ninja build system, I also extract
a vars.gni file that has the relevant variables. These are currently
used in the rollup.gni and typescript.gni.

Lastly, I had to fix node.py to make sure it wouldn't always print
the stdout. In Ninja, we should only print to stdout if there is
an error.

DISABLE_THIRD_PARTY_CHECK=Ninja fixes
R=jacktfranklin@chromium.org,aerotwist@chromium.org

Bug: 1011811, 1061037
Change-Id: Ib22ff9c1d78e61c922101444f27c4f0d4ccf9bd6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2238232
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-06-12 13:09:06 +00:00
Tim van der Lippe 0cbb83a5ec Allow node.py to run node scripts
If third_party/node/node.py is executed as a regular script,
it will consequently run the Node script with the node version
that is synced with gclient sync.

DISABLE_THIRD_PARTY_CHECK=Node Python fix
R=liviurau@chromium.org

Bug: 1074325
Change-Id: I738dc3de5dabdef349f90dfc972acd99f139c027
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2194873
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-05-13 09:10:31 +00:00
Tim van der Lippe 80561fa8b4 Update Node to 12.14.1
This takes the Node version used in Chromium [1] and their sha's [2].
Updating Node should give a 20% improvement on existing TSC invocations.

R=aerotwist@chromium.org
DISABLE_THIRD_PARTY_CHECK=Updating node

[1]: https://source.chromium.org/chromium/chromium/src/+/master:DEPS;l=3963;drc=c12ad789e524b8c8721ce82adf39b27579b20da9?originalUrl=https:%2F%2Fcs.chromium.org%2F
[2]: https://source.chromium.org/chromium/chromium/src/+/master:third_party/node/linux/node-linux-x64.tar.gz.sha1;drc=d58d139bd0805c42e2d51025e4b6fd92d6ca634a?originalUrl=https:%2F%2Fcs.chromium.org%2F

Bug: 1011811
Change-Id: Id20af1f65a4760000fdea9072e985cbd256f4460
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2172421
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-04-30 10:53:47 +00:00
Yang Guo 4fd355cc40 Switch to new repository 2019-10-21 08:08:56 +02:00