This repository was archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 335
Build Napa.js
Yulong Wang edited this page Aug 21, 2017
·
5 revisions
You may want to build and test 'napajs' from source code, this is especially helpful when you have a combination of OS/compiler/Node version that is not explicitly mentioned as supported.
- Install C++ compilers that support C++14:
- Windows: Visual C++ Build Tools 2015 / 2017, or Visual Studio
- Linux: via Apt-get
- OSX:
xcode-select --install
- Install CMake:
- Linux: via Apt-get
- OSX: via brew
- Download or build
- Install cmake-js:
npm install -g cmake-js
- Enter command line
- Enter the directory that napajs will be cloned in its sub-folder named 'napajs'
git clone https://github.com/Microsoft/napajs.git
Run following command at the root directory of local repo:
npm install --no-fetch
Enter the root directory of local repo in command line.
- Run test:
npm test
- Run unittest:
npm run unittest