@bigcommerce/stencil-cli 3.11.0 → 3.12.0
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/CHANGELOG.md +5 -0
- package/lib/css-assembler.js +7 -4
- package/package-lock.json +12 -12
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
### Draft
|
|
2
2
|
|
|
3
|
+
### 3.12.0 (2022-03-29)
|
|
4
|
+
|
|
5
|
+
- feat: allow .css-files imports within SCSS files ([882](https://github.com/bigcommerce/stencil-cli/pull/882))
|
|
6
|
+
- bump paper version ([897](https://github.com/bigcommerce/stencil-cli/pull/897))
|
|
7
|
+
|
|
3
8
|
### 3.11.0 (2022-03-10)
|
|
4
9
|
|
|
5
10
|
- feat: strf-9440 Stencil Bundle: fail on scss failure compilation ([884](https://github.com/bigcommerce/stencil-cli/pull/884))
|
package/lib/css-assembler.js
CHANGED
|
@@ -23,17 +23,20 @@ function assemble(cssFiles, absolutePath, type, options, callback) {
|
|
|
23
23
|
|
|
24
24
|
const parseImports = (cssFileAlias, parseImportsCallback) => {
|
|
25
25
|
const normalizedCssFileAlias = cssFileAlias.replace(/(\.scss)$/g, '');
|
|
26
|
-
const
|
|
26
|
+
const typedCssFilePath = path.join(absolutePath, normalizedCssFileAlias + ext);
|
|
27
|
+
const rawCssFilePath = path.join(absolutePath, normalizedCssFileAlias + '.css');
|
|
27
28
|
const cssFileAliasDir = path.parse(normalizedCssFileAlias).dir;
|
|
28
29
|
|
|
29
|
-
const fileParts = path.parse(
|
|
30
|
+
const fileParts = path.parse(typedCssFilePath);
|
|
30
31
|
const underscoredFilePath = path.join(fileParts.dir, `_${fileParts.base}`);
|
|
31
32
|
let filePath;
|
|
32
33
|
|
|
33
|
-
if (fs.existsSync(
|
|
34
|
-
filePath =
|
|
34
|
+
if (fs.existsSync(typedCssFilePath)) {
|
|
35
|
+
filePath = typedCssFilePath;
|
|
35
36
|
} else if (fs.existsSync(underscoredFilePath)) {
|
|
36
37
|
filePath = underscoredFilePath;
|
|
38
|
+
} else if (ext === '.scss' && fs.existsSync(rawCssFilePath)) {
|
|
39
|
+
filePath = rawCssFilePath;
|
|
37
40
|
} else {
|
|
38
41
|
// File doesn't exist, just return to skip it
|
|
39
42
|
parseImportsCallback();
|
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/stencil-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -537,26 +537,26 @@
|
|
|
537
537
|
}
|
|
538
538
|
},
|
|
539
539
|
"@bigcommerce/stencil-paper": {
|
|
540
|
-
"version": "3.0.
|
|
541
|
-
"resolved": "https://registry.npmjs.org/@bigcommerce/stencil-paper/-/stencil-paper-3.0.
|
|
542
|
-
"integrity": "sha512
|
|
540
|
+
"version": "3.0.5",
|
|
541
|
+
"resolved": "https://registry.npmjs.org/@bigcommerce/stencil-paper/-/stencil-paper-3.0.5.tgz",
|
|
542
|
+
"integrity": "sha512-jIjISuMcW5CSk2CYwhWl1CpVKBUqsTVDUyvPL05XjWQo8/fzAJm/9JL8r52FjfeUrepHkFfTPMoa0mU76S4qNA==",
|
|
543
543
|
"requires": {
|
|
544
|
-
"@bigcommerce/stencil-paper-handlebars": "4.5.
|
|
544
|
+
"@bigcommerce/stencil-paper-handlebars": "4.5.5",
|
|
545
545
|
"accept-language-parser": "~1.4.1",
|
|
546
546
|
"messageformat": "~0.2.2"
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
"@bigcommerce/stencil-paper-handlebars": {
|
|
550
|
-
"version": "4.5.
|
|
551
|
-
"resolved": "https://registry.npmjs.org/@bigcommerce/stencil-paper-handlebars/-/stencil-paper-handlebars-4.5.
|
|
552
|
-
"integrity": "sha512-
|
|
550
|
+
"version": "4.5.5",
|
|
551
|
+
"resolved": "https://registry.npmjs.org/@bigcommerce/stencil-paper-handlebars/-/stencil-paper-handlebars-4.5.5.tgz",
|
|
552
|
+
"integrity": "sha512-RoakM7Z5e/wZhKiuUNPCr1SgAMsR2stWnNqZydRqSV7ZSJdKxfCE4R0t8Y+ZMpgZPGvSOrIWrAcMaty5gLZhsw==",
|
|
553
553
|
"requires": {
|
|
554
554
|
"@bigcommerce/handlebars-v4": "4.7.6",
|
|
555
555
|
"handlebars": "3.0.8",
|
|
556
556
|
"handlebars-helpers": "0.8.4",
|
|
557
557
|
"handlebars-utils": "^1.0.6",
|
|
558
558
|
"he": "^1.2.0",
|
|
559
|
-
"lodash": "^4.17.
|
|
559
|
+
"lodash": "^4.17.21",
|
|
560
560
|
"stringz": "^0.1.1"
|
|
561
561
|
}
|
|
562
562
|
},
|
|
@@ -15436,9 +15436,9 @@
|
|
|
15436
15436
|
"integrity": "sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g=="
|
|
15437
15437
|
},
|
|
15438
15438
|
"uglify-js": {
|
|
15439
|
-
"version": "3.15.
|
|
15440
|
-
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.
|
|
15441
|
-
"integrity": "sha512-
|
|
15439
|
+
"version": "3.15.3",
|
|
15440
|
+
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.3.tgz",
|
|
15441
|
+
"integrity": "sha512-6iCVm2omGJbsu3JWac+p6kUiOpg3wFO2f8lIXjfEb8RrmLjzog1wTPMmwKB7swfzzqxj9YM+sGUM++u1qN4qJg==",
|
|
15442
15442
|
"optional": true
|
|
15443
15443
|
},
|
|
15444
15444
|
"uglify-to-browserify": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/stencil-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "CLI tool to run BigCommerce Stores locally for theme development.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"package-lock.json"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@bigcommerce/stencil-paper": "3.0.
|
|
48
|
+
"@bigcommerce/stencil-paper": "3.0.5",
|
|
49
49
|
"@bigcommerce/stencil-styles": "2.1.2",
|
|
50
50
|
"@hapi/boom": "^8.0.1",
|
|
51
51
|
"@hapi/glue": "^6.2.0",
|