-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
14,798 additions
and
18,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
core/openseadragon/*.js | ||
core/openseadragonzoomlevels.js | ||
core/openseadragonzoomlevels.BAK.js | ||
core/openseadragon-scalebar.js | ||
core/openseadragon-scalebar.BAK.js | ||
core/openseadragon-imaginghelper.min.js | ||
core/openseadragon-imaginghelper.min.BAK.js | ||
apps/landing/skel.min.js | ||
apps/landing/util.js | ||
apps/landing/jquery.dropotron.min.js | ||
apps/landing/jquery.min.js | ||
apps/landing/jquery.scrollex.min.js | ||
apps/segment/opencv.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true, | ||
}, | ||
'extends': [ | ||
'google', | ||
], | ||
'globals': { | ||
'Atomics': 'readonly', | ||
'SharedArrayBuffer': 'readonly', | ||
}, | ||
'parserOptions': { | ||
'ecmaVersion': 2018, | ||
}, | ||
'rules': { | ||
"require-jsdoc" : 0, | ||
"valid-jsdoc" : 0, | ||
"max-len" : ["error", { "code": 120 ,"ignoreTemplateLiterals": true},], | ||
"camelcase" : 0, | ||
"no-unused-vars" : 0, | ||
"no-var" : 0, | ||
"prefer-promise-reject-errors" :0, | ||
"no-extra-bind" : 0, | ||
"new-cap" : 0, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,40 @@ | ||
sudo: required | ||
os: linux | ||
dist: xenial | ||
language: node_js | ||
node_js: | ||
- "12" | ||
install: | ||
- npm ci | ||
- npm install | ||
- npm install jsdom | ||
- npm install -g http-server | ||
- npm install -g mocha | ||
- npm install eslint | ||
- npm install eslint-config-google | ||
|
||
stages: | ||
- name: tests | ||
- name: lintjs | ||
- name: linthtml | ||
|
||
before_script: | ||
- http-server -s & # start a Web server | ||
- sleep 3 # give Web server some time to bind to sockets, etc | ||
|
||
script: | ||
- mocha test --recursive --exit | ||
jobs: | ||
include: | ||
- stage: tests | ||
name: Unit Tests | ||
script: mocha test --recursive --exit | ||
- stage: lintjs | ||
name: "JS Code Style Check" | ||
script: | ||
- ./node_modules/.bin/eslint core/*.js --quiet | ||
- ./node_modules/.bin/eslint components/**/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/heatmap/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/labeling/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/loader/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/model/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/segment/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/model/**/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/segment/**/*.js --quiet | ||
- ./node_modules/.bin/eslint apps/viewer/*.js --quiet |
Oops, something went wrong.