forked from claudio/pEpForThunderbird
803 B
803 B
p≡p for Thunderbird
HOW TO BUILD
Using docker
docker build -t <image_tag> . && docker run -v build:/usr/src/app/build <image_tag>
Using bash
zip -r build/pEp4Tb@pEp.security.xpi chrome
Check syntax statically
You can parse the code with Babel in order to
catch syntax errors. After installing with npm install
just run:
npm run syntaxCheck
Run ESLint
You can run ESLint to check the style guides defined in .eslintrc.json
with the npm script:
npm run lint
ESLint can auto fix some problems with the option --fix
but most of them must be fixed manually:
npm run lint --fix
npm run lint -- --fix (on Windows)
Tests
To run tests first is needed to install all dependencies
npm install
Run
npm run test