anubis-ui 1.2.1 → 1.2.3

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 (3) hide show
  1. package/index.d.ts +8 -0
  2. package/index.js +5 -6
  3. package/package.json +2 -2
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { IEnvConfig } from './dist/interfaces/config.interface';
2
+
3
+ declare module 'anubis-ui' {
4
+ import type { Plugin } from 'vite';
5
+
6
+ export const plugin: Plugin;
7
+ export const config: IEnvConfig;
8
+ }
package/index.js CHANGED
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
 
3
- const { init: initConfig } = require('./dist/config/config.tool');
3
+ const { init: initConfig, config } = require('./dist/config/config.tool');
4
4
  const { log, logPrefix, logo } = require('./dist/tools/logger');
5
5
  const { init: initClassExtraction } = require('./dist/tools/extraction/extractClasses');
6
6
 
7
- /** List every imported colors across the projet */
8
- const colors = [];
9
-
10
7
  const init = async () => {
11
8
  logo();
12
9
 
@@ -52,5 +49,7 @@ function AnubisUI() {
52
49
  };
53
50
  }
54
51
 
55
- module.exports = AnubisUI;
56
- module.exports.colors = colors;
52
+ module.exports = {
53
+ plugin: AnubisUI(),
54
+ config
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anubis-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Class-based css generator",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "type": "git",
25
25
  "url": "git+https://github.com/HugoLMTY/anubis-ui.git"
26
26
  },
27
- "author": "Improba",
27
+ "types": "./index.d.ts",
28
28
  "license": "MIT",
29
29
  "bugs": {
30
30
  "url": "https://github.com/HugoLMTY/anubis-ui/issues"