Skip to content

Latest commit

 

History

History
88 lines (56 loc) · 1.96 KB

BUILD.md

File metadata and controls

88 lines (56 loc) · 1.96 KB

Build Coding with Chrome Suite (Experimental)

What you need to build the Coding with Chrome Suite

In order to build the Coding with Chrome Suite, you only need to have Node.js/npm and GIT installed on your system.

Each build is cross-platform compatible. Which mean if you build the Coding with Chrome Suite on Windows you could use the generated code in other platforms like Mac OS X as well.

Preparations

Install Node.js from the official web page at https://nodejs.org

How to build your own Coding with Chrome Suite

Get the sources

Download the source files manual from GitHub or with git by running:

git clone --recursive https://github.com/google/coding-with-chrome.git

Switch into the downloaded folder

To be able to execute the following commands, you need to switch to the downloaded folder by running:

cd coding-with-chrome

Get required npm packages

Enter the "coding-with-chrome" directory and get the required packages by:

npm install

Module not found error

If you get an error like:

Module not found: Error: Can't resolve '...'

Please make sure that you have cloned the repository with the --recursive flag.

Otherwise, you need to run the following command to get the missing files:

git submodule update --init --recursive

Start the actual app

To start the app, run the following command:

npm run start

Start the actual app (developer mode)

To start the app, run the following command:

npm run start:dev

Playwright for testing

The app use playwright for automated tests. If the installation of the test browsers fails, run the following commands:

npm i -D @playwright/test
npx playwright install