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
Hendrik Lammers
committed
May 31, 2016
0 parents
commit 4639388
Showing
7 changed files
with
117 additions
and
0 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,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,31 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-console": 0, | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
} |
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,4 @@ | ||
.DS_Store | ||
*.log | ||
node_modules | ||
dist |
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Openseadragon guides</title> | ||
<meta name="description" content="OpenSeadragon plugin that adds option to draw guides"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body> | ||
|
||
<script src="node_modules/openseadragon/build/openseadragon/openseadragon.js"></script> | ||
<script src="dist/openseadragon-guides.js"></script> | ||
</body> | ||
</html> |
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,32 @@ | ||
{ | ||
"name": "openseadragon-guides", | ||
"version": "0.0.1", | ||
"description": "OpenSeadragon plugin that adds option to draw guides", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "npm run watch", | ||
"watch": "webpack-dev-server --port 3000 --inline", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015-native-modules" | ||
] | ||
}, | ||
"author": "Picturae (http://www.picturae.com)", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel-core": "^6.9.1", | ||
"babel-loader": "^6.2.4", | ||
"babel-polyfill": "^6.9.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-es2015-native-modules": "^6.6.0", | ||
"babel-preset-es2015-webpack": "^6.4.1", | ||
"eslint": "^2.11.1", | ||
"webpack": "^2.1.0-beta.8", | ||
"webpack-dev-server": "^2.1.0-beta" | ||
}, | ||
"dependencies": { | ||
"openseadragon": "^2.2.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('init openseadragon-guides plugin'); |
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,22 @@ | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
devtool: 'source-map', | ||
entry: path.resolve(__dirname, 'src/index.js'), | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/dist/', | ||
filename: 'openseadragon-guides.js' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: path.join(__dirname, 'src'), | ||
loader: 'babel-loader' | ||
} | ||
] | ||
}, | ||
stats: { | ||
colors: true | ||
} | ||
}; |