Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjalft committed Aug 4, 2022
2 parents aaf2988 + dd99f33 commit 3d4539e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/layout/example/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './src/app1.jsx';
import App from './src/app.jsx';

ReactDOM.render((
<App />
Expand Down
2 changes: 1 addition & 1 deletion plugins/layout/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "sdjalft",
"license": "MIT",
"dependencies": {
"butterfly-plugins-layout": "^0.0.14",
"butterfly-plugins-layout": "^0.0.15",
"jquery": "^3.6.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Expand Down
2 changes: 1 addition & 1 deletion plugins/layout/example/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './app.less';
import '../../../../static/butterfly.css';
const treeData = require('./mock_data.json');
import {GraphvizEdge} from 'butterfly-plugins-layout/graphvizLayout';
import {graphvizLayout} from '../../dist/app';
import {graphvizLayout} from 'butterfly-plugins-layout';
// const {graphvizLayout} = require('../../index');

class BaseNode extends Node {
Expand Down
21 changes: 18 additions & 3 deletions plugins/layout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "butterfly-plugins-layout",
"version": "0.0.14",
"version": "0.0.15",
"description": "butterfly-plugins-layout,含有各种布局函数",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand All @@ -25,10 +25,25 @@
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.18.6",
"@babel/runtime": "^7.18.6",
"@rollup/plugin-babel": "^5.2.2",
"rollup": "^2.36.1",
"rollup-plugin-commonjs": "^10.1.0"
"babel-loader": "^8.2.5",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"css-loader": "^1.0.1",
"html-webpack-plugin": "^5.5.0",
"less": "^3.13.1",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^2.6.1",
"rollup": "~2.56.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-postcss": "^3.1.8",
"style-loader": "^0.21.0",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion plugins/layout/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if (!fs.existsSync(dist)) {
}

const plugins = [
commonjs(),
babel(
{
exclude: 'node_modules/**',
Expand All @@ -38,6 +37,7 @@ const plugins = [
]
]
}),
commonjs(),
];

const main = {
Expand Down

0 comments on commit 3d4539e

Please sign in to comment.