Skip to content

Commit

Permalink
ADD postcss selector not support
Browse files Browse the repository at this point in the history
  • Loading branch information
nilswindisch committed Mar 6, 2018
1 parent 9ef2251 commit 50cbf59
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ function cssObjectfit() {
fi
}

function cssSelectornot() {
if [ "$npm_package_config_css_selectornot_active" = "true" ]; then
log "🏗️ CSS Selector Not"
./node_modules/.bin/postcss \
./assets/css/style.css \
-m \
-u postcss-selector-not \
-o ./assets/css/style.css \
--verbose
else
log "🏗️ (CSS Selector Not deactivated)"
fi
}

function cssCopyToJekyll() {
log "🏗️ CSS copy to jekyll"
mkdir ./jekyll/assets/css
Expand Down Expand Up @@ -271,6 +285,7 @@ function scssBuildDev() {
cssCalc
cssFontvalues
cssObjectfit
cssSelectornot
cssCustomproperties
cssCopyToJekyll
}
Expand All @@ -281,6 +296,7 @@ function scssBuildDist() {
cssCalc
cssFontvalues
cssObjectfit
cssSelectornot
cssCustomproperties
cssO
cssCopyToJekyll
Expand Down
18 changes: 18 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"postcss-custom-properties": "^7.0.0",
"postcss-minify-font-values": "^1.0",
"postcss-object-fit-images": "^1.1",
"postcss-selector-not": "^3.0.1",
"sassdoc": "^2.5.0"
},
"config": {
Expand Down Expand Up @@ -63,6 +64,9 @@
},
"fontvalues": {
"active": true
},
"selectornot": {
"active": true
}
},
"url": "localhost",
Expand Down

0 comments on commit 50cbf59

Please sign in to comment.