refactor(examples): use rollup instead of cra/webpack #817

This commit is contained in:
moklick
2021-01-05 15:18:04 +01:00
parent 4cb558403c
commit 9169bd766d
11 changed files with 172 additions and 26030 deletions
-23
View File
@@ -1,23 +0,0 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
-15
View File
@@ -1,15 +0,0 @@
## React Flow Examples
The examples are deployed here: https://reactflow.dev/
### Installation
```
npm install
```
### Start Dev Server
```
npm start
```
-9
View File
@@ -1,9 +0,0 @@
const path = require('path');
module.exports = {
webpack: {
alias: {
react: path.resolve(__dirname, '..', 'node_modules', 'react'),
},
},
};
-16633
View File
File diff suppressed because it is too large Load Diff
-35
View File
@@ -1,35 +0,0 @@
{
"name": "react-flow-tests",
"version": "0.1.0",
"private": true,
"dependencies": {
"@craco/craco": "^6.0.0",
"dagre": "^0.8.5",
"localforage": "^1.9.0",
"react-dom": "^17.0.1",
"react-flow-renderer": "file:..",
"react-router-dom": "^5.2.0",
"react-scripts": "^4.0.1"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
+2 -1
View File
@@ -2,12 +2,13 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="description" content="React Flow test flows" />
<title>React Flow - Test Flows</title>
</head>
<body>
<div id="root"></div>
<script src="/dist/index.js"></script>
</body>
</html>
-1
View File
@@ -1,2 +1 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *