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

Commit

Permalink
Merge pull request #1 from sheepsteak/master
Browse files Browse the repository at this point in the history
Move to a Babel-based build process
  • Loading branch information
JamieDixon authored Jul 20, 2016
2 parents 4f133af + 56121f0 commit b6e62a2
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/node_modules/
/dist/
/lib/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.babelrc
src/
52 changes: 0 additions & 52 deletions bundle.js

This file was deleted.

9 changes: 0 additions & 9 deletions index.js

This file was deleted.

25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "react-lifecycle-component",
"version": "1.0.6",
"description": "A higher order component that accepts lifecycle hook functions as props",
"main": "component.js",
"main": "lib/index.js",
"scripts": {
"build": "webpack --progress",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "npm run clean && babel -d lib src",
"clean": "rimraf lib",
"prepublish": "npm run build",
"test": "babel-node test.js"
},
"repository": {
"type": "git",
Expand All @@ -19,18 +21,17 @@
"homepage": "https://github.com/JamieDixon/react-lifecycle-component#readme",
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.9.0",
"webpack-node-externals": "^1.2.0"
"react": "^0.14.0",
"react-redux": "^4.0.0",
"redux": "^3.0.0",
"rimraf": "^2.5.3"
},
"dependencies": {
"react": "^15.2.1",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"webpack": "^2.1.0-beta.18"
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0-0",
"react-redux": "^4.0.0",
"redux": "^2.0.0 || ^3.0.0"
}
}
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import LifecycleComponent from './component';
import applyLifecycle from './applyLifecycle'
import connectWithLifecycle from './redux-helpers/lifecycle-connect';

export { LifecycleComponent };
export { applyLifecycle };
export { connectWithLifecycle };

export default LifecycleComponent;
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { connectWithLifecycle } from './index';
import { connectWithLifecycle } from './src/index';
import React from 'react';

console.log(connectWithLifecycle()(<div></div>));
21 changes: 0 additions & 21 deletions webpack.config.babel.js

This file was deleted.

0 comments on commit b6e62a2

Please sign in to comment.