Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Updates curved-carousel to use bolt, gets eslint passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chase Adams committed Aug 28, 2015
1 parent 8e8edde commit cc9f7f0
Show file tree
Hide file tree
Showing 21 changed files with 92 additions and 485 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc-base

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc-node

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc-react

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc-react-test

This file was deleted.

9 changes: 3 additions & 6 deletions demo/app.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*global document:false*/
/*eslint max-len:0 */
/*global document:false event:false */
import React from "react";
import {CurvedCarousel} from "../src/index";

class App extends React.Component {
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
Expand Down Expand Up @@ -91,7 +92,3 @@ class App extends React.Component {
);
}
}

const content = document.getElementById("content");

React.render(<App/>, content);
15 changes: 15 additions & 0 deletions demo/demo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*global document:false*/
import React from "react";
import App from "./app";

class Demo extends React.Component {
render() {
return (
<App />
);
}
}

const content = document.getElementById("content");

React.render(<Demo/>, content);
3 changes: 1 addition & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<div id="content">
<h1>If you can see this, something is broken (or JS is not enabled)!!.</h1>
</div>
<script type="text-javascript" src="http://localhost:3000/webpack-dev-server.js"></script>
<script type="text/javascript" src="assets/main.js"></script>
<script type="text/javascript" src="assets/bundle.js"></script>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.7/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.7/es5-sham.min.js"></script>
Expand Down
49 changes: 0 additions & 49 deletions demo/webpack.config.dev.js

This file was deleted.

17 changes: 0 additions & 17 deletions demo/webpack.config.hot.js

This file was deleted.

23 changes: 0 additions & 23 deletions karma.conf.coverage.js

This file was deleted.

31 changes: 0 additions & 31 deletions karma.conf.dev.js

This file was deleted.

49 changes: 0 additions & 49 deletions karma.conf.js

This file was deleted.

80 changes: 9 additions & 71 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,80 +14,18 @@
},
"homepage": "https://github.com/walmartreact/curved-carousel",
"scripts": {
"postinstall": "npm run build-lib",
"preversion": "npm run check",
"version": "npm run clean && npm run build && git add -A dist",
"clean-dist": "rimraf dist",
"build-dist-min": "webpack --config webpack.config.js",
"build-dist-dev": "webpack --config webpack.config.dev.js",
"build-dist": "npm run clean-dist && npm run build-dist-min && npm run build-dist-dev",
"clean-lib": "rimraf lib",
"build-lib": "npm run clean-lib && babel --stage 0 src -d lib",
"clean": "npm run clean-lib && npm run clean-dist",
"build": "npm run build-lib && npm run build-dist",
"server-dev": "webpack-dev-server --port 3000 --config demo/webpack.config.dev.js --content-base demo",
"server-hot": "webpack-dev-server --port 3000 --config demo/webpack.config.hot.js --hot --content-base demo",
"server-test": "webpack-dev-server --port 3001 --config webpack.config.test.js",
"dev": "npm run server-dev & npm run server-test",
"hot": "npm run server-hot & npm run server-test",
"open-demo": "opener http://127.0.0.1:3000",
"open-dev": "npm run dev & npm run open-demo",
"open-hot": "npm run hot & npm run open-demo",
"lint-node": "eslint -c .eslintrc-node *.js demo/webpack.*.js",
"lint-react": "eslint --ext .js,.jsx -c .eslintrc-react src demo/*.jsx",
"lint-react-test": "eslint --ext .js,.jsx -c .eslintrc-react-test src test/client",
"lint": "npm run lint-node && npm run lint-react && npm run lint-react-test",
"test-frontend": "node node_modules/karma/bin/karma start karma.conf.js",
"test-frontend-ci": "node node_modules/karma/bin/karma start --browsers PhantomJS,Firefox karma.conf.coverage.js",
"test-frontend-cov": "node node_modules/karma/bin/karma start karma.conf.coverage.js",
"test-frontend-dev": "node node_modules/karma/bin/karma start karma.conf.dev.js",
"test": "npm run test-frontend && echo 'TODO Server 13, Integration 12 tests.'",
"test-ci": "npm run test-frontend-ci",
"test-cov": "npm run test-frontend-cov",
"test-dev": "npm run test-frontend-dev",
"check": "npm run lint && npm run test",
"check-ci": "npm run lint && npm run test-ci",
"check-cov": "npm run lint && npm run test-cov",
"check-dev": "npm run lint && npm run test-dev"
"postinstall": "bolt build-lib",
"preversion": "bolt check",
"version": "bolt clean && bolt build && git add -A dist",
"dev": "bolt server-dev",
"hot": "bolt server-hot"
},
"dependencies": {
"babel": "^5.5.8",
"babel-core": "^5.5.8",
"babel-loader": "^5.3.2",
"css-loader": "~0.9.0",
"rimraf": "^2.4.0",
"style-loader": "~0.8.0",
"url-loader": "~0.5.5",
"webpack": "^1.10.0"
"url-loader": "~0.5.5"
},
"devDependencies": {
"babel-eslint": "^3.1.25",
"chai": "^3.2.0",
"eslint": "^0.24.1",
"eslint-config-defaults": "^3.0.3",
"eslint-plugin-filenames": "^0.1.1",
"eslint-plugin-react": "^2.6.4",
"isparta-loader": "^0.2.0",
"karma": "^0.12.37",
"karma-chrome-launcher": "^0.2.0",
"karma-coverage": "^0.4.2",
"karma-firefox-launcher": "^0.1.6",
"karma-ie-launcher": "^0.2.0",
"karma-mocha": "^0.2.0",
"karma-phantomjs-launcher": "^0.2.0",
"karma-phantomjs-shim": "^1.0.0",
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.14",
"karma-spec-reporter": "0.0.20",
"karma-webpack": "^1.6.0",
"electrode-bolt": "^0.2.4",
"lodash": "^3.9.3",
"mocha": "^2.2.5",
"opener": "^1.4.1",
"phantomjs": "^1.9.17",
"react": "0.13.x",
"react-hot-loader": "^1.2.8",
"sinon": "^1.15.4",
"sinon-chai": "^2.8.0",
"webpack-dev-server": "^1.10.0"
"opener": "^1.4.1"
}
}
}
Loading

0 comments on commit cc9f7f0

Please sign in to comment.