forked from claudio/pEpForThunderbird
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
addon | 2 years ago | |
tests | 2 years ago | |
.eslintrc.json | 3 years ago | |
.gitconfig | 2 years ago | |
.gitignore | 2 years ago | |
.mocharc.json | 4 years ago | |
DEVELOPMENT.md | 4 years ago | |
Dockerfile | 4 years ago | |
Makefile | 3 years ago | |
README.md | 2 years ago | |
makeXPI.bat | 2 years ago | |
manual-and-test.md | 4 years ago | |
package-lock.json | 3 years ago | |
package.json | 2 years ago |
README.md
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
cd addon ; zip -r ../build/pEp4Tb@pEp.security.xpi . ; cd ..
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
npm run linttest