@web-atoms/core 2.4.55 → 2.4.58

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/build.jsx +25 -0
  2. package/package.json +4 -4
package/build.jsx ADDED
@@ -0,0 +1,25 @@
1
+ import { Batch, ProcessFiles, Run } from "@neurospeech/jex";
2
+ import path from "node:path";
3
+
4
+ const postCssPath = path.resolve("node_modules/postcss-cli/index.js");
5
+
6
+ export default <Batch>
7
+ <ProcessFiles
8
+ src="src/**/*.css"
9
+ base="src"
10
+ dest="dist"
11
+ command={( { file, dest}) =>
12
+ <Batch>
13
+ <Run
14
+ cmd={process.execPath}
15
+ args={[
16
+ postCssPath,
17
+ file.path,
18
+ "-o", dest.path,
19
+ "--map"
20
+ ]}
21
+ />
22
+ </Batch>
23
+ }
24
+ />
25
+ </Batch>;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@web-atoms/core",
3
- "version": "2.4.55",
3
+ "version": "2.4.58",
4
4
  "description": "Web Atoms Core",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test1": "node ./node_modules/@web-atoms/unit-test/index.js ./dist/tests",
8
8
  "test": "istanbul cover ./node_modules/@web-atoms/unit-test/index.js ./dist/tests",
9
- "build-css": "npx postcss \"./src/**/*.css\" --base ./src --dir ./dist --map --verbose",
10
- "build-css-watch": "npx postcss \"./src/**/*.css\" --base src --dir dist --map -w",
9
+ "build-css": "npx jex ./build.jsx",
10
+ "build-css-watch": "npx jex ./build.jsx --watch",
11
11
  "posttest": "remap-istanbul -i ./coverage/coverage.json -t html -o ./html-report",
12
12
  "postversion": "git push --follow-tags"
13
13
  },
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/neurospeech/web-atoms-core#readme",
29
29
  "devDependencies": {
30
- "@neurospeech/jex": "^1.0.112",
30
+ "@neurospeech/jex": "^1.0.115",
31
31
  "@web-atoms/module-loader": "^2.1.89",
32
32
  "@web-atoms/pack": "1.0.111",
33
33
  "@web-atoms/postcss-styled-js": "^1.0.10",