chore(preconstruct): inline css via babel config, add themes package

This commit is contained in:
Christopher Möller
2022-07-18 18:12:49 +02:00
parent 1bb32c8eb7
commit b0f362bf60
25 changed files with 1605 additions and 40 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"main": "dist/react-flow-themes-dark.cjs.js",
"module": "dist/react-flow-themes-dark.esm.js"
}
+4
View File
@@ -0,0 +1,4 @@
{
"main": "dist/react-flow-themes-light.cjs.js",
"module": "dist/react-flow-themes-light.esm.js"
}
+17
View File
@@ -0,0 +1,17 @@
{
"name": "@react-flow/themes",
"version": "11.0.0",
"description": "Themes for React Flow",
"license": "MIT",
"scripts": {
"build": "yarn build:darktheme && yarn build:lighttheme",
"build:darktheme": "mkdir -p ./dark/dist && cp ./src/react-flow-dark.css ./dark/dist/react-flow-dark.css",
"build:lighttheme": "mkdir -p ./light/dist && cp ./src/react-flow-light.css ./dark/dist/react-flow-light.css"
},
"preconstruct": {
"entrypoints": [
"dark.js",
"light.js"
]
}
}
+1
View File
@@ -0,0 +1 @@
import './react-flow-dark.css';
+1
View File
@@ -0,0 +1 @@
import './react-flow-light.css';
+3
View File
@@ -0,0 +1,3 @@
.react-flow {
background-color: black;
}
+3
View File
@@ -0,0 +1,3 @@
.react-flow {
background-color: red;
}