Skip to content

Commit c11b0e1

Browse files
committed
Build with rollup
1 parent 2023362 commit c11b0e1

17 files changed

+1010
-704
lines changed

.babelrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/env',
5+
{
6+
loose : true,
7+
modules: false
8+
}
9+
]
10+
]
11+
};

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
bower_components
2-
node_modules
1+
.idea
32
*.iml
4-
.idea
3+
node_modules
4+
yarn.lock
5+
yarn-error.log

.npmignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
.*
2+
*.iml
13
tests/
2-
examples/
34
images/
4-
bower.json
5-
Gruntfile.js
5+
yarn.lock
6+
yarn-error.log
7+
rollup.config.js

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- "8"
4+
script: npm run compile && npm run test

Gruntfile.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
TinyGradient
2-
============
1+
# tinygradient
32

4-
[![NPM version](https://img.shields.io/npm/v/tinygradient.svg?style=flat-square)](https://www.npmjs.com/package/tinygradient)
5-
[![](https://data.jsdelivr.com/v1/package/npm/tinygradient/badge)](https://www.jsdelivr.com/package/npm/tinygradient)
6-
7-
## JavaScript gradients generator
3+
[![npm version](https://img.shields.io/npm/v/tinygradient.svg?style=flat-square)](https://www.npmjs.com/package/tinygradient)
4+
[![jsDelivr CDN](https://data.jsdelivr.com/v1/package/npm/tinygradient/badge)](https://www.jsdelivr.com/package/npm/tinygradient)
5+
[![Build Status](https://img.shields.io/travis/mistic100/tinygradient/master.svg?style=flat-square)](https://travis-ci.org/mistic100/tinygradient)
6+
[![Dependencies Status](https://david-dm.org/mistic100/tinygradient/status.svg?style=flat-square)](https://david-dm.org/mistic100/tinygradient)
87

98
Easily generate color gradients with an unlimited number of color stops and steps.
10-
11-
Built on top of [TinyColor](https://github.com/bgrins/TinyColor).
129

13-
Compatible with Require.js/AMD and NodeJS.
10+
## Installation
11+
12+
```
13+
$ npm install tinygradient
14+
```
15+
16+
### Dependencies
17+
18+
- [TinyColor](https://github.com/bgrins/TinyColor)
1419

1520
## Usage
1621

@@ -121,11 +126,6 @@ Returns a new instance of TinyGradient with reversed colors.
121126
var reversedGradient = gradient.reverse();
122127
```
123128

124-
## Tests
125-
126-
A Mocha test suite is available.
127129

128-
```
129-
npm install
130-
npm test
131-
```
130+
## License
131+
This library is available under the MIT license.

bower.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)