@imtf/profile-scripts 1.2.0 → 1.4.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  Here you can find a resume of all changes between versions.
4
4
 
5
+ ## 1.3.0
6
+
7
+ ### Features
8
+
9
+ - Imported CSS files are now inlined in the js once processed.
10
+
5
11
  ## 1.2.0
6
12
 
7
13
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtf/profile-scripts",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Default scripts to bundle & transpile imtf front-end plugins",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -15,26 +15,16 @@
15
15
  "build": "NODE_ENV=production node scripts/esbuild.mjs --entryPoint=index.tsx",
16
16
  "start": "node scripts/esbuild.mjs --entryPoint=index.tsx --watch"
17
17
  },
18
- "eslintConfig": {
19
- "extends": "@imtf/eslint-config-react",
20
- "rules": {
21
- "import/default": "off"
22
- }
23
- },
24
18
  "prettier": "@imtf/prettier-config",
25
19
  "license": "UNLICENSED",
26
20
  "private": false,
27
21
  "dependencies": {
28
- "@svgr/core": "^8.0.0",
29
- "@svgr/plugin-jsx": "^8.0.1",
30
- "@svgr/plugin-svgo": "^8.0.1",
31
- "concurrently": "^8.0.1",
32
- "esbuild": "^0.18.6",
22
+ "@svgr/core": "^8.1.0",
23
+ "@svgr/plugin-jsx": "^8.1.0",
24
+ "@svgr/plugin-svgo": "^8.1.0",
25
+ "concurrently": "^9.0.0",
26
+ "esbuild": "^0.24.0",
33
27
  "esbuild-plugin-external-global": "^1.0.1",
34
- "serve": "^14.1.2"
35
- },
36
- "devDependencies": {
37
- "@imtf/eslint-config-react": "^3.0.0",
38
- "@imtf/prettier-config": "^3.0.0"
28
+ "esbuild-plugin-inline-css": "^0.0.1"
39
29
  }
40
30
  }
@@ -1,5 +1,6 @@
1
1
  import { build, context } from "esbuild";
2
2
  import esbuild from "esbuild-plugin-external-global";
3
+ import InlineCSSPlugin from "esbuild-plugin-inline-css";
3
4
  import minimist from "minimist";
4
5
 
5
6
  // eslint-disable-next-line import/no-named-as-default-member
@@ -37,6 +38,8 @@ const config = {
37
38
  bundle: true,
38
39
  target: "es2020",
39
40
 
41
+ sourcemap: watch ? "linked" : "external",
42
+
40
43
  minify:
41
44
  process.env.NODE_ENV === "production" &&
42
45
  process.env.IMTF_MINIFY_WEBAPP !== "false",
@@ -57,6 +60,7 @@ const config = {
57
60
  },
58
61
 
59
62
  plugins: [
63
+ InlineCSSPlugin(),
60
64
  svgPlugin(),
61
65
  externalGlobalPlugin({
62
66
  react: "window.React",