@lipemat/js-boilerplate 10.11.1 → 10.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/webpack.dist.js
CHANGED
|
@@ -145,6 +145,7 @@ module.exports = {
|
|
|
145
145
|
{
|
|
146
146
|
loader: '@teamsupercell/typings-for-css-modules-loader',
|
|
147
147
|
options: {
|
|
148
|
+
banner: '// Autogenerated by typings-for-css-modules-loader.',
|
|
148
149
|
disableLocalsExport: true,
|
|
149
150
|
prettierConfigFile: path.resolve( __dirname, '../helpers/.prettierrc.json' ),
|
|
150
151
|
},
|
package/lib/postcss-pretty.js
CHANGED
|
@@ -30,7 +30,12 @@ function processCss(node) {
|
|
|
30
30
|
indent(node, nodeDepth, 'before');
|
|
31
31
|
indent(node, nodeDepth, 'after');
|
|
32
32
|
if (0 === nodeDepth) {
|
|
33
|
-
node.raws.before
|
|
33
|
+
if ('undefined' === typeof node.raws.before) {
|
|
34
|
+
node.raws.before = '\n\n';
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
node.raws.before += '\n';
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
const plugin = {
|
package/lib/postcss-pretty.ts
CHANGED
|
@@ -46,7 +46,11 @@ function processCss( node: ChildNode ) {
|
|
|
46
46
|
indent( node, nodeDepth, 'after' );
|
|
47
47
|
|
|
48
48
|
if ( 0 === nodeDepth ) {
|
|
49
|
-
node.raws.before
|
|
49
|
+
if ( 'undefined' === typeof node.raws.before ) {
|
|
50
|
+
node.raws.before = '\n\n';
|
|
51
|
+
} else {
|
|
52
|
+
node.raws.before += '\n';
|
|
53
|
+
}
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ Validate CSS modules using .d.ts definition files for each CSS module.
|
|
|
8
8
|
- Generates .d.ts files for each CSS module.
|
|
9
9
|
- Runs \`dist\` to validate compilation using TS.
|
|
10
10
|
|
|
11
|
-
@
|
|
11
|
+
@deprecated Not needed anymore now PHPStorm supports .d.ts files for CSS modules.
|
|
12
12
|
|
|
13
13
|
@see .github/workflows/pull-request-lint-action.yml
|
|
14
14
|
|