Skip to content

Commit 0919944

Browse files
committed
Initial commit
0 parents  commit 0919944

File tree

15 files changed

+2573
-0
lines changed

15 files changed

+2573
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
open_collective: postcss
2+
github: ai

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
permissions:
7+
contents: write
8+
jobs:
9+
release:
10+
name: Release On Tag
11+
if: startsWith(github.ref, 'refs/tags/')
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout the repository
15+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
- name: Extract the changelog
17+
id: changelog
18+
run: |
19+
TAG_NAME=${GITHUB_REF/refs\/tags\//}
20+
READ_SECTION=false
21+
CHANGELOG=""
22+
while IFS= read -r line; do
23+
if [[ "$line" =~ ^#+\ +(.*) ]]; then
24+
if [[ "${BASH_REMATCH[1]}" == "$TAG_NAME" ]]; then
25+
READ_SECTION=true
26+
elif [[ "$READ_SECTION" == true ]]; then
27+
break
28+
fi
29+
elif [[ "$READ_SECTION" == true ]]; then
30+
CHANGELOG+="$line"$'\n'
31+
fi
32+
done < "CHANGELOG.md"
33+
CHANGELOG=$(echo "$CHANGELOG" | awk '/./ {$1=$1;print}')
34+
echo "changelog_content<<EOF" >> $GITHUB_OUTPUT
35+
echo "$CHANGELOG" >> $GITHUB_OUTPUT
36+
echo "EOF" >> $GITHUB_OUTPUT
37+
- name: Create the release
38+
if: steps.changelog.outputs.changelog_content != ''
39+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
40+
with:
41+
name: ${{ github.ref_name }}
42+
body: '${{ steps.changelog.outputs.changelog_content }}'
43+
draft: false
44+
prerelease: false

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
permissions:
8+
contents: read
9+
jobs:
10+
full:
11+
name: Node.js Latest Full
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout the repository
15+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
18+
with:
19+
version: 10
20+
- name: Install Node.js
21+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
22+
with:
23+
node-version: 24
24+
cache: pnpm
25+
- name: Install dependencies
26+
run: pnpm install --ignore-scripts
27+
- name: Run tests
28+
run: pnpm test
29+
short:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
node-version:
34+
- 22
35+
- 20
36+
name: Node.js ${{ matrix.node-version }} Quick
37+
steps:
38+
- name: Checkout the repository
39+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
42+
with:
43+
version: 10
44+
- name: Install Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
cache: pnpm
49+
- name: Install dependencies
50+
run: pnpm install --ignore-scripts
51+
- name: Run unit tests
52+
run: pnpm unit

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
3+
coverage/

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test/
2+
tsconfig.json
3+
coverage/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Change Log
2+
This project adheres to [Semantic Versioning](http://semver.org/).

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright 2025 Andrey Sitnik <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# PostCSS Smooth Shadow
2+
3+
<img align="right" width="135" height="95"
4+
title="Philosopher’s stone, logo of PostCSS"
5+
src="https://postcss.org/logo-leftp.svg">
6+
7+
[PostCSS] plugin
8+
9+
```css
10+
11+
```
12+
13+
```css
14+
15+
```
16+
17+
[postcss-utilities] collection is better for `clearfix` and other popular hacks.
18+
For simple cases you can use [postcss-define-property].
19+
20+
[postcss-define-property]: https://github.com/daleeidd/postcss-define-property
21+
[postcss-utilities]: https://github.com/ismamz/postcss-utilities
22+
[postcss-simple-vars]: https://github.com/postcss/postcss-simple-vars
23+
[postcss-nested]: https://github.com/postcss/postcss-nested
24+
[PostCSS]: https://github.com/postcss/postcss
25+
26+
---
27+
28+
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Built by
29+
<b><a href="https://evilmartians.com/devtools?utm_source=postcss-smooth-shadow&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, go-to agency for <b>developer tools</b>.
30+
31+
---
32+
33+
34+
## Usage
35+
36+
**Step 1:** Install plugin:
37+
38+
```sh
39+
npm install --save-dev postcss postcss-smooth-shadow
40+
```
41+
42+
**Step 2:** Check your project for existed PostCSS config: `postcss.config.js`
43+
in the project root, `"postcss"` section in `package.json`
44+
or `postcss` in bundle config.
45+
46+
If you do not use PostCSS, add it according to [official docs]
47+
and set this plugin in settings.
48+
49+
**Step 3:** Add the plugin to plugins list:
50+
51+
```diff
52+
module.exports = {
53+
plugins: [
54+
+ require('postcss-smooth-shadow'),
55+
require('autoprefixer')
56+
]
57+
}
58+
```

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import loguxConfig from '@logux/eslint-config'
2+
3+
export default [...loguxConfig]

0 commit comments

Comments
 (0)