@videinfra/static-website-builder 1.6.2 → 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 CHANGED
@@ -4,6 +4,14 @@ 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
+
11
+ ## [1.6.3] - 2022-10-25
12
+ ### Fixed
13
+ - Error fix for OSX when changing any HTML file
14
+
7
15
  ## [1.6.1] - 2022-10-21
8
16
  ### Fixed
9
17
  - `false` task config being overwritten by empty array resulting in task being performed
@@ -0,0 +1,2 @@
1
+ @import "settings/colors";
2
+ @import "components/button";
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
7
- "node": ">=10.0.0"
7
+ "node": ">=14.15.0 <17"
8
8
  },
9
9
  "bugs": {
10
10
  "url": "https://github.com/videinfra/static-website-builder/issues"
@@ -21,7 +21,8 @@
21
21
  "scripts": {
22
22
  "start": "cross-env BUILDER_MODE=development gulp",
23
23
  "build": "cross-env BUILDER_MODE=production gulp build",
24
- "test": "gulp build --silent --config=init/test/config/config.js && jest"
24
+ "test": "gulp build --silent --config=init/test/config/config.js && jest",
25
+ "test-watch": "gulp --config=init/test/config/config.js"
25
26
  },
26
27
  "dependencies": {
27
28
  "@babel/core": "^7.17.9",
@@ -50,7 +51,7 @@
50
51
  "gulp-svgstore": "^9.0.0",
51
52
  "gulp-twig": "^1.2.0",
52
53
  "minimist": "^1.2.6",
53
- "nano-memoize": "^1.3.0",
54
+ "nano-memoize": "1.3.0",
54
55
  "node-sass": "^7.0.1",
55
56
  "sass": "^1.52.3",
56
57
  "webpack": "^4.46.0",
@@ -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);