Skip to content

Commit

Permalink
Change the way prepublish works
Browse files Browse the repository at this point in the history
  • Loading branch information
vramana committed May 27, 2015
1 parent 36ec7aa commit 8b3b905
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ demos/*
demos1
TODO.md
npm-debug.log
lib/
2 changes: 1 addition & 1 deletion docs/demos.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var React = require('react');
var Slider = require('../');
var Slider = require('../lib/slider');

var SingleItem = React.createClass({
render: function () {
Expand Down
1 change: 0 additions & 1 deletion index.jsx

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "react-slick",
"version": "0.4.1",
"description": " React port of slick carousel",
"main": "index.jsx",
"main": "./lib",
"scripts": {
"start": "./node_modules/.bin/gulp server",
"prepublish": "./node_modules/.bin/gulp dist"
"prepublish": "./node_modules/.bin/babel ./src --out-dir ./lib"
},
"author": "Kiran Abburi",
"license": "MIT",
Expand All @@ -23,6 +23,7 @@
],
"devDependencies": {
"autoprefixer-core": "^5.1.11",
"babel": "^5.4.7",
"babel-core": "^5.4.7",
"babel-loader": "^5.1.3",
"deepmerge": "^0.2.10",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./slider');
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/slider.jsx → src/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from 'react';

import InnerSlider from './inner-slider.jsx';
import InnerSlider from './inner-slider';
import _sortBy from 'lodash.sortby';
import _pluck from 'lodash.pluck';
import _filter from 'lodash.filter';
Expand Down

0 comments on commit 8b3b905

Please sign in to comment.