@epublishing/grunt-epublishing 0.2.60 → 0.2.62
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 +2 -8
- package/package.json +9 -4
- package/tasks/jade.js +16 -0
package/lib/configure-sass.js
CHANGED
|
@@ -4,19 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
const sass = require('
|
|
7
|
+
const sass = require('sass');
|
|
8
8
|
const NODE_ENV = process.env.NODE_ENV || 'development';
|
|
9
9
|
|
|
10
10
|
module.exports = function configureSass(config) {
|
|
11
11
|
|
|
12
12
|
config.sass.options.functions = {
|
|
13
|
-
'epub-
|
|
14
|
-
if ([ 'local', 'development' ].includes(NODE_ENV)) {
|
|
15
|
-
return sass.types.Boolean.TRUE;
|
|
16
|
-
}
|
|
17
|
-
return sass.types.Boolean.FALSE;
|
|
18
|
-
},
|
|
19
|
-
'epub-node-env()': () => new sass.types.String(NODE_ENV),
|
|
13
|
+
'epub-node-env()': () => new sass.String(NODE_ENV),
|
|
20
14
|
};
|
|
21
15
|
|
|
22
16
|
return config;
|
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.62",
|
|
5
5
|
"homepage": "https://www.epublishing.com",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -19,12 +19,17 @@
|
|
|
19
19
|
"node": ">= 8.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
22
|
+
"@babel/core": "^7.25.2",
|
|
23
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
24
|
+
"@babel/plugin-transform-react-jsx": "^7.25.2",
|
|
25
|
+
"@babel/preset-env": "^7.25.4",
|
|
26
|
+
"@babel/preset-react": "^7.24.7",
|
|
27
|
+
"@epublishing/babel-preset-epublishing": "^0.2.0",
|
|
23
28
|
"@epublishing/get-gem-paths": "^0.1.1",
|
|
24
29
|
"@epublishing/grunt-install-eslint": "^0.1.1",
|
|
25
30
|
"@epublishing/jade-resolver": "^0.1.2",
|
|
26
31
|
"async": "^2.6.1",
|
|
27
|
-
"babel-loader": "^
|
|
32
|
+
"babel-loader": "^9.1.3",
|
|
28
33
|
"babel-minify-webpack-plugin": "^0.3.0",
|
|
29
34
|
"babel-plugin-transform-react-jsx": "^6.24.1",
|
|
30
35
|
"bourbon": "^4.2.7",
|
|
@@ -65,10 +70,10 @@
|
|
|
65
70
|
"jit-grunt": "^0.10.0",
|
|
66
71
|
"listr": "^0.14.1",
|
|
67
72
|
"lodash": "^4.17.10",
|
|
68
|
-
"node-sass": "4.7.2",
|
|
69
73
|
"postcss-css-variables": "^0.9.0",
|
|
70
74
|
"prettyjson": "^1.2.1",
|
|
71
75
|
"read-pkg": "^4.0.1",
|
|
76
|
+
"sass": "^1.49.9",
|
|
72
77
|
"style-loader": "^0.20.2",
|
|
73
78
|
"susy": "^2.2.14",
|
|
74
79
|
"time-grunt": "^1.4.0",
|
package/tasks/jade.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
|
|
3
|
+
if (typeof globalThis === 'undefined') {
|
|
4
|
+
(function() {
|
|
5
|
+
if (typeof self !== 'undefined') { self.globalThis = self; }
|
|
6
|
+
else if (typeof window !== 'undefined') { window.globalThis = window; }
|
|
7
|
+
else if (typeof global !== 'undefined') { global.globalThis = global; }
|
|
8
|
+
else {
|
|
9
|
+
Object.defineProperty(Object.prototype, 'globalThis', {
|
|
10
|
+
get: function() {
|
|
11
|
+
return this;
|
|
12
|
+
},
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
})();
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
'use strict';
|
|
4
20
|
|
|
5
21
|
const path = require('path');
|