Skip to content

Commit dcc01e2

Browse files
author
Jed Mao
committed
Update, modernize dependencies
1 parent e6e6ce4 commit dcc01e2

36 files changed

+765
-4003
lines changed

Diff for: .d.ts

-4
This file was deleted.

Diff for: .editorconfig

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
root = true
2-
3-
[*]
4-
indent_style = tab
5-
end_of_line = lf
6-
trim_trailing_whitespace = true
7-
insert_final_newline = true
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[{package.json,*.yml}]
10+
indent_style = space
11+
indent_size = 2

Diff for: .eslintrc

-136
This file was deleted.

Diff for: .gitattributes

-1
This file was deleted.

Diff for: .gitignore

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
*.log
2-
.vs/
3-
build/**/*.js
4-
build/**/*.ts
5-
coverage/
6-
dist/
7-
node_modules/
1+
*.log
2+
.nyc_output/
3+
.vscode/
4+
coverage/
5+
dist/
6+
node_modules/

Diff for: .istanbul.yml

-13
This file was deleted.

Diff for: .npmignore

+9-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
.*
2-
!.d.ts
3-
*.sln*
4-
*.suo
5-
build/
6-
coverage/
7-
lib/
8-
test/
9-
!dist/lib
10-
!dist/d.ts/lib
11-
scripts/
12-
typings/chai/
13-
typings/mocha/
14-
typings/sinon/
15-
typings/sinon-chai/
16-
appveyor.yml
17-
gulpfile.babel.js
18-
jsconfig.json
19-
tsconfig.json
20-
tsd.json
21-
tslint.json
1+
.*
2+
*.map
3+
*.spec.*
4+
.nyc_output/
5+
.vscode/
6+
coverage/
7+
src/
8+
tsconfig.json
9+
tslint.json

Diff for: .tasks/gulp-clean.js

-9
This file was deleted.

Diff for: .tasks/gulp-copy.js

-6
This file was deleted.

Diff for: .tasks/gulp-eslint.js

-14
This file was deleted.

Diff for: .tasks/gulp-tslint.js

-13
This file was deleted.

Diff for: .tasks/gulp-typescript.js

-17
This file was deleted.

Diff for: .tasks/gulp-watch.js

-11
This file was deleted.

Diff for: .travis.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
language: node_js
2-
3-
node_js:
4-
- '0.12'
5-
6-
notifications:
7-
email:
8-
on_success: change
9-
on_failure: always
1+
language: node_js
2+
3+
node_js:
4+
- "node"
5+
- "6"
6+
7+
after_success:
8+
- npm install codecov
9+
- npm run codecov
10+
11+
notifications:
12+
email:
13+
on_success: change
14+
on_failure: always

Diff for: README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
[![NPM version](http://img.shields.io/npm/v/postcss-triangle.svg?style=flat)](https://www.npmjs.org/package/postcss-triangle)
88
[![npm license](http://img.shields.io/npm/l/postcss-triangle.svg?style=flat-square)](https://www.npmjs.org/package/postcss-triangle)
9-
[![Travis Build Status](https://img.shields.io/travis/jedmao/postcss-triangle.svg?label=unix)](https://travis-ci.org/jedmao/postcss-triangle)
10-
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/jedmao/postcss-triangle.svg?label=windows)](https://ci.appveyor.com/project/jedmao/postcss-triangle)
9+
[![Travis Build Status](https://img.shields.io/travis/jedmao/postcss-triangle.svg)](https://travis-ci.org/jedmao/postcss-triangle)
10+
[![codecov](https://codecov.io/gh/jedmao/postcss-triangle/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/postcss-triangle)
11+
[![Dependency Status](https://gemnasium.com/badges/github.com/jedmao/postcss-triangle.svg)](https://gemnasium.com/github.com/jedmao/postcss-triangle)
1112

1213
[![npm](https://nodei.co/npm/postcss-triangle.svg?downloads=true)](https://nodei.co/npm/postcss-triangle/)
1314

@@ -172,22 +173,15 @@ $ npm install postcss-triangle
172173
### JavaScript
173174

174175
```js
175-
postcss([
176-
require('postcss-triangle')(/* options */),
177-
// more plugins...
178-
])
176+
postcss([ require('postcss-triangle')(/* options */) ]);
179177
```
180178

181179
### TypeScript
182180

183181
```ts
184-
///<reference path="node_modules/postcss-triangle/.d.ts" />
185-
import postcssTriangle from 'postcss-triangle';
182+
import * as postcssTriangle from 'postcss-triangle';
186183

187-
postcss([
188-
postcssTriangle(/* options */),
189-
// more plugins...
190-
])
184+
postcss([ postcssTriangle(/* options */) ]);
191185
```
192186

193187
## Options

Diff for: appveyor.yml

-18
This file was deleted.

Diff for: build/.eslintrc

-7
This file was deleted.

Diff for: build/test/.eslintrc

-5
This file was deleted.

0 commit comments

Comments
 (0)