@timus-networks/theme 1.0.20 → 1.0.21

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 (2) hide show
  1. package/module.js +17 -12
  2. package/package.json +1 -1
package/module.js CHANGED
@@ -27,22 +27,27 @@ export default function (moduleOptions) {
27
27
 
28
28
  this.nuxt.hook('build:before', async (nuxt) => {
29
29
  const directories = [{source: 'output', target: 'static/'}, {source: 'fonts', target: 'static/fonts'}];
30
- directories.forEach(async directory => {
30
+
31
+ // Kopyalama işlemlerini Promise.all ile sarmalayın
32
+ await Promise.all(directories.map(async (directory) => {
31
33
  const sourceDir = resolve(__dirname, `./${directory.source}/`);
32
34
  const destDir = resolve(this.options.srcDir, `./${directory.target}/`);
33
35
  await copyDirectory(sourceDir, destDir);
34
- });
36
+ }));
35
37
 
36
- this.options.css.push('@/static/fonts/poppins/100.css');
37
- this.options.css.push('@/static/fonts/poppins/200.css');
38
- this.options.css.push('@/static/fonts/poppins/300.css');
39
- this.options.css.push('@/static/fonts/poppins/400.css');
40
- this.options.css.push('@/static/fonts/poppins/500.css');
41
- this.options.css.push('@/static/fonts/poppins/600.css');
42
- this.options.css.push('@/static/fonts/poppins/700.css');
43
- this.options.css.push('@/static/fonts/poppins/800.css');
44
- this.options.css.push('@/static/fonts/poppins/900.css');
45
- this.options.css.push('@/static/main.css');
38
+ // Tüm kopyalama işlemleri tamamlandığında CSS dosyalarını ekleyin
39
+ this.options.css.push(
40
+ '@/static/fonts/poppins/100.css',
41
+ '@/static/fonts/poppins/200.css',
42
+ '@/static/fonts/poppins/300.css',
43
+ '@/static/fonts/poppins/400.css',
44
+ '@/static/fonts/poppins/500.css',
45
+ '@/static/fonts/poppins/600.css',
46
+ '@/static/fonts/poppins/700.css',
47
+ '@/static/fonts/poppins/800.css',
48
+ '@/static/fonts/poppins/900.css',
49
+ '@/static/main.css'
50
+ );
46
51
  });
47
52
 
48
53
  // Assest'si, static fonts altına iconsax olarak gönderiyorum ve nuxt.config'in css'ine ekliyorum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "main": "module.js",
6
6
  "types": "index.d.ts",