@videinfra/static-website-builder 1.6.3 → 1.6.4
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 +4 -0
- package/init/test/src/stylesheets/sub-folder/import-test.scss +2 -0
- package/package.json +2 -2
- package/plugins/sass-engine/preprocess-config.js +10 -0
- package/tests/build/build.test.js +6 -0
- package/package-lock.not-2.json +0 -13199
- package/package-lock.not-3.json +0 -13204
- package/package-lock.not.json +0 -13153
- package/package-lock.workd-3.json +0 -14870
- package/package-lock.works-10.json +0 -13321
- package/package-lock.works-11.json +0 -13310
- package/package-lock.works-12.json +0 -13204
- package/package-lock.works-13.json +0 -13204
- package/package-lock.works-2.json +0 -14684
- package/package-lock.works-4.json +0 -14780
- package/package-lock.works-5.json +0 -14713
- package/package-lock.works-6.json +0 -14587
- package/package-lock.works-7.json +0 -13571
- package/package-lock.works-8.json +0 -13489
- package/package-lock.works-9.json +0 -13385
- package/package-lock.works.json +0 -14504
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.6.4] - 2023-03-29
|
|
8
|
+
### Updated
|
|
9
|
+
- Added stylesheet source path to the default include paths
|
|
10
|
+
|
|
7
11
|
## [1.6.3] - 2022-10-25
|
|
8
12
|
### Fixed
|
|
9
13
|
- Error fix for OSX when changing any HTML file
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@videinfra/static-website-builder",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Customizable static site project builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=14.15.0 <17"
|
|
8
8
|
},
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/videinfra/static-website-builder/issues"
|
|
@@ -17,8 +17,18 @@ module.exports = function processSASSConfig (config, fullConfig) {
|
|
|
17
17
|
if (config.sass.includePaths) {
|
|
18
18
|
// Map include paths to the project folder
|
|
19
19
|
config.sass.includePaths = config.sass.includePaths.map((path) => paths.getProjectPath(path));
|
|
20
|
+
} else {
|
|
21
|
+
config.sass.includePaths = [];
|
|
20
22
|
}
|
|
21
23
|
|
|
24
|
+
// Add stylesheet source path
|
|
25
|
+
const stylesheetSourcePath = getPaths.getSourcePaths('stylesheets')
|
|
26
|
+
|
|
27
|
+
stylesheetSourcePath.forEach((path) => {
|
|
28
|
+
if (!config.sass.includePaths.includes(path)) {
|
|
29
|
+
config.sass.includePaths.push(path);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
22
32
|
|
|
23
33
|
// Engine is a function which returns a gulp pipe function
|
|
24
34
|
config.engine = function getSASSEngine () {
|
|
@@ -27,6 +27,12 @@ test('SASS import test', () => {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
+
test('SASS sub-folder import test', () => {
|
|
31
|
+
return fsPromises.readFile(path.resolve(publicPath, 'assets/stylesheets/sub-folder/import-test.css'), {'encoding': 'utf8'}).then((css) => {
|
|
32
|
+
expect(css).toBe('.btn{color:#fff;background:#222}');
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
30
36
|
test('Font file woff copied', () => {
|
|
31
37
|
expect.assertions(1);
|
|
32
38
|
return expect(fsPromises.access(path.resolve(publicPath, 'assets/fonts/font.woff'))).resolves.toBe(undefined);
|