@websolutespa/bom-compiler 1.10.0-next.1 → 2.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/CHANGELOG.md CHANGED
@@ -1,49 +1,55 @@
1
- # @websolutespa/bom-compiler
2
-
3
- ## 1.10.0-next.1
4
-
5
- ### Patch Changes
6
-
7
- - 64289c4: Updating: React 19.x, Payload 3.x
8
-
9
- ## 1.10.0-next.0
10
-
11
- ### Minor Changes
12
-
13
- - Updating: React 19.x, Payload 3.x
14
-
15
- ## 0.2.2
16
-
17
- ### Patch Changes
18
-
19
- - Fixing: downgrading eslint to v8.56.0
20
-
21
- ## 0.2.1
22
-
23
- ### Patch Changes
24
-
25
- - Updating: dependencies
26
-
27
- ## 0.2.0
28
-
29
- ### Minor Changes
30
-
31
- - Updating: next 13.
32
-
33
- ## 0.1.1
34
-
35
- ### Patch Changes
36
-
37
- - Modified: dependencies.
38
-
39
- ## 0.1.0
40
-
41
- ### Minor Changes
42
-
43
- - Added: splat routes.
44
-
45
- ## 0.0.1
46
-
47
- ### Patch Changes
48
-
49
- - Added: first release.
1
+ # @websolutespa/bom-compiler
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Release: Bom 2.0
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 08b39f1: Modified: compiler added css modules
14
+
15
+ ## 0.2.3-next.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Modified: compiler added css modules
20
+
21
+ ## 0.2.2
22
+
23
+ ### Patch Changes
24
+
25
+ - Fixing: downgrading eslint to v8.56.0
26
+
27
+ ## 0.2.1
28
+
29
+ ### Patch Changes
30
+
31
+ - Updating: dependencies
32
+
33
+ ## 0.2.0
34
+
35
+ ### Minor Changes
36
+
37
+ - Updating: next 13.
38
+
39
+ ## 0.1.1
40
+
41
+ ### Patch Changes
42
+
43
+ - Modified: dependencies.
44
+
45
+ ## 0.1.0
46
+
47
+ ### Minor Changes
48
+
49
+ - Added: splat routes.
50
+
51
+ ## 0.0.1
52
+
53
+ ### Patch Changes
54
+
55
+ - Added: first release.
package/package.json CHANGED
@@ -1,56 +1,59 @@
1
- {
2
- "name": "@websolutespa/bom-compiler",
3
- "version": "1.10.0-next.1",
4
- "description": "Compiler helper of the BOM Repository",
5
- "keywords": [
6
- "bom",
7
- "compiler"
8
- ],
9
- "license": "MIT",
10
- "repository": {
11
- "type": "git",
12
- "url": "git://github.com/websolutespa/bom.git"
13
- },
14
- "dependencies": {
15
- "@babel/core": "^7.24.4",
16
- "@babel/preset-env": "^7.24.4",
17
- "@babel/preset-react": "^7.24.1",
18
- "@babel/preset-typescript": "^7.24.1",
19
- "@rollup/plugin-babel": "^6.0.4",
20
- "@rollup/plugin-commonjs": "^25.0.7",
21
- "@rollup/plugin-json": "^6.1.0",
22
- "@rollup/plugin-node-resolve": "^15.2.3",
23
- "@rollup/plugin-terser": "^0.4.4",
24
- "@rollup/plugin-typescript": "^11.1.6",
25
- "@svgr/rollup": "^8.1.0",
26
- "babel-loader": "^9.1.3",
27
- "cross-spawn": "latest",
28
- "rimraf": "3.0.2",
29
- "rollup-plugin-copy": "^3.5.0",
30
- "rollup-plugin-peer-deps-external": "^2.2.4",
31
- "rollup-plugin-postcss": "^4.0.2",
32
- "rollup-plugin-typescript2": "^0.36.0",
33
- "rollup": "^4.14.1",
34
- "sass-loader": "^14.1.1",
35
- "sass": "1.54.0"
36
- },
37
- "peerDependencies": {
38
- "react": ">= 19.1.0",
39
- "react-dom": ">= 19.1.0"
40
- },
41
- "devDependencies": {
42
- "@types/cross-spawn": "latest",
43
- "@types/react": "19.1.0",
44
- "@types/react-dom": "19.1.2",
45
- "@websolutespa/tsconfig": "1.10.0-next.1",
46
- "@websolutespa/eslint-config": "1.10.0-next.1",
47
- "tsup": "^8.5.0",
48
- "typescript": "5.8.2"
49
- },
50
- "publishConfig": {
51
- "access": "public"
52
- },
53
- "sideEffects": false,
54
- "main": "./index.js",
55
- "types": "./index.d.ts"
56
- }
1
+ {
2
+ "name": "@websolutespa/bom-compiler",
3
+ "version": "2.0.0",
4
+ "description": "Compiler helper of the BOM Repository",
5
+ "keywords": [
6
+ "bom",
7
+ "compiler"
8
+ ],
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git://github.com/websolutespa/bom.git"
13
+ },
14
+ "dependencies": {
15
+ "@babel/core": "^7.24.4",
16
+ "@babel/preset-env": "^7.24.4",
17
+ "@babel/preset-react": "^7.24.1",
18
+ "@babel/preset-typescript": "^7.24.1",
19
+ "@rollup/plugin-babel": "^6.0.4",
20
+ "@rollup/plugin-commonjs": "^25.0.7",
21
+ "@rollup/plugin-json": "^6.1.0",
22
+ "@rollup/plugin-node-resolve": "^15.2.3",
23
+ "@rollup/plugin-terser": "^0.4.4",
24
+ "@rollup/plugin-typescript": "^11.1.6",
25
+ "@svgr/rollup": "^8.1.0",
26
+ "autoprefixer": "^10.4.19",
27
+ "babel-loader": "^9.1.3",
28
+ "cross-spawn": "latest",
29
+ "node-sass": "^9.0.0",
30
+ "postcss-modules": "^4.3.1",
31
+ "postcss-modules-scope": "^3.2.0",
32
+ "rimraf": "3.0.2",
33
+ "rollup-plugin-copy": "^3.5.0",
34
+ "rollup-plugin-peer-deps-external": "^2.2.4",
35
+ "rollup-plugin-postcss": "^4.0.2",
36
+ "rollup-plugin-typescript2": "^0.36.0",
37
+ "rollup": "^4.14.1",
38
+ "sass-loader": "^14.1.1"
39
+ },
40
+ "peerDependencies": {
41
+ "react": ">= 18.2.0",
42
+ "react-dom": ">= 18.2.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/cross-spawn": "latest",
46
+ "@types/react": "^18.2.75",
47
+ "@types/react-dom": "^18.2.24",
48
+ "@websolutespa/tsconfig": "^2.0.0",
49
+ "eslint-config-websolute": "^2.0.0",
50
+ "tsup": "^6.7.0",
51
+ "typescript": "^5.4.5"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "sideEffects": false,
57
+ "main": "./index.js",
58
+ "types": "./index.d.ts"
59
+ }
package/rollup.config.js CHANGED
@@ -1,18 +1,19 @@
1
+ import { babel } from '@rollup/plugin-babel';
1
2
  import json from '@rollup/plugin-json';
3
+ import terser from '@rollup/plugin-terser';
4
+ import typescript from '@rollup/plugin-typescript';
2
5
  import svgr from '@svgr/rollup';
6
+ import autoprefixer from 'autoprefixer';
3
7
  import * as path from 'path';
4
- import scss from 'rollup-plugin-scss';
5
- // import { nodeResolve } from '@rollup/plugin-node-resolve';
6
8
  import peerDepsExternal from 'rollup-plugin-peer-deps-external';
9
+ import postcss from 'rollup-plugin-postcss';
10
+ // import { nodeResolve } from '@rollup/plugin-node-resolve';
7
11
  // import typescript from 'rollup-plugin-typescript2';
8
- import { babel } from '@rollup/plugin-babel';
9
- import terser from '@rollup/plugin-terser';
10
- import typescript from '@rollup/plugin-typescript';
11
12
 
12
13
  const DEBUG = true;
13
14
  const TERSER = false;
14
15
 
15
- const extensions = ['.ts', '.tsx', '.js', '.jsx', '.json'];
16
+ const extensions = ['.ts', '.tsx', '.js', '.jsx', '.json', '.scss', '.css'];
16
17
 
17
18
  const cwd = process.cwd();
18
19
 
@@ -26,6 +27,9 @@ function getBabelConfigFile() {
26
27
  return path.resolve(__dirname, 'babel.config.js');
27
28
  }
28
29
 
30
+ const cssExportMap = {};
31
+
32
+ /** @type {import('rollup').RollupOptions} */
29
33
  const rollupConfig = {
30
34
  input: 'src/index.ts',
31
35
  makeAbsoluteExternalsRelative: true,
@@ -63,9 +67,30 @@ const rollupConfig = {
63
67
  stroke: 'currentColor',
64
68
  },
65
69
  }),
70
+ postcss({
71
+ modules: true,
72
+ autoModules: true,
73
+ extract: false,
74
+ use: ['sass'],
75
+ extensions: ['.css', '.scss'],
76
+ inject: true,
77
+ plugins: [
78
+ autoprefixer(),
79
+ /*
80
+ postcssModules({
81
+ getJSON: function(cssFileName, json, outputFileName) {
82
+ // nope
83
+ },
84
+ exportGlobals: true,
85
+ }),
86
+ */
87
+ ],
88
+ }),
89
+ /*
66
90
  scss({
67
91
  fileName: 'index.css',
68
92
  }),
93
+ */
69
94
  typescript({
70
95
  compilerOptions: {
71
96
  baseUrl: '.',