Skip to content

Commit 6c0813a

Browse files
committed
compile and fix warnings
1 parent 2429e26 commit 6c0813a

10 files changed

+7127
-3919
lines changed

dist/gridlex.css

+352-352
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gridlex.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gridlex.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/gridlex.css

+352-352
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/gridlex.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/gridlex.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+6,395-3,197
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
"style": "docs/gridlex.css",
2525
"scripts": {
2626
"version": "npm run dist && git add -A .",
27-
"dist": "node-sass src/gridlex.scss --sourceMap dist/ -o dist/ && postcss dist/gridlex.css > dist/gridlex.min.css && npm run docs",
27+
"compile": "node-sass src/gridlex.scss --sourceMap dist/ -o dist/",
28+
"minify": "postcss dist/gridlex.css > dist/gridlex.min.css",
29+
"dist": "npm run compile && npm run minify && npm run docs",
2830
"docs": "cp -R dist/*.* docs"
2931
},
3032
"devDependencies": {
31-
"cssnano": "^3.10.0",
32-
"node-sass": "^4.5.3",
33-
"postcss-cli": "^4.1.0"
33+
"cssnano": "^5",
34+
"node-sass": "^7",
35+
"postcss": "^8.4.16",
36+
"postcss-cli": "^10"
3437
}
3538
}

postcss.config.js

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
module.exports = {
2-
plugins: [
3-
require('cssnano')({
4-
preset: 'default',
5-
})
6-
]
2+
plugins: [
3+
require('cssnano')({
4+
preset: [
5+
'default',
6+
{
7+
calc: false,
8+
discardComments: {
9+
removeAll: true
10+
}
11+
}
12+
]
13+
})
14+
]
715
};

src/gridlex-preprocessing.scss

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ $gl-colPortions: (
66
0: 0
77
);
88
@for $i from 1 through $gl-colCount {
9-
$gl-colPortions: map-merge($gl-colPortions, ($i: ($gl-colUnit*$i)));
9+
$gl-colPortions: map-merge($gl-colPortions, ($i: calc($gl-colUnit * $i)));
1010
}
1111

1212
// calculate and store nth fractions for grid by number
13-
$gl-colFractions: (
14-
0: 0 // Avoid division by zero if $i would start at 0
15-
);
13+
// Avoid division by zero if $i would start at 0
14+
$gl-colFractions: (0: 0);
1615
@for $i from 1 through $gl-colCount {
1716
$fraction: calc(1 / $i);
18-
$gl-colFractions: map-merge($gl-colFractions, ($fraction: $fraction * 100%));
17+
$gl-colFractions: map-merge($gl-colFractions, ($fraction: calc($fraction * 100%)));
1918
}

0 commit comments

Comments
 (0)