From 0813fc5c2c92ab4983d0e7275e6a9b2b77185629 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Mon, 16 Dec 2019 18:41:22 +0200 Subject: [PATCH] Reorganize package. --- .github/workflows/nodejs.yml | 24 ++++++++++++++++++++++++ .gitignore | 5 ----- .npmignore | 13 ------------- .travis.yml | 5 ----- LICENSE | 21 +++++++++++++++++++++ README.md | 30 ++---------------------------- package.json | 24 ++++++++++++++---------- 7 files changed, 61 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/nodejs.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .travis.yml create mode 100644 LICENSE diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..41e0d3a --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,24 @@ +name: Node +on: [push, pull_request] +env: + CI: true + +jobs: + build: + name: v${{ matrix.node-version }} @ ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node-version: [10, 12] + os: [ubuntu-latest, macOS-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - name: Run tests + run: npm run test diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9fae738..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -*~ -*.bak -.DS_Store -npm-debug.log -node_modules/ diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 71d8676..0000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -.lock-wscript -.svn/ -.hg/ -.git/ -CVS/ -*~ -*.bak -.DS_Store -npm-debug.log -test/ -src/ -CHANGELOG.md - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5cd7ede..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 'node' - - '5' - - '4' diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a225a80 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2012-2019 Paul Miller (https://paulmillr.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: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 90b9b39..55bd32c 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,13 @@ # clean-css-brunch Adds [clean-css](https://github.com/GoalSmashers/clean-css) support to -[brunch](http://brunch.io). +[brunch](https://brunch.io). The plugin will minify your CSS files. ## Usage -Install the plugin via npm with `npm install --save-dev clean-css-brunch`. - -Or, do manual install: - -* Add `"clean-css-brunch": "x.y.z"` to `package.json` of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version. -* If you want to use git version of plugin, add -`"clean-css-brunch": "git+ssh://git@github.com:brunch/clean-css-brunch.git"`. +Install the plugin via npm with `npm install -S clean-css-brunch`. ## Options @@ -47,23 +41,3 @@ module.exports = { ## License The MIT License (MIT) - -Copyright (c) 2012-2017 Paul Miller (http://paulmillr.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: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/package.json b/package.json index 1a8d288..27fc2e8 100644 --- a/package.json +++ b/package.json @@ -1,27 +1,31 @@ { "name": "clean-css-brunch", - "version": "2.11.0", + "version": "3.0.0-pre", "description": "Adds CleanCSS support to brunch.", - "author": "Paul Miller (http://paulmillr.com/)", + "author": "Paul Miller (https://paulmillr.com/)", "homepage": "https://github.com/brunch/clean-css-brunch", "license": "MIT", + "scripts": { + "test": "eslint index.js && mocha" + }, "repository": { "type": "git", "url": "git@github.com:brunch/clean-css-brunch.git" }, - "scripts": { - "test": "eslint index.js && mocha" - }, + "files": ["index.js"], "dependencies": { - "clean-css": "~4.1" + "clean-css": "~4.2" }, "devDependencies": { - "chai": "^3.4.1", - "eslint": "^3.12.2", - "eslint-config-brunch": "^1", - "mocha": "^2.3.4" + "chai": "^4.2", + "eslint": "^6.7", + "eslint-config-brunch": "^1.2", + "mocha": "^6.2" }, "eslintConfig": { "extends": "brunch" + }, + "engines": { + "node": ">= 10.16" } }