@timus-networks/theme 1.0.4 → 1.0.6

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/module.js CHANGED
@@ -23,18 +23,20 @@ export default function (moduleOptions) {
23
23
  this.nuxt.hook('ready', (_nuxt) => {
24
24
  this.options.tailwindcss.config.darkMode = 'class';
25
25
  console.log(`#### ${PackageJson.name} has been prepared with version: ${PackageJson.version}`);
26
- console.log(this.options.tailwindcss)
26
+ console.log(this.options.tailwindcss);
27
27
  });
28
28
 
29
- this.nuxt.hook('build:before', async () => {
30
- const sourceDir = resolve(__dirname, './scss/');
29
+ this.nuxt.hook('build:before', async (nuxt) => {
30
+ const sourceDir = resolve(__dirname, './main.css');
31
31
  const destDir = resolve(this.options.srcDir, 'static/scss/');
32
32
  await copyDirectory(sourceDir, destDir);
33
+ this.options.css.push('@/static/scss/main.css');
33
34
  });
34
35
 
35
36
  // Assest'si, static fonts altına iconsax olarak gönderiyorum ve nuxt.config'in css'ine ekliyorum
36
37
  // this.options.css.push('@/static/scss/_element-ui.scss');
37
- this.options.css.push('@/static/scss/main.scss');
38
+ // this.options.css.push('@/static/scss/main.scss');
39
+ // this.options.css.push('@/static/scss/main.css');
38
40
 
39
41
  // get all options for the module
40
42
  const options = {
@@ -59,4 +61,3 @@ export default function (moduleOptions) {
59
61
 
60
62
  // REQUIRED if publishing the module as npm package
61
63
  module.exports.meta = require('./package.json');
62
-
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "convert": "node convert.js",
10
- "pub": "npm run convert && npm publish --access public"
9
+ "convert-js": "node convert-js.js",
10
+ "convert-sass": "node convert-sass.js",
11
+ "pub": "npm run convert-js && npm run convert-sass && npm publish --access public"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",
File without changes