Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add webpack config and react transform, fix lint errors
- Loading branch information
Showing
42 changed files
with
173 additions
and
89 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 |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
"rules": | ||
"indent": [2, 2, {"SwitchCase": 1}] | ||
"max-len": 0 | ||
|
||
"env": | ||
"browser": true, | ||
"node": true |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width initial-scale=1 user-scalable=no" /> | ||
<link href="http://fonts.googleapis.com/css?family=Lobster+Two:400700" rel="stylesheet" type="text/css"> | ||
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300700" rel="stylesheet" type="text/css"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="/dist/bundle.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
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,37 @@ | ||
0 info it worked if it ends with ok | ||
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'lint' ] | ||
2 info using npm@2.14.2 | ||
3 info using node@v4.0.0 | ||
4 verbose run-script [ 'prelint', 'lint', 'postlint' ] | ||
5 info prelint spectacle@0.1.6 | ||
6 info lint spectacle@0.1.6 | ||
7 verbose unsafe-perm in lifecycle true | ||
8 info spectacle@0.1.6 Failed to exec lint script | ||
9 verbose stack Error: spectacle@0.1.6 lint: `eslint --ext .js,.jsx .` | ||
9 verbose stack Exit status 1 | ||
9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16) | ||
9 verbose stack at emitTwo (events.js:87:13) | ||
9 verbose stack at EventEmitter.emit (events.js:172:7) | ||
9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) | ||
9 verbose stack at emitTwo (events.js:87:13) | ||
9 verbose stack at ChildProcess.emit (events.js:172:7) | ||
9 verbose stack at maybeClose (internal/child_process.js:817:16) | ||
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) | ||
10 verbose pkgid spectacle@0.1.6 | ||
11 verbose cwd /Users/mateuszzatorski/Projects/spectacle | ||
12 error Darwin 15.0.0 | ||
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint" | ||
14 error node v4.0.0 | ||
15 error npm v2.14.2 | ||
16 error code ELIFECYCLE | ||
17 error spectacle@0.1.6 lint: `eslint --ext .js,.jsx .` | ||
17 error Exit status 1 | ||
18 error Failed at the spectacle@0.1.6 lint script 'eslint --ext .js,.jsx .'. | ||
18 error This is most likely a problem with the spectacle package, | ||
18 error not with npm itself. | ||
18 error Tell the author that this fails on your system: | ||
18 error eslint --ext .js,.jsx . | ||
18 error You can get their info via: | ||
18 error npm owner ls spectacle | ||
18 error There is likely additional logging output above. | ||
19 verbose exit [ 1, true ] |
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
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
File renamed without changes.
File renamed without changes.
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,29 @@ | ||
/* eslint-disable */ | ||
|
||
var path = require("path"); | ||
var express = require("express"); | ||
var webpack = require("webpack"); | ||
var config = require("./webpack.config"); | ||
|
||
var app = express(); | ||
var compiler = webpack(config); | ||
|
||
app.use(require("webpack-dev-middleware")(compiler, { | ||
noInfo: true, | ||
publicPath: config.output.publicPath | ||
})); | ||
|
||
app.use(require("webpack-hot-middleware")(compiler)); | ||
|
||
app.get("*", function(req, res) { | ||
res.sendFile(path.join(__dirname, "index.html")); | ||
}); | ||
|
||
app.listen(3000, "localhost", function (err) { | ||
if (err) { | ||
console.log(err); | ||
return; | ||
} | ||
|
||
console.log("Listening at http://localhost:3000"); | ||
}); |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/*global setTimeout*/ | ||
|
||
import { PropTypes } from "react"; | ||
import tweenState from "react-tween-state"; | ||
|
||
|
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.