mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
21 lines
292 B
Bash
Executable File
21 lines
292 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo '
|
|
- lint js code
|
|
'
|
|
jshint src && jshint script || exit 1
|
|
|
|
echo '
|
|
- test using mocha
|
|
'
|
|
mocha -R list test/mocha*js || exit 1
|
|
|
|
echo '
|
|
- test using playwright
|
|
'
|
|
npx playwright test || exit 1
|
|
|
|
echo '
|
|
- lint lockfile
|
|
'
|
|
npx lockfile-lint -p package-lock.json || exit 1 |