Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
kjda committed Aug 6, 2014
1 parent 235ab75 commit ecd9d46
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 29 deletions.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./lib/index');
module.exports = require('./dist/index');
25 changes: 0 additions & 25 deletions lib/index.js

This file was deleted.

25 changes: 25 additions & 0 deletions lib/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
ButtonBar: require('./buttonBar.jsx'),
ButtonBarItem: require('./buttonBarItem.jsx'),
Button: require('./button.jsx'),
Checkbox: require('./checkbox.jsx'),
IconButton: require('./iconButton.jsx'),
Radio: require('./radio.jsx'),
Range: require('./range.jsx'),
TabBar: require('./tabBar.jsx'),
TabBarItem: require('./tabBarItem.jsx'),
Notification: require('./notification.jsx'),
NavBar: require('./navBar.jsx'),
NavBarItem: require('./navBarItem.jsx'),
NavBarTitle: require('./navBarTitle.jsx'),
Icon: require('./icon.jsx'),
List: require('./list.jsx'),
ListHeader: require('./listHeader.jsx'),
ListContainer: require('./listContainer.jsx'),
ListItem: require('./listItem.jsx'),
LinkButton: require('./linkButton.jsx'),
TextInput: require('./textInput.jsx'),
Textarea: require('./textarea.jsx'),
Switch: require('./switch.jsx'),
Search: require('./search.jsx')
};
1 change: 0 additions & 1 deletion lib/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = React.createClass({
};
},


render: function(){

var classSet = React.addons.classSet({
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-topui",
"version": "0.0.1",
"description": "Topcoat components using reactjs",
"main": "lib/index.js",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: Tests comming soon\" && exit 1"
},
Expand All @@ -19,5 +19,12 @@
"bugs": {
"url": "https://github.com/kjda/react-topui/issues"
},
"homepage": "https://github.com/kjda/react-topui"
"homepage": "https://github.com/kjda/react-topui",
"dependencies": {
"react-topui": "git+https://github.com/kjda/react-topui.git"
},
"devDependencies": {
"jsx-loader": "^0.11.0",
"webpack": "^1.3.3-beta1"
}
}
36 changes: 36 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
var webpack = require('webpack');

var UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

module.exports = {
//target: 'web',
//debug: true,
//devtool: 'source-map',
context: __dirname + '/lib/',
watch: true,
entry: __dirname + '/lib/index.jsx',
output: {
path: __dirname + '/dist/',
filename: 'index.js',
library: 'ReactTopui',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js', '.jsx'],
// modulesDirectories: [ '../node_modules'],
},
module: {
loaders: [
//{ test: /\.css/, loader: 'style-loader!css-loader' },
//{ test: /\.less$/, loader: 'style-loader!css-loader!less-loader' },
{ test: /\.jsx$/, loader: '../node_modules/jsx-loader' }
]
},
externals: {
'react': true,
'react/addons': true
},
plugins: [
new UglifyJsPlugin()
]
};

0 comments on commit ecd9d46

Please sign in to comment.