-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use rollup instead of gulp/webpack (#1)
* chore: remove no longer needed bower.json * chore: do not use gulp for linting * chore: use individual js files for examples * chore: change from require to import * chore: use vis.min.js for basic examples for testing * feat: use rollup to generate individual libs * chore: remove gulp and its dependencies * chore: add vscode mocha debug config * fix: fix tests
- Loading branch information
Showing
109 changed files
with
1,171 additions
and
639 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"presets": ["env"], | ||
"plugins": [ | ||
"transform-es3-property-literals", | ||
"transform-es3-member-expression-literals", | ||
"transform-runtime" | ||
"presets": [ | ||
["@babel/preset-env", { | ||
"targets": "> 0.1% or not dead" | ||
}] | ||
] | ||
} |
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,42 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
mocha: true | ||
}, | ||
|
||
parserOptions: { | ||
sourceType: "module", | ||
}, | ||
|
||
extends: "eslint:recommended", | ||
|
||
// For the full list of rules, see: http://eslint.org/docs/rules/ | ||
rules: { | ||
complexity: [2, 55], | ||
"max-statements": [2, 115], | ||
"no-unreachable": 1, | ||
"no-useless-escape": 0, | ||
|
||
"no-console": 0, | ||
// To flag presence of console.log without breaking linting: | ||
//"no-console": ["warn", { allow: ["warn", "error"] }], | ||
|
||
"require-jsdoc": ["error", { | ||
require: { | ||
FunctionDeclaration: true, | ||
MethodDefinition: true, | ||
ClassDeclaration: true, | ||
ArrowFunctionExpression: false | ||
} | ||
}], | ||
"valid-jsdoc": [2, { | ||
requireReturnDescription: false, | ||
requireReturn: false, | ||
requireParamDescription: false, | ||
requireReturnType: true | ||
}], | ||
"guard-for-in": 1, | ||
}, | ||
} |
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,39 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha All", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--exit", | ||
"--timeout", | ||
"999999", | ||
"--colors", | ||
"--require", | ||
"@babel/register", | ||
"${workspaceFolder}/test" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha Current File", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--exit", | ||
"--timeout", | ||
"999999", | ||
"--colors", | ||
"--require", | ||
"@babel/register", | ||
"${file}" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.