|
1 | | -#! /usr/bin/env node |
| 1 | +#! /usr/bin/env node |
2 | 2 | /** |
3 | | - Copyright (c) 2015, 2023, Oracle and/or its affiliates. |
| 3 | + Copyright (c) 2015, 2024, Oracle and/or its affiliates. |
4 | 4 | Licensed under The Universal Permissive License (UPL), Version 1.0 |
5 | 5 | as shown at https://oss.oracle.com/licenses/upl/ |
6 | 6 |
|
7 | 7 | */ |
8 | | - |
9 | | -'use strict'; |
10 | | - |
11 | | -/** |
12 | | - * ## Dependencies |
13 | | - */ |
14 | | -const util = require('./util'); |
15 | | -const config = require('./config'); |
16 | | - |
17 | | -/** |
18 | | - * # 'addPcss' |
19 | | - * |
20 | | - * @public |
21 | | - * @param {Object} options |
22 | | - * @returns {Promise} |
23 | | - */ |
24 | | -module.exports = function (options) { |
25 | | - const installer = util.getInstallerCommand({ options }); |
26 | | - util.log('Installing sass and pcss'); |
27 | | - config.loadOraclejetConfig(); |
28 | | - const sassVer = config.data.sassVer; |
29 | | - |
30 | | - return util.spawn(installer.installer, [installer.verbs.install, |
31 | | - `node-sass@${sassVer}`, |
32 | | - 'postcss-calc@6.0.1', |
33 | | - 'autoprefixer@9.1.5', |
34 | | - '--save-dev=true']); |
35 | | -}; |
| 8 | + |
| 9 | +'use strict'; |
| 10 | + |
| 11 | +/** |
| 12 | + * ## Dependencies |
| 13 | + */ |
| 14 | +const util = require('./util'); |
| 15 | +const config = require('./config'); |
| 16 | + |
| 17 | +/** |
| 18 | + * # 'addPcss' |
| 19 | + * |
| 20 | + * @public |
| 21 | + * @param {Object} options |
| 22 | + * @returns {Promise} |
| 23 | + */ |
| 24 | +module.exports = function (options) { |
| 25 | + const installer = util.getInstallerCommand({ options }); |
| 26 | + util.log('Installing sass and pcss'); |
| 27 | + config.loadOraclejetConfig(); |
| 28 | + const sassVer = config.data.sassVer; |
| 29 | + |
| 30 | + return util.spawn(installer.installer, [installer.verbs.install, |
| 31 | + `node-sass@${sassVer}`, |
| 32 | + 'postcss-calc@6.0.1', |
| 33 | + 'autoprefixer@9.1.5', |
| 34 | + installer.flags.save]); |
| 35 | +}; |
0 commit comments