Skip to content

Commit

Permalink
Require Node.js 12 and upgrade dependencies
Browse files Browse the repository at this point in the history
Closes #119
Fixes #118
  • Loading branch information
sindresorhus committed May 29, 2021
1 parent 87ff53d commit a953087
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 27 deletions.
4 changes: 0 additions & 4 deletions .github/funding.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
- 8
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=12"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -30,19 +30,19 @@
"postcss-runner"
],
"dependencies": {
"autoprefixer": "^9.6.1",
"fancy-log": "^1.3.2",
"autoprefixer": "^10.2.6",
"fancy-log": "^1.3.3",
"plugin-error": "^1.0.1",
"postcss": "^7.0.17",
"through2": "^3.0.1",
"postcss": "^8.3.0",
"through2": "^4.0.2",
"vinyl-sourcemaps-apply": "^0.2.1"
},
"devDependencies": {
"ava": "^2.3.0",
"gulp-sourcemaps": "^2.6.0",
"p-event": "^4.1.0",
"vinyl": "^2.1.0",
"xo": "^0.24.0"
"ava": "^2.4.0",
"gulp-sourcemaps": "^3.0.0",
"p-event": "^4.2.0",
"vinyl": "^2.2.1",
"xo": "^0.39.0"
},
"peerDependencies": {
"gulp": ">=4"
Expand Down
5 changes: 0 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/postcss/autoprefixer/issues).*


## Install

```
$ npm install --save-dev gulp-autoprefixer
```


## Usage

```js
Expand All @@ -27,7 +25,6 @@ exports.default = () => (
);
```


## API

### autoprefixer(options?)
Expand All @@ -38,7 +35,6 @@ Type: `object`

See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options).


## Source Maps

Use [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) like this:
Expand All @@ -59,7 +55,6 @@ exports.default = () => (
);
```


## Tip

If you use other PostCSS based tools, like `cssnano`, you may want to run them together using [`gulp-postcss`](https://github.com/postcss/autoprefixer#gulp) instead of `gulp-autoprefixer`. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('autoprefix CSS', async t => {
}));

const file = await data;
t.true(/-/.test(file.contents.toString()));
t.regex(file.contents.toString(), /-/);
t.is(file.relative, 'fixture.css');
});

Expand All @@ -43,8 +43,8 @@ test('generate source maps', async t => {
const file = await data;
t.is(file.sourceMap.mappings, 'AAAA;CACC,aAAa;AACd');
const contents = file.contents.toString();
t.true(/flex/.test(contents));
t.true(/sourceMappingURL=data:application\/json;charset=utf8;base64/.test(contents));
t.regex(contents, /flex/);
t.regex(contents, /sourceMappingURL=data:application\/json;charset=utf8;base64/);
});

test('read upstream source maps', async t => {
Expand Down

0 comments on commit a953087

Please sign in to comment.