@websolutespa/bom-compiler 0.2.1 → 0.2.3-next.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,31 +1,43 @@
1
- # @websolutespa/bom-compiler
2
-
3
- ## 0.2.1
4
-
5
- ### Patch Changes
6
-
7
- - Updating: dependencies
8
-
9
- ## 0.2.0
10
-
11
- ### Minor Changes
12
-
13
- - Updating: next 13.
14
-
15
- ## 0.1.1
16
-
17
- ### Patch Changes
18
-
19
- - Modified: dependencies.
20
-
21
- ## 0.1.0
22
-
23
- ### Minor Changes
24
-
25
- - Added: splat routes.
26
-
27
- ## 0.0.1
28
-
29
- ### Patch Changes
30
-
31
- - Added: first release.
1
+ # @websolutespa/bom-compiler
2
+
3
+ ## 0.2.3-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: compiler added css modules
8
+
9
+ ## 0.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixing: downgrading eslint to v8.56.0
14
+
15
+ ## 0.2.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updating: dependencies
20
+
21
+ ## 0.2.0
22
+
23
+ ### Minor Changes
24
+
25
+ - Updating: next 13.
26
+
27
+ ## 0.1.1
28
+
29
+ ### Patch Changes
30
+
31
+ - Modified: dependencies.
32
+
33
+ ## 0.1.0
34
+
35
+ ### Minor Changes
36
+
37
+ - Added: splat routes.
38
+
39
+ ## 0.0.1
40
+
41
+ ### Patch Changes
42
+
43
+ - Added: first release.
package/babel.config.js CHANGED
@@ -12,15 +12,15 @@ module.exports = {
12
12
  targets: test ?
13
13
  { node: 'current' } :
14
14
  { browsers: 'defaults, not IE 11' },
15
- }
15
+ },
16
16
  ],
17
17
  [
18
18
  '@babel/preset-react',
19
19
  {
20
- runtime: 'automatic'
21
- }
20
+ runtime: 'automatic',
21
+ },
22
22
  ],
23
- '@babel/preset-typescript'
23
+ '@babel/preset-typescript',
24
24
  ],
25
25
  /*
26
26
  plugins: [
package/index.d.ts CHANGED
@@ -4,9 +4,6 @@ declare function build(): Promise<void>;
4
4
  declare function emitDeclaration(): Promise<void>;
5
5
 
6
6
  export {
7
- resolveDirname,
8
- clean,
9
- build,
10
- emitDeclaration,
7
+ build, clean, emitDeclaration, resolveDirname
11
8
  };
12
9
 
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
1
2
  const spawn = require('cross-spawn');
2
3
  const path = require('path');
3
4
  const fs = require('fs');
@@ -46,7 +47,7 @@ function emitDeclaration() {
46
47
  'tsc',
47
48
  ['--project', tsConfigPath, '--emitDeclarationOnly'],
48
49
  {
49
- stdio: 'inherit'
50
+ stdio: 'inherit',
50
51
  });
51
52
  } catch (error) {
52
53
  console.log('BomCompiler.emitDeclaration', error);
package/package.json CHANGED
@@ -1,56 +1,59 @@
1
- {
2
- "name": "@websolutespa/bom-compiler",
3
- "version": "0.2.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
- "node-sass": "^9.0.0",
29
- "rimraf": "3.0.2",
30
- "rollup-plugin-copy": "^3.5.0",
31
- "rollup-plugin-peer-deps-external": "^2.2.4",
32
- "rollup-plugin-postcss": "^4.0.2",
33
- "rollup-plugin-typescript2": "^0.36.0",
34
- "rollup": "^4.14.1",
35
- "sass-loader": "^14.1.1"
36
- },
37
- "peerDependencies": {
38
- "react": ">= 18.2.0",
39
- "react-dom": ">= 18.2.0"
40
- },
41
- "devDependencies": {
42
- "@types/cross-spawn": "latest",
43
- "@types/react": "^18.2.75",
44
- "@types/react-dom": "^18.2.24",
45
- "@websolutespa/tsconfig": "*",
46
- "eslint-config-websolute": "*",
47
- "tsup": "^6.7.0",
48
- "typescript": "^5.4.5"
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": "0.2.3-next.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": "*",
49
+ "eslint-config-websolute": "*",
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,8 @@ function getBabelConfigFile() {
26
27
  return path.resolve(__dirname, 'babel.config.js');
27
28
  }
28
29
 
30
+ const cssExportMap = {};
31
+
29
32
  const rollupConfig = {
30
33
  input: 'src/index.ts',
31
34
  makeAbsoluteExternalsRelative: true,
@@ -63,9 +66,30 @@ const rollupConfig = {
63
66
  stroke: 'currentColor',
64
67
  },
65
68
  }),
69
+ postcss({
70
+ modules: true,
71
+ autoModules: true,
72
+ extract: false,
73
+ use: ['sass'],
74
+ extensions: ['.css', '.scss'],
75
+ inject: true,
76
+ plugins: [
77
+ autoprefixer(),
78
+ /*
79
+ postcssModules({
80
+ getJSON: function(cssFileName, json, outputFileName) {
81
+ // nope
82
+ },
83
+ exportGlobals: true,
84
+ }),
85
+ */
86
+ ],
87
+ }),
88
+ /*
66
89
  scss({
67
90
  fileName: 'index.css',
68
91
  }),
92
+ */
69
93
  typescript({
70
94
  compilerOptions: {
71
95
  baseUrl: '.',