Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Lammers committed May 31, 2016
0 parents commit 4639388
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
@@ -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
31 changes: 31 additions & 0 deletions .eslintrc.json
@@ -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"
]
}
}
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.DS_Store
*.log
node_modules
dist
15 changes: 15 additions & 0 deletions index.html
@@ -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>
32 changes: 32 additions & 0 deletions package.json
@@ -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"
}
}
1 change: 1 addition & 0 deletions src/index.js
@@ -0,0 +1 @@
console.log('init openseadragon-guides plugin');
22 changes: 22 additions & 0 deletions webpack.config.js
@@ -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
}
};

0 comments on commit 4639388

Please sign in to comment.