File tree Expand file tree Collapse file tree 5 files changed +47
-1
lines changed
Expand file tree Collapse file tree 5 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "presets" : [" stage-0" ]
3+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,15 @@ kramdown:
2323google_universal_analytics : UA-60941725-1
2424google_universal_analytics_cookiedomain : auto
2525
26- exclude : [vendor]
26+ exclude :
27+ - vendor
28+ - node_modules
29+ - package.json
30+ - webpack.config.js
31+ - Gemfile
32+ - Gemfile.lock
33+ - Rakefile
34+ - s3_website.yml
2735
2836gems :
2937 - octopress-escape-code
Original file line number Diff line number Diff line change 1+ import d3 from 'd3' ;
Original file line number Diff line number Diff line change 1616 "dependencies" : {
1717 "d3" : " ^3.5.12" ,
1818 "lodash" : " ^4.0.0"
19+ },
20+ "devDependencies" : {
21+ "babel-core" : " ^6.3.15" ,
22+ "babel-loader" : " ^6.2.0" ,
23+ "babel-preset-es2015" : " ^6.3.13" ,
24+ "babel-preset-react" : " ^6.3.13" ,
25+ "babel-preset-stage-0" : " ^6.3.13" ,
26+ "webpack" : " ^1.12.9"
27+ },
28+ "scripts" : {
29+ "test" : " bundle exec htmlproof ./_site --url-ignore http://localhost:8080" ,
30+ "build" : " jekyll build && webpack" ,
31+ "deploy" : " npm run build && npm test && s3_website push"
1932 }
2033}
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ entry : {
3+ 'd3-github' : './assets/scripts/posts/d3-github.js'
4+ } ,
5+ output : {
6+ path : './_site/assets/scripts/posts/' ,
7+ filename : '[name].bundle.js'
8+ } ,
9+ module : {
10+ loaders : [
11+ {
12+ test : / \. j s x ? $ / ,
13+ exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ,
14+ loader : 'babel-loader' ,
15+ query : {
16+ presets : [ 'react' , 'es2015' , 'stage-0' ]
17+ }
18+ }
19+ ]
20+ }
21+ } ;
You can’t perform that action at this time.
0 commit comments