@websolutespa/bom-compiler 0.2.0 → 0.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/CHANGELOG.md +37 -25
- package/babel.config.js +19 -38
- package/index.js +0 -9
- package/package.json +56 -60
- package/rollup.config.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
# @websolutespa/bom-compiler
|
|
2
|
-
|
|
3
|
-
## 0.2.
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 0.
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## 0.
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
## 0.
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
-
|
|
1
|
+
# @websolutespa/bom-compiler
|
|
2
|
+
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixing: downgrading eslint to v8.56.0
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updating: dependencies
|
|
14
|
+
|
|
15
|
+
## 0.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Updating: next 13.
|
|
20
|
+
|
|
21
|
+
## 0.1.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Modified: dependencies.
|
|
26
|
+
|
|
27
|
+
## 0.1.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- Added: splat routes.
|
|
32
|
+
|
|
33
|
+
## 0.0.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Added: first release.
|
package/babel.config.js
CHANGED
|
@@ -5,50 +5,31 @@ const prod = process.env.NODE_ENV === 'production';
|
|
|
5
5
|
/** @type {import("@babel/core").ParserOptions} */
|
|
6
6
|
module.exports = {
|
|
7
7
|
presets: [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
['@babel/preset-env', {
|
|
12
|
-
loose: true,
|
|
13
|
-
targets: test ?
|
|
14
|
-
{ node: 'current' } :
|
|
15
|
-
{ browsers: 'defaults, not IE 11' },
|
|
16
|
-
}],
|
|
17
|
-
/*
|
|
18
|
-
['next/babel', {
|
|
19
|
-
'useBuiltIns': false,
|
|
20
|
-
'preset-env': {
|
|
8
|
+
[
|
|
9
|
+
'@babel/preset-env',
|
|
10
|
+
{
|
|
21
11
|
loose: true,
|
|
22
12
|
targets: test ?
|
|
23
13
|
{ node: 'current' } :
|
|
24
14
|
{ browsers: 'defaults, not IE 11' },
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
'@babel/preset-react',
|
|
19
|
+
{
|
|
20
|
+
runtime: 'automatic'
|
|
21
|
+
}
|
|
22
|
+
],
|
|
32
23
|
'@babel/preset-typescript'
|
|
33
24
|
],
|
|
25
|
+
/*
|
|
34
26
|
plugins: [
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
false && [
|
|
28
|
+
'babel-plugin-styled-components',
|
|
29
|
+
{
|
|
30
|
+
'ssr': true
|
|
31
|
+
}
|
|
32
|
+
],
|
|
37
33
|
].filter(Boolean),
|
|
34
|
+
*/
|
|
38
35
|
};
|
|
39
|
-
|
|
40
|
-
/*
|
|
41
|
-
const { warn } = console;
|
|
42
|
-
|
|
43
|
-
// Prevents resolution warnings from babel-plugin-module-resolver
|
|
44
|
-
// See https://github.com/tleunen/babel-plugin-module-resolver/issues/315
|
|
45
|
-
// eslint-disable-next-line no-console
|
|
46
|
-
console.warn = (...args) => {
|
|
47
|
-
for (const arg of args) {
|
|
48
|
-
if (arg.startsWith('Could not resolve') && /src/.test(arg)) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
warn(...args);
|
|
53
|
-
};
|
|
54
|
-
*/
|
package/index.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
1
|
const spawn = require('cross-spawn');
|
|
4
2
|
const path = require('path');
|
|
5
3
|
const fs = require('fs');
|
|
6
4
|
const rimraf = require('rimraf');
|
|
7
|
-
// import spawn from 'cross-spawn';
|
|
8
|
-
// import * as path from 'path';
|
|
9
|
-
// import rimraf from 'rimraf';
|
|
10
5
|
|
|
11
6
|
function resolveDirname(pathname) {
|
|
12
7
|
if (!/\.(t|j)s$/.test(pathname)) {
|
|
@@ -19,10 +14,6 @@ function clean() {
|
|
|
19
14
|
try {
|
|
20
15
|
const cwd = process.cwd();
|
|
21
16
|
const distPath = path.join(cwd, 'dist');
|
|
22
|
-
/*
|
|
23
|
-
const packagePath = path.join(cwd, 'package.json');
|
|
24
|
-
const package = require(packagePath);
|
|
25
|
-
*/
|
|
26
17
|
rimraf.sync(distPath);
|
|
27
18
|
} catch (error) {
|
|
28
19
|
console.log('BomCompiler.clean', error);
|
package/package.json
CHANGED
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@websolutespa/bom-compiler",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
16
|
-
"@babel/
|
|
17
|
-
"@babel/preset-
|
|
18
|
-
"@babel/preset-
|
|
19
|
-
"@
|
|
20
|
-
"@rollup/plugin-
|
|
21
|
-
"@rollup/plugin-
|
|
22
|
-
"@rollup/plugin-
|
|
23
|
-
"@rollup/plugin-
|
|
24
|
-
"@rollup/plugin-
|
|
25
|
-
"@rollup
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"rollup-plugin-
|
|
34
|
-
"rollup
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"react
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"sideEffects": false,
|
|
58
|
-
"main": "./index.js",
|
|
59
|
-
"types": "./index.d.ts"
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@websolutespa/bom-compiler",
|
|
3
|
+
"version": "0.2.2",
|
|
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
|
+
}
|
package/rollup.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import json from '@rollup/plugin-json';
|
|
2
|
-
// import resolve from '@rollup/plugin-node-resolve';
|
|
3
2
|
import svgr from '@svgr/rollup';
|
|
4
3
|
import * as path from 'path';
|
|
4
|
+
import scss from 'rollup-plugin-scss';
|
|
5
5
|
// import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
6
6
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
7
7
|
// import typescript from 'rollup-plugin-typescript2';
|
|
@@ -63,6 +63,9 @@ const rollupConfig = {
|
|
|
63
63
|
stroke: 'currentColor',
|
|
64
64
|
},
|
|
65
65
|
}),
|
|
66
|
+
scss({
|
|
67
|
+
fileName: 'index.css',
|
|
68
|
+
}),
|
|
66
69
|
typescript({
|
|
67
70
|
compilerOptions: {
|
|
68
71
|
baseUrl: '.',
|