parent
9e15e91dc6
commit
12e2d955e4
9 changed files with 111 additions and 0 deletions
@ -0,0 +1,17 @@ |
||||
rules: |
||||
indent: |
||||
- 2 |
||||
- 4 |
||||
quotes: |
||||
- 2 |
||||
- single |
||||
linebreak-style: |
||||
- 2 |
||||
- unix |
||||
semi: |
||||
- 2 |
||||
- always |
||||
env: |
||||
es6: true |
||||
browser: true |
||||
extends: 'eslint:recommended' |
@ -1 +1,2 @@ |
||||
vendor |
||||
node_modules |
||||
|
@ -0,0 +1,6 @@ |
||||
/** |
||||
* Debugging: try running "npm cache clear" if things aren't working as expected. |
||||
*/ |
||||
module.exports = function(grunt) { |
||||
require('load-grunt-config')(grunt); |
||||
}; |
@ -0,0 +1,2 @@ |
||||
default: |
||||
- 'concurrent:watch' |
@ -0,0 +1,18 @@ |
||||
/** |
||||
* CONCURRENT |
||||
* ========== |
||||
* Runs several multiple blocking tasks at once (like "watch"). |
||||
* http://stackoverflow.com/questions/17585385/how-to-run-two-grunt-watch-tasks-simultaneously
|
||||
*/ |
||||
|
||||
module.exports = { |
||||
options: { |
||||
logConcurrentOutput: true, |
||||
}, |
||||
watch: { |
||||
tasks: [ |
||||
//'nodemon',
|
||||
'watch' |
||||
], |
||||
} |
||||
}; |
@ -0,0 +1,8 @@ |
||||
/** |
||||
* ESLINT |
||||
* ====== |
||||
* Does not support 'subtasks' (like :all). |
||||
*/ |
||||
module.exports = { |
||||
target: ['js/*.js'] |
||||
}; |
@ -0,0 +1,18 @@ |
||||
/** |
||||
* WATCH |
||||
* ===== |
||||
* Process for watching changes to files in real time. |
||||
*/ |
||||
module.exports = { |
||||
js: { |
||||
files: [ |
||||
'js/**/*.js' |
||||
], |
||||
tasks: [ |
||||
'eslint' |
||||
], |
||||
options: { |
||||
livereload: true |
||||
}, |
||||
}, |
||||
}; |
@ -0,0 +1,21 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<title>D3</title> |
||||
|
||||
<script type='text/javascript' src='vendor/d3/d3.min.js'></script> |
||||
<style type='text/css'></style> |
||||
</head> |
||||
<body> |
||||
<script type='text/javascript'> |
||||
var dataset = [ 5, 10, 15, 20, 25 ]; |
||||
|
||||
d3.select("body").selectAll("p") |
||||
.data(dataset) |
||||
.enter() |
||||
.append("p") |
||||
.text(function(d) { return d; }); |
||||
</script> |
||||
</body> |
||||
</html> |
@ -0,0 +1,20 @@ |
||||
{ |
||||
"name": "ben.burlingham", |
||||
"version": "0.0.0", |
||||
"description": "", |
||||
"main": "index.js", |
||||
"scripts": { |
||||
"test": "echo \"Error: no test specified\" && exit 1" |
||||
}, |
||||
"author": "", |
||||
"license": "ISC", |
||||
"dependencies": { |
||||
"chalk": "^1.1.1", |
||||
"express": "^4.13.3", |
||||
"grunt": "^0.4.5", |
||||
"grunt-concurrent": "^2.0.3", |
||||
"grunt-contrib-watch": "^0.6.1", |
||||
"grunt-eslint": "^17.1.0", |
||||
"load-grunt-config": "^0.17.2" |
||||
} |
||||
} |
Loading…
Reference in new issue