- Node.js (8.11.1 or later)
- Npm (5.6.0 or later)
- VS Code (1.40.0 or later)
# 1. Clone the project
$ git clone git@github.com:docascode/vscode-docs-build.git
$ cd vscode-docs-build
# 2. Install dependencies
$ npm i
# 3. Open the project by VS Code
$ code .
# 4. Press `F5` to run the extension
- Set a breakpoint.
- Select
Run extension
in theRun and Debug
Tab. - Press
F5
to run the extension - Check the
Variables
,Call Stack
and use theWatch
in theRun and Debug
Tab.
- Set a breakpoint.
- Set
VSCODE_DOCS_BUILD_EXTENSION_BUILD_USER_TOKEN
in launch.json - Run
git submodule update --init
in terminal. - Select
Launch extension e2e tests
in theRun and Debug
Tab. - Press
F5
to run the extension - Check the
Variables
,Call Stack
and use theWatch
in theRun and Debug
Tab.
- Set a breakpoint.
- Select
Launch extension unit tests
in theRun and Debug
Tab. - Press
F5
to run the extension - Check the
Variables
,Call Stack
and use theWatch
in theRun and Debug
Tab.
- Set a breakpoint.
- Set
VSCODE_DOCS_BUILD_EXTENSION_BUILD_USER_TOKEN
in launch.json - Select
Launch extension benchmark tests
in theRun and Debug
Tab. - Press
F5
to run the extension - Check the
Variables
,Call Stack
and use theWatch
in theRun and Debug
Tab.
- Set a breakpoint.
- Select
Launch runtime dependencies update script
in theRun and Debug
Tab. - Press
F5
to run the extension - Check the
Variables
,Call Stack
and use theWatch
in theRun and Debug
Tab.
npm run test
: Run all the test including E2E test(requires two tokens be set by environment variable) and Unit testnpm run test:unit
: Run Unit testnpm run benchmark
: Run benchmarknpm run lint
: Run ESLint