|
2 years ago | |
---|---|---|
addon | 2 years ago | |
tests | 2 years ago | |
.eslintrc.json | 2 years ago | |
.hgignore | 2 years ago | |
.mocharc.json | 4 years ago | |
DEVELOPMENT.md | 3 years ago | |
Dockerfile | 3 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
makeXPI.bat | 2 years ago | |
manual-and-test.md | 3 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago |
Using docker
docker build -t <image_tag> . && docker run -v build:/usr/src/app/build <image_tag>
Using bash
cd addon ; zip -r ../build/pEp4Tb@pEp.security.xpi . ; cd ..
You can parse the code with Babel in order to
catch syntax errors. After installing with npm install
just run:
npm run syntaxCheck
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)
To run tests first is needed to install all dependencies
npm install
npm run test