Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* deps: update dependencies

* fix name

* fix urls

* update to postcss 8 api

* deps: update css-values-parser to v5

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
  • Loading branch information
2 people authored and romainmenke committed Dec 15, 2021
1 parent 295a6ff commit 9c16e31
Show file tree
Hide file tree
Showing 6 changed files with 622 additions and 582 deletions.
27 changes: 21 additions & 6 deletions plugins/postcss-color-rebeccapurple/.rollup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import pkg from './package.json'
import babel from '@rollup/plugin-babel'

export default {
...pkg.rollup,
plugins: pkg.rollup.plugins.map(plugin => require(plugin)()),
onwarn(warning, warn) {
if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning)
}
input: 'src/index.js',
plugins: [
babel({
babelHelpers: 'bundled',
presets: [
['@babel/env', {
modules: false,
targets: { node: 10 }
}]
]
})
],
external: [
'postcss',
'postcss-values-parser'
],
output: [
{ file: 'dist/index.cjs.js', format: 'cjs', sourcemap: true, exports: 'default' },
{ file: 'dist/index.esm.js', format: 'esm', sourcemap: true, exports: 'default' }
]
}
2 changes: 1 addition & 1 deletion plugins/postcss-color-rebeccapurple/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ scope and avoid unrelated commits.
cd postcss-color-rebeccapurple

# Assign the original repo to a remote called "upstream"
git remote add upstream git@github.com:csstools/postcss-color-rebeccapurple.git
git remote add upstream git@github.com:postcss/postcss-color-rebeccapurple.git

# Install the tools necessary for testing
npm install
Expand Down
4 changes: 2 additions & 2 deletions plugins/postcss-color-rebeccapurple/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# PostCSS RebeccaPurple [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss]

[<img alt="npm version" src="https://img.shields.io/npm/v/postcss-lab-function.svg" height="20">][npm-url]
[<img alt="npm version" src="https://img.shields.io/npm/v/postcss-color-rebeccapurple.svg" height="20">][npm-url]
[<img alt="CSS Standard Status" src="https://cssdb.org/badge/rebeccapurple-color.svg" height="20">][css-url]
[<img alt="Build Status" src="https://img.shields.io/travis/csstools/postcss-lab-function/master.svg" height="20">][cli-url]
[<img alt="Build Status" src="https://img.shields.io/travis/postcss/postcss-color-rebeccapurple/master.svg" height="20">][cli-url]
[<img alt="Support Chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url]

[PostCSS RebeccaPurple] lets you use the `rebeccapurple` color keyword in CSS.
Expand Down
Loading

0 comments on commit 9c16e31

Please sign in to comment.