The client-side of the Chrome DevTools, including all JS & CSS to run the DevTools webapp.
It is available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES2015 modules, so consuming this package in other tools may require some effort.
The version number of the npm package (e.g.
1.0.373466) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.
The frontend is available on chromium.googlesource.com.
As standalone project, Chrome DevTools front-end can be checked out and built independently from Chromium.
Get depot_tools first.
mkdir devtools cd devtools git clone https://chromium.googlesource.com/devtools/devtools-frontend gclient config https://chromium.googlesource.com/devtools/devtools-frontend --unmanaged
gclient sync gn gen out autoninja -C out
Build Chromium with the GN flag
<path-to-chrome>/chrome --custom-devtools-frontend=$(realpath out/resources/inspector)
npm run format-py
Formats your Python code using yapf
Note: Yapf is a command line tool. You will have to install this manually, either from PyPi through
pip install yapfor if you want to enable multiprocessing in Python 2.7,
pip install futures
The tests are run through Karma.
You can also specify with which Chrome binary to run tests by setting the
python scripts/run_tests.py --chrome-binary=/path/to/chromium/build/chromium