Skip to content
This repository was archived by the owner on Oct 6, 2021. It is now read-only.

Commit 35bd595

Browse files
committed
Update name, version and rollop config
1 parent 74f78df commit 35bd595

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "muse-ui",
3-
"version": "3.0.2",
2+
"name": "@jobport/muse-ui",
3+
"version": "3.0.5",
44
"description": "material design ui for vue2",
55
"author": "myronliu347 <[email protected]>",
66
"repository": "https://github.com/museui/muse-ui.git",

rollup.config.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import replace from 'rollup-plugin-replace';
77
import packageJson from './package.json';
88

99
const { name, version } = packageJson;
10-
const banner = `/* ${name} myron.liu version ${version} */`;
10+
const shortName = name.split('/').pop()
11+
const banner = `/* ${name} version ${version} (original by myron.liu) */`;
1112
const plugins = [
12-
postcss({ extensions: ['.less'], extract: `dist/${name}.css` }),
13+
postcss({ extensions: ['.less'], extract: `dist/${shortName}.css` }),
1314
resolve({ jsnext: true, main: true, browser: true }),
1415
commonjs({
1516
include: 'node_modules/**',
@@ -41,19 +42,19 @@ export default [{
4142
input: 'src/index.js',
4243
output: [{
4344
banner,
44-
file: `dist/${name}.common.js`,
45+
file: `dist/${shortName}.common.js`,
4546
format: 'cjs'
4647
}, {
4748
banner,
48-
file: `dist/${name}.esm.js`,
49+
file: `dist/${shortName}.esm.js`,
4950
format: 'es'
5051
}],
5152
plugins: plugins,
5253
external: ['vue']
5354
}, {
5455
input: 'src/index.js',
5556
output: {
56-
file: `dist/${name}.js`,
57+
file: `dist/${shortName}.js`,
5758
format: 'umd',
5859
name: 'MuseUI',
5960
globals: {

0 commit comments

Comments
 (0)