@videinfra/static-website-builder 2.0.2 → 2.0.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.
Files changed (122) hide show
  1. package/.prettierrc +11 -11
  2. package/CHANGELOG.md +214 -210
  3. package/README.md +102 -102
  4. package/bin/builder.js +40 -40
  5. package/eslint.config.js +39 -39
  6. package/gulpfile.js +63 -63
  7. package/init/default/config/config.js +44 -44
  8. package/init/default/src/html/data/global.js +9 -9
  9. package/init/default/src/javascripts/_entries.js +14 -14
  10. package/init/index.js +63 -63
  11. package/init/test/.env +6 -6
  12. package/init/test/.env.local +3 -2
  13. package/init/test/config/config.js +71 -67
  14. package/init/test/src/html/404.twig +12 -12
  15. package/init/test/src/html/data/global.js +10 -10
  16. package/init/test/src/html/env.twig +21 -21
  17. package/init/test/src/html/layouts/base.twig +1 -1
  18. package/init/test/src/html/other.twig +9 -9
  19. package/init/test/src/html/preposition.twig +4 -4
  20. package/init/test/src/javascripts/_entries-alt.js +10 -10
  21. package/init/test/src/javascripts/_entries.js +19 -19
  22. package/init/test/src/javascripts/common.js +13 -13
  23. package/init/test/src/javascripts/main.js +8 -8
  24. package/init/test/src/javascripts/something.ts +9 -9
  25. package/init/test/src/stylesheets/autoprefixer-test.scss +3 -3
  26. package/init/test/src/stylesheets/env-test.scss +28 -28
  27. package/init/test/src/stylesheets/ignore-test.scss +4 -4
  28. package/init/test/src/stylesheets/nested-calc-test.scss +3 -3
  29. package/init/test/src/stylesheets/sub-folder/import-test.scss +2 -2
  30. package/lib/camelize-file-name.js +21 -21
  31. package/lib/generate-gulp-tasks.js +85 -85
  32. package/lib/get-config.js +203 -204
  33. package/lib/get-file-names.js +23 -23
  34. package/lib/get-path.js +102 -102
  35. package/lib/globs-helper.js +243 -243
  36. package/lib/gulp/dynamic-task.js +8 -8
  37. package/lib/gulp/resolve-dynamic-task.js +11 -11
  38. package/lib/gulp/task-before-dest.js +8 -8
  39. package/lib/gulp/task-end.js +10 -10
  40. package/lib/gulp/task-start.js +12 -12
  41. package/lib/gulp/task-watch.js +66 -66
  42. package/lib/init/copy-folder.js +50 -50
  43. package/lib/init/folder-exists.js +10 -10
  44. package/lib/init/get-folder-list.js +16 -16
  45. package/lib/init/merge-package.js +17 -17
  46. package/lib/init/read-package.js +17 -17
  47. package/lib/log-error.js +15 -15
  48. package/lib/merge.js +27 -27
  49. package/lib/run-preprocess.js +32 -32
  50. package/lib/task-order.js +19 -19
  51. package/package.json +68 -68
  52. package/plugins/example/preprocess-config.js +17 -17
  53. package/plugins/example/task.js +55 -55
  54. package/plugins/example.js +38 -38
  55. package/plugins/sass-engine/preprocess-config.js +59 -59
  56. package/plugins/sass.js +41 -41
  57. package/plugins/twig/lodash-filters/filters.js +91 -91
  58. package/plugins/twig/lodash-filters.js +14 -14
  59. package/plugins/twig/symfony-filters/filters.js +102 -102
  60. package/plugins/twig/symfony-filters/preposition_nbsp.js +77 -77
  61. package/plugins/twig/symfony-filters.js +14 -14
  62. package/plugins/twig/symfony-functions/functions.js +31 -31
  63. package/plugins/twig/symfony-functions.js +14 -14
  64. package/plugins/twig-engine/preprocess-config.js +53 -53
  65. package/plugins/twig.js +74 -74
  66. package/tasks/browser-sync/config.js +39 -39
  67. package/tasks/browser-sync/preprocess-config.js +32 -32
  68. package/tasks/browser-sync/task.js +9 -9
  69. package/tasks/clean/config.js +20 -20
  70. package/tasks/clean/preprocess-config.js +19 -19
  71. package/tasks/clean/task.js +7 -7
  72. package/tasks/data/config.js +34 -34
  73. package/tasks/data/data-loader-js.js +14 -14
  74. package/tasks/data/data-loader-json.js +5 -5
  75. package/tasks/data/get-data.js +96 -96
  76. package/tasks/env/config.js +26 -23
  77. package/tasks/env/get-env.js +113 -81
  78. package/tasks/fonts/config.js +24 -24
  79. package/tasks/fonts/task.js +47 -47
  80. package/tasks/global/config.js +7 -7
  81. package/tasks/html/config.js +42 -42
  82. package/tasks/html/task.js +91 -91
  83. package/tasks/icons/config.js +47 -47
  84. package/tasks/icons/preprocess-config.js +60 -60
  85. package/tasks/icons/task.js +56 -56
  86. package/tasks/images/config.js +27 -27
  87. package/tasks/images/task.js +46 -46
  88. package/tasks/javascripts/config.js +69 -69
  89. package/tasks/javascripts/preprocess-config.js +109 -109
  90. package/tasks/javascripts/task.js +86 -86
  91. package/tasks/sitemap/config.js +48 -48
  92. package/tasks/sitemap/preprocess-config.js +18 -18
  93. package/tasks/sitemap/task.js +69 -69
  94. package/tasks/sizereport/config.js +23 -23
  95. package/tasks/sizereport/task.js +16 -16
  96. package/tasks/static/config.js +27 -27
  97. package/tasks/static/task.js +46 -46
  98. package/tasks/stylesheets/config.js +85 -85
  99. package/tasks/stylesheets/preprocess-config.js +41 -41
  100. package/tasks/stylesheets/task.js +73 -73
  101. package/tests/build/build.test.js +153 -153
  102. package/tests/camelize-file-name.test.js +11 -11
  103. package/tests/generate-gulp-tasks.test.js +78 -78
  104. package/tests/glob-helper.test.js +99 -99
  105. package/tests/merge.test.js +10 -10
  106. package/tests/preposition_nbsp.test.js +50 -50
  107. package/tests/run-preprocess.test.js +90 -90
  108. package/tests/sass-stringify.test.js +24 -24
  109. package/tests/sitemap.test.js +12 -12
  110. package/vendor/gulp-rolldown/index.js +151 -151
  111. package/vendor/gulp-rolldown/plugin-raw.js +17 -17
  112. package/vendor/gulp-rolldown/plugin-virtual-entry.js +30 -30
  113. package/vendor/gulp-sass/CHANGELOG.md +168 -168
  114. package/vendor/gulp-sass/LICENSE +20 -20
  115. package/vendor/gulp-sass/README.md +187 -187
  116. package/vendor/gulp-sass/index.js +208 -208
  117. package/vendor/gulp-sass/package.json +61 -61
  118. package/vendor/gulp-sass/sass-stringify.js +32 -32
  119. package/vendor/gulp-twig/LICENSE +20 -20
  120. package/vendor/gulp-twig/README.md +167 -167
  121. package/vendor/gulp-twig/index.js +138 -138
  122. package/vendor/gulp-twig/package.json +44 -44
@@ -1,168 +1,168 @@
1
- # gulp-sass Changelog
2
-
3
- ## v5.0.0
4
-
5
- **June 25, 2021**
6
-
7
- <https://github.com/dlmanning/gulp-sass/releases/tag/v5.0.0>
8
-
9
- ## v4.1.1
10
-
11
- **June 24, 2021**
12
-
13
- <https://github.com/dlmanning/gulp-sass/releases/tag/v4.1.1>
14
-
15
- ## v4.1.0
16
-
17
- **April 23, 2020**
18
-
19
- <https://github.com/dlmanning/gulp-sass/releases/tag/v4.1.0>
20
-
21
- ## v4.0.2
22
-
23
- **October 16, 2018**
24
-
25
- <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.2>
26
-
27
- ## v4.0.1
28
-
29
- **Apr 8, 2018**
30
-
31
- <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.1>
32
-
33
- ## v4.0.0
34
-
35
- **April 5, 2018**
36
-
37
- <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.0>
38
-
39
- ## v3.2.1
40
-
41
- **March 24, 2018**
42
-
43
- <https://github.com/dlmanning/gulp-sass/releases/tag/v3.2.1>
44
-
45
- ## v3.2.0
46
-
47
- **March 12, 2018**
48
-
49
- <https://github.com/dlmanning/gulp-sass/releases/tag/v3.2.0>
50
-
51
- ## v3.1.0
52
-
53
- **January 9, 2017**
54
-
55
- <https://github.com/dlmanning/gulp-sass/releases/tag/v3.1.0>
56
-
57
- ## v3.0.0
58
-
59
- **January 9, 2017**
60
-
61
- <https://github.com/dlmanning/gulp-sass/releases/tag/v3.0.0>
62
-
63
- ## v2.3.2
64
-
65
- **June 15, 2016**
66
-
67
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.2>
68
-
69
- ## v2.3.1
70
-
71
- **April 22, 2016**
72
-
73
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.1>
74
-
75
- ## v2.3.0
76
-
77
- **April 21, 2016**
78
-
79
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.0>
80
-
81
- ## v2.3.0-beta.1
82
-
83
- **February 4, 2016**
84
-
85
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.0-beta.1>
86
-
87
- ## v2.2.0
88
-
89
- **February 4, 2016**
90
-
91
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.2.0>
92
-
93
- ## v2.1.0
94
-
95
- **November 2, 2015**
96
-
97
- <https://github.com/dlmanning/gulp-sass/releases/tag/v2.1.0>
98
-
99
- ## v2.1.0-beta
100
-
101
- **September 21, 2015**
102
-
103
- * **Change** Updated to `node-sass` 3.4.0-beta1
104
-
105
- ## v2.0.4
106
-
107
- **July 15, 2015**
108
-
109
- * **Fix** Relative file path now uses `file.relative` instead of arcane `split('/').pop` magic. Resolves lots of issues with source map paths.
110
- * **Fix** Empty partials no longer copied to CSS folder
111
-
112
- ## v2.0.3
113
-
114
- **June 27, 2015**
115
-
116
- * **Fix** Empty partials are no longer copied to CSS folder
117
-
118
- ## v2.0.2
119
-
120
- **June 25, 2015**
121
-
122
- * **Fix** Error in watch stream preventing watch from continuing
123
-
124
- ## v2.0.1
125
-
126
- **May 13, 2015**
127
-
128
- * **Fix** Source maps now work as expected with Autoprefixer
129
- * **Fix** Current file directory `unshift` onto includePaths stack so it's checked first
130
- * **Fix** Error message returned is unformatted so as to not break other error handling (*i.e.* `gulp-notify`)
131
-
132
- ## v2.0.0
133
-
134
- **May 6, 2015**
135
-
136
- * **Change** Updated to `node-sass` 3.0.0
137
-
138
- ## v2.0.0-alpha.1
139
-
140
- **March 26, 2015**
141
-
142
- * **New** Added `renderSync` option that can be used through `sass.sync()`
143
-
144
- ### March 24, 2015
145
-
146
- * **Change** Updated to `node-sass` 3.0.0-alpha.1
147
- * **New** Added support for `gulp-sourcemaps` including tests
148
- * **New** Added `.editorconfig` for development consistency
149
- * **New** Added linting and test for said linting
150
- * **Change** Updated the README
151
- * **New** `logError` function to make streaming errors possible instead of breaking the stream
152
-
153
- ### 1.3.3
154
-
155
- * updated to `node-sass` 2.0 (final)
156
- * should now work with Node.js 0.12 and io.js
157
-
158
- ### 1.3.2
159
-
160
- * fixed `errLogToConsole`
161
-
162
- ### 1.3.1
163
-
164
- * bug fix
165
-
166
- ## Version 1.3.0
167
-
168
- * Supports `node-sass` 2.0 (thanks laurelnaiad!)
1
+ # gulp-sass Changelog
2
+
3
+ ## v5.0.0
4
+
5
+ **June 25, 2021**
6
+
7
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v5.0.0>
8
+
9
+ ## v4.1.1
10
+
11
+ **June 24, 2021**
12
+
13
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v4.1.1>
14
+
15
+ ## v4.1.0
16
+
17
+ **April 23, 2020**
18
+
19
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v4.1.0>
20
+
21
+ ## v4.0.2
22
+
23
+ **October 16, 2018**
24
+
25
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.2>
26
+
27
+ ## v4.0.1
28
+
29
+ **Apr 8, 2018**
30
+
31
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.1>
32
+
33
+ ## v4.0.0
34
+
35
+ **April 5, 2018**
36
+
37
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v4.0.0>
38
+
39
+ ## v3.2.1
40
+
41
+ **March 24, 2018**
42
+
43
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v3.2.1>
44
+
45
+ ## v3.2.0
46
+
47
+ **March 12, 2018**
48
+
49
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v3.2.0>
50
+
51
+ ## v3.1.0
52
+
53
+ **January 9, 2017**
54
+
55
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v3.1.0>
56
+
57
+ ## v3.0.0
58
+
59
+ **January 9, 2017**
60
+
61
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v3.0.0>
62
+
63
+ ## v2.3.2
64
+
65
+ **June 15, 2016**
66
+
67
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.2>
68
+
69
+ ## v2.3.1
70
+
71
+ **April 22, 2016**
72
+
73
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.1>
74
+
75
+ ## v2.3.0
76
+
77
+ **April 21, 2016**
78
+
79
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.0>
80
+
81
+ ## v2.3.0-beta.1
82
+
83
+ **February 4, 2016**
84
+
85
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.3.0-beta.1>
86
+
87
+ ## v2.2.0
88
+
89
+ **February 4, 2016**
90
+
91
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.2.0>
92
+
93
+ ## v2.1.0
94
+
95
+ **November 2, 2015**
96
+
97
+ <https://github.com/dlmanning/gulp-sass/releases/tag/v2.1.0>
98
+
99
+ ## v2.1.0-beta
100
+
101
+ **September 21, 2015**
102
+
103
+ * **Change** Updated to `node-sass` 3.4.0-beta1
104
+
105
+ ## v2.0.4
106
+
107
+ **July 15, 2015**
108
+
109
+ * **Fix** Relative file path now uses `file.relative` instead of arcane `split('/').pop` magic. Resolves lots of issues with source map paths.
110
+ * **Fix** Empty partials no longer copied to CSS folder
111
+
112
+ ## v2.0.3
113
+
114
+ **June 27, 2015**
115
+
116
+ * **Fix** Empty partials are no longer copied to CSS folder
117
+
118
+ ## v2.0.2
119
+
120
+ **June 25, 2015**
121
+
122
+ * **Fix** Error in watch stream preventing watch from continuing
123
+
124
+ ## v2.0.1
125
+
126
+ **May 13, 2015**
127
+
128
+ * **Fix** Source maps now work as expected with Autoprefixer
129
+ * **Fix** Current file directory `unshift` onto includePaths stack so it's checked first
130
+ * **Fix** Error message returned is unformatted so as to not break other error handling (*i.e.* `gulp-notify`)
131
+
132
+ ## v2.0.0
133
+
134
+ **May 6, 2015**
135
+
136
+ * **Change** Updated to `node-sass` 3.0.0
137
+
138
+ ## v2.0.0-alpha.1
139
+
140
+ **March 26, 2015**
141
+
142
+ * **New** Added `renderSync` option that can be used through `sass.sync()`
143
+
144
+ ### March 24, 2015
145
+
146
+ * **Change** Updated to `node-sass` 3.0.0-alpha.1
147
+ * **New** Added support for `gulp-sourcemaps` including tests
148
+ * **New** Added `.editorconfig` for development consistency
149
+ * **New** Added linting and test for said linting
150
+ * **Change** Updated the README
151
+ * **New** `logError` function to make streaming errors possible instead of breaking the stream
152
+
153
+ ### 1.3.3
154
+
155
+ * updated to `node-sass` 2.0 (final)
156
+ * should now work with Node.js 0.12 and io.js
157
+
158
+ ### 1.3.2
159
+
160
+ * fixed `errLogToConsole`
161
+
162
+ ### 1.3.1
163
+
164
+ * bug fix
165
+
166
+ ## Version 1.3.0
167
+
168
+ * Supports `node-sass` 2.0 (thanks laurelnaiad!)
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2013 David Manning
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 David Manning
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.