@epublishing/grunt-epublishing 0.2.56 → 0.2.58
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/lib/configure-sass.js +1 -2
- package/lib/init-jade-config.js +1 -2
- package/package.json +2 -2
package/lib/configure-sass.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
const _ = require('lodash');
|
|
8
7
|
const sass = require('node-sass');
|
|
9
8
|
const NODE_ENV = process.env.NODE_ENV || 'development';
|
|
10
9
|
|
|
@@ -12,7 +11,7 @@ module.exports = function configureSass(config) {
|
|
|
12
11
|
|
|
13
12
|
config.sass.options.functions = {
|
|
14
13
|
'epub-show-deprecation-warnings()': () => {
|
|
15
|
-
if (
|
|
14
|
+
if ([ 'local', 'development' ].includes(NODE_ENV)) {
|
|
16
15
|
return sass.types.Boolean.TRUE;
|
|
17
16
|
}
|
|
18
17
|
return sass.types.Boolean.FALSE;
|
package/lib/init-jade-config.js
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
|
-
const _ = require('lodash');
|
|
11
10
|
const fs = require('fs');
|
|
12
11
|
const prettyjson = require('prettyjson');
|
|
13
12
|
const mergeConfigs = require('./merge-configs');
|
|
@@ -31,7 +30,7 @@ module.exports = function initJadeConfig(grunt, jadePath, jadeChildPath, jadeChi
|
|
|
31
30
|
baseConfig = mergeConfigs(baseConfig, jadePath);
|
|
32
31
|
|
|
33
32
|
// Loop through all detected engine gem paths and merge their Grunt configurations into baseConfig
|
|
34
|
-
for (const childPath of
|
|
33
|
+
for (const childPath of Object.values(jadeChildPaths)) {
|
|
35
34
|
baseConfig = mergeConfigs(baseConfig, childPath);
|
|
36
35
|
}
|
|
37
36
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epublishing/grunt-epublishing",
|
|
3
3
|
"description": "Automated front-end tasks for ePublishing Jade and client sites.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.58",
|
|
5
5
|
"homepage": "https://www.epublishing.com",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"node": ">= 8.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@epublishing/babel-preset-epublishing": "^0.1.
|
|
22
|
+
"@epublishing/babel-preset-epublishing": "^0.1.7",
|
|
23
23
|
"@epublishing/get-gem-paths": "^0.1.1",
|
|
24
24
|
"@epublishing/grunt-install-eslint": "^0.1.1",
|
|
25
25
|
"@epublishing/jade-resolver": "^0.1.2",
|