Skip to content

Commit

Permalink
Use files for npm and move CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik authored and Hyunje Alex Jun committed Mar 5, 2016
1 parent 7621a24 commit f20a853
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 23 deletions.
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Basically, I try to follow [Douglas Crockford's JavaScript Code Conventions](htt
You can check if your code fits in the convention with `gulp lint`.

## Getting Started
First, ensure that you have the latest [Node.js](http://nodejs.org/) or [io.js](https://iojs.org) and [npm](http://npmjs.org) installed.
First, ensure that you have stable [Node.js](https://nodejs.org/) and [npm](https://npmjs.com) installed.

Test if Gulp CLI is installed by running `gulp --version`. If the command isn't found, run `npm install -g gulp`. For more information about installing Gulp, see the Gulp's [Getting Started](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md).

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ It's cool, isn't it?
#### NPM

The best way to install and use perfect-scrollbar is with NPM.
It's registered on [npm](https://www.npmjs.org/package/perfect-scrollbar) as `perfect-scrollbar`.
It's registered on [npm](https://www.npmjs.com/package/perfect-scrollbar) as `perfect-scrollbar`.

```
$ npm install perfect-scrollbar
Expand Down Expand Up @@ -257,12 +257,12 @@ define([
'perfectScrollbarJquery'
],
function (angular) {
var myApp = angular.module('myApp', [])
.run(function() {
var app = angular.module('myApp', []);
app.run(function () {
window.Ps = require('perfectScrollbar');
require('perfectScrollbarJQuery');
})
return myApp;
});
return app;
});
```

Expand All @@ -275,7 +275,7 @@ Ps.initialize(container);
Ps.update(container);

// or by jQuery:
var imgLoader = $("#imgLoader")
var imgLoader = $('#imgLoader')
imgLoader.perfectScrollbar();
```

Expand Down Expand Up @@ -345,15 +345,15 @@ Ps.initialize(container, {
});
```
Create a class name prefixed with `.ps-theme-`. Include `ps-container()` mixin. It's recommended to use `map-merge()` to extend `$ps-theme-default` map with your custom styles.
```css#
```scss
.ps-theme-my-theme-name {
@include ps-container(map-merge($ps-theme-default, (
border-radius: 0,
scrollbar-x-rail-height: 20px,
scrollbar-x-height: 20px,
scrollbar-y-rail-width: 20px,
scrollbar-y-width: 20px,)
));
scrollbar-y-width: 20px
)));
}
```

Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"engines": {
"node": ">= 0.12.0"
},
"files": [
"dist",
"src",
"index.js",
"jquery.js"
],
"devDependencies": {
"browserify": "^11.2.0",
"del": "^2.0.2",
Expand Down
2 changes: 0 additions & 2 deletions src/js/adaptor/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ function mountJQuery(jQuery) {
ps.destroy(this);
}
}

return jQuery(this);
});
};
}
Expand Down

0 comments on commit f20a853

Please sign in to comment.