Skip to content

Commit

Permalink
ci: drop support old node
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jun 6, 2019
1 parent 1539df8 commit 8f15811
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 86 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
sudo: false
language: node_js
node_js:
- "12"
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"

after_script:
- './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls'
- npm run coverage
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
environment:
matrix:
- nodejs_version: "12"
- nodejs_version: "11"
- nodejs_version: "10"
- nodejs_version: "9"
- nodejs_version: "8"
- nodejs_version: "7"
- nodejs_version: "6"

version: "{build}"
build: off
Expand Down
72 changes: 12 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"main": "lib/index.js",
"engines": {
"node": ">=6"
"node": ">=8"
},
"scripts": {
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
Expand Down Expand Up @@ -48,13 +48,14 @@
"@babel/register": "^7.4.4",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-angular": "^8.0.0",
"acorn": "^6.1.1",
"ava": "*",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-preset-minify": "^0.5.0",
"clinton": "^0.14.0",
"conventional-changelog-cli": "^2.0.21",
"coveralls": "^3.0.3",
"coveralls": "^3.0.4",
"eslint": "^5.16.0",
"eslint-config-xo": "^0.26.0",
"eslint-config-xo-space": "^0.21.0",
Expand All @@ -66,7 +67,7 @@
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-unicorn": "^9.0.0",
"husky": "^2.4.0",
"lint-staged": "^8.1.7",
"lint-staged": "^8.2.0",
"nyc": "^14.1.1",
"rimraf": "^2.6.3"
},
Expand Down
36 changes: 18 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Adds the ability to use a custom property in the options, at-rules.
$ npm install postcss-at-rules-variables
```

> **Note:** This project is compatible with node v6+
> **Note:** This project is compatible with node v8+
## Usage

Expand All @@ -38,23 +38,23 @@ var css = fs.readFileSync('css/input.css', 'utf8');

// Process CSS
var output = postcss()
.use(atVariables({ /* atRules: ['media'] */ }))
.use(colorFunction())
.use(atEach())
.use(atImport({
plugins: [
require('postcss-at-rules-variables')({ /* options */ }),
require('postcss-import')
]
}))
.use(atFor())
.use(atIf())
.use(cssVariables())
.use(nested())
.process(css, {
from: 'css/input.css'
})
.css;
.use(atVariables({ /* atRules: ['media'] */ }))
.use(colorFunction())
.use(atEach())
.use(atImport({
plugins: [
require('postcss-at-rules-variables')({ /* options */ }),
require('postcss-import')
]
}))
.use(atFor())
.use(atIf())
.use(cssVariables())
.use(nested())
.process(css, {
from: 'css/input.css'
})
.css;

console.log(output);
```
Expand Down

0 comments on commit 8f15811

Please sign in to comment.