Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ci and test utils #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{json,md,yml}]
indent_size = 2
indent_style = space
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js CI

on:
push:
branches: master
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
node_modules
npm-debug.log
test/*.result.css
package-lock.json
yarn.lock
.*
!.editorconfig
!.gitignore
!.tape.js
!.github
*.log*
*.result.css
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ grunt.initConfig({

[npm-url]: https://www.npmjs.com/package/postcss-at-else
[npm-img]: https://img.shields.io/npm/v/postcss-at-else.svg
[cli-url]: https://travis-ci.org/jonathantneal/postcss-at-else
[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-at-else.svg
[cli-url]: https://github.com/csstools/postcss-at-else/actions/workflows/ci.yaml
[cli-img]: https://github.com/csstools/postcss-at-else/actions/workflows/ci.yaml/badge.svg
[lic-url]: LICENSE.md
[lic-image]: https://img.shields.io/npm/l/postcss-at-else.svg
[log-url]: CHANGELOG.md
[log-image]: https://img.shields.io/badge/changelog-md-blue.svg
[git-url]: https://gitter.im/postcss/postcss
[git-image]: https://img.shields.io/badge/chat-gitter-blue.svg

[@else]: https://github.com/jonathantneal/postcss-at-else
[@else]: https://github.com/csstools/postcss-at-else
[PostCSS]: https://github.com/postcss/postcss
[Gulp PostCSS]: https://github.com/postcss/gulp-postcss
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
32 changes: 11 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,37 @@
"description": "Use @else inverted media queries in CSS",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"repository": "jonathantneal/postcss-at-else",
"homepage": "https://github.com/jonathantneal/postcss-at-else#readme",
"bugs": "https://github.com/jonathantneal/postcss-at-else/issues",
"repository": "csstools/postcss-at-else",
"homepage": "https://github.com/csstools/postcss-at-else#readme",
"bugs": "https://github.com/csstools/postcss-at-else/issues",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"lint": "echint && eslint index.js && jscs index.js",
"prepublish": "npm test",
"tape": "postcss-tape --plugin index.js",
"test": "npm run lint && postcss-tape"
"lint": "eslint . --cache",
"pretest": "npm run lint",
"test": "postcss-tape",
"prepublishOnly": "npm test"
},
"engines": {
"node": ">=10"
"node": "^10 || ^12 || >=14"
},
"peerDependencies": {
"postcss": "^8.0.0"
},
"devDependencies": {
"echint": "^2.1.0",
"echint-config-dev": "1.0.0",
"eslint": "^3.12.1",
"eslint-config-dev": "1.0.0",
"jscs": "^3.0.7",
"jscs-config-dev": "1.0.1",
"eslint": "^7.32.0",
"eslint-config-dev": "2.0.0",
"postcss": "^8.3.4",
"postcss-tape": "^6.0.1 "
},
"echint": {
"extends": "dev"
"postcss-tape": "^6.0.1"
},
"eslintConfig": {
"extends": "dev",
"parserOptions": {
"sourceType": "module"
}
},
"jscsConfig": {
"preset": "dev"
},
"keywords": [
"postcss",
"css",
Expand Down