- Node.js 8.0+
- Npm 5.0+
NOTE: we recommend using nvm
brew install nvm
nvm install 8.11
nvm use 8.11
git clone https://github.com/serverless/components.git
cd components
npm install
You can export the USE_ESNEXT
environment variable if you're using a Node.js version >=8 and want to work on the project without build
ing / watch
ing it.
To build the project
npm run build
To automatically re-build the project when files change
npm run watch
To wipe out all installed modules as well as package-lock.json files, use the cleanse
script.
To cleanse the project
npm run cleanse
Run tests for the project
npm test
Run lint for the project
npm run lint