atomic-css-cli 1.0.0

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 ADDED
@@ -0,0 +1,32 @@
1
+ /* ============================================================
2
+ * Atomic CSS CLI — Programmatic API
3
+ * ========================================================== */
4
+ const core = require("../core");
5
+ const { loadConfig, findMatchingProject } = require("./lib/config");
6
+ const { writeCssFiles, safeWrite } = require("./lib/writer");
7
+ const { build, watch, extractClassesFromText } = require("./lib/watcher");
8
+
9
+ module.exports = {
10
+ // Core
11
+ generateCSSRules: core.generateCSSRules,
12
+ parseClassName: core.parseClassName,
13
+ minifyCss: core.minifyCss,
14
+ extractDynamicClasses: core.extractDynamicClasses,
15
+ applyNewRulesToCss: core.applyNewRulesToCss,
16
+ getStaticCssRules: core.getStaticCssRules,
17
+ normalizeHexColors: core.normalizeHexColors,
18
+ normalizeHexColorsInText: core.normalizeHexColorsInText,
19
+
20
+ // Config
21
+ loadConfig,
22
+ findMatchingProject,
23
+
24
+ // File I/O
25
+ writeCssFiles,
26
+ safeWrite,
27
+
28
+ // CLI functions
29
+ build,
30
+ watch,
31
+ extractClassesFromText
32
+ };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "atomic-css-cli",
3
+ "version": "1.0.0",
4
+ "description": "Atomic CSS generator CLI — watch files and generate atomic.min.css automatically",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "atomic-css": "./dist/atomic-css.js"
8
+ },
9
+ "files": [
10
+ "dist/",
11
+ "package.json",
12
+ "README.md"
13
+ ],
14
+ "keywords": [
15
+ "atomic",
16
+ "css",
17
+ "cli",
18
+ "generator",
19
+ "utility-first",
20
+ "watch"
21
+ ],
22
+ "author": "Drangon-Knight",
23
+ "license": "SEE LICENSE IN LICENSE.txt",
24
+ "dependencies": {
25
+ "chokidar": "^4.0.0",
26
+ "commander": "^13.0.0"
27
+ }
28
+ }