Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: @omiu/dialog 迁移完成 #750

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"docs": "node ./scripts/docs-gen.js",
"start": "node ./scripts/webpack.build.js -- demo",
"build": "node ./scripts/webpack.build.js -- build && rollup -c scripts/rollup.config.js && node ./scripts/rollup.end.js"
"build": "node ./scripts/webpack.build.js -- build && rollup -c scripts/rollup.config.js"
},
"typings": "./dist/index.d.ts",
"repository": {
Expand Down Expand Up @@ -97,6 +97,8 @@
"dependencies": {
"@omiu/common": "latest",
"@omiu/transition": "latest",
"omi": "latest"
"omi": "latest",
"postcss": "^8.4.16",
"rollup-plugin-postcss": "^4.0.2"
}
}
10 changes: 4 additions & 6 deletions components/dialog/scripts/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import nodeResolve from "rollup-plugin-node-resolve";

import postcss from "rollup-plugin-postcss"
import typescript from 'rollup-plugin-typescript';
import scss from 'rollup-plugin-scss'
import commonjs from '@rollup/plugin-commonjs';
Expand All @@ -12,6 +12,7 @@ const licensePlugin = license({

export default {
input: "src/index.tsx",
target: "es2020",
output: {
format: "es",
file: "./src/index.esm.js",
Expand All @@ -23,11 +24,8 @@ export default {
nodeResolve({
main: true
}),
scss({
//output: false,
output: function (styles, styleNodes) {
fs.writeFileSync('./src/index.css', styles)
},
postcss({
inject:false
}),
typescript(),
commonjs(),
Expand Down
16 changes: 0 additions & 16 deletions components/dialog/scripts/rollup.end.js

This file was deleted.

590 changes: 142 additions & 448 deletions components/dialog/src/index.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/dialog/src/index.esm.js.map

Large diffs are not rendered by default.

Loading