@timus-networks/theme 1.0.4 → 1.0.5
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/convert-sass.js +15 -0
- package/loader.js +1 -1
- package/main.css +69555 -0
- package/main.css.map +1 -0
- package/module.js +5 -5
- package/package.json +4 -3
- /package/{convert.js → convert-js.js} +0 -0
package/convert-sass.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// convert-sass.js
|
|
2
|
+
const exec = require('child_process').exec;
|
|
3
|
+
const sass = require('sass');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const scssPath = path.resolve(__dirname, 'scss/main.scss');
|
|
7
|
+
const cssPath = path.resolve(__dirname, 'main.css');
|
|
8
|
+
|
|
9
|
+
exec(`sass ${scssPath} ${cssPath}`, (err, stdout, stderr) => {
|
|
10
|
+
if (err) {
|
|
11
|
+
console.error('SCSS compile error:', err);
|
|
12
|
+
} else {
|
|
13
|
+
console.log('SCSS compiled successfully:', stdout);
|
|
14
|
+
}
|
|
15
|
+
});
|
package/loader.js
CHANGED
|
@@ -26,7 +26,7 @@ export function LoadComponent(options) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function LoadPlugins(options, all) {
|
|
29
|
-
const pluginsToSync = ['plugins/theme-provider.
|
|
29
|
+
const pluginsToSync = ['plugins/theme-provider.js', options.typescript ? 'plugins/ts-components-installer.js' : 'plugins/js-components-installer.js'];
|
|
30
30
|
|
|
31
31
|
for (const pathString of pluginsToSync) {
|
|
32
32
|
const str = pathString.replace(/(\.[^\.]+)$/, `.${options.server}$1`);
|