anubis-ui 1.2.0 → 1.2.2

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/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.0",
3
+ "version": "1.2.2",
4
4
  "description": "Class-based css generator",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -48,6 +48,7 @@ const init = () => {
48
48
  }
49
49
 
50
50
  const checkUserConfig = () => {
51
+ if (!userConfig) { return }
51
52
 
52
53
  // todo - also check values
53
54
  const userConfigKeys = Object.keys(userConfig)