Skip to content

Commit

Permalink
Remove jQuery, switch dependency to Cornerstone 2.0.0, bump to versio…
Browse files Browse the repository at this point in the history
…n 2.0.0
  • Loading branch information
swederik committed Dec 13, 2017
1 parent 525a956 commit 7b0a7c4
Show file tree
Hide file tree
Showing 94 changed files with 4,529 additions and 4,312 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ module.exports = {
'brace-style': 'warn',
'callback-return': 'warn',
'camelcase': 'warn',
'capitalized-comments': 'warn',
'capitalized-comments': [
"warn",
"always",
{
"ignorePattern": "pragma|ignored",
"ignoreInlineComments": true
}
],
'class-methods-use-this': 'warn',
'comma-dangle': 'warn',
'comma-spacing': [
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,12 @@ See the [live examples](https://rawgithub.com/cornerstonejs/cornerstoneTools/mas

````javascript
// Load NPM packages
import $ from 'jquery'; // npm install --save jquery
import Hammer from 'hammerjs'; // npm install --save hammerjs
import * as cornerstone from 'cornerstone-core'; // npm install --save cornerstone-core
import * as cornerstoneTools from 'cornerstone-tools';

// Specify external dependencies
cornerstone.external.$ = $;
cornerstoneTools.external.cornerstone = cornerstone;
cornerstoneTools.external.$ = $;
cornerstoneTools.external.Hammer = Hammer;
````

Expand All @@ -213,14 +210,12 @@ cornerstoneTools.external.Hammer = Hammer;

````javascript
// Load Packaged Sources
<script src="https://unpkg.com/jquery@3.2.1/dist/jquery.js"></script>
<script src="https://unpkg.com/hammerjs@2.0.8/hammer.js"></script>
<script src="https://unpkg.com/cornerstone-core@1.1.0/dist/cornerstone.min.js"></script>
<script src="https://unpkg.com/cornerstone-tools@1.0.2/dist/cornerstoneTools.min.js"></script>

// Specify external dependencies
cornerstoneTools.external.cornerstone = cornerstone;
cornerstoneTools.external.$ = $;
cornerstoneTools.external.Hammer = Hammer;
````

Expand Down
Loading

0 comments on commit 7b0a7c4

Please sign in to comment.