publish(@omiu/common): v0.0.5, build umd js

This commit is contained in:
dntzhang 2020-04-23 08:41:47 +08:00
parent b82a95b82c
commit 076c6c3fcc
8 changed files with 2045 additions and 5 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,20 @@
{
"name": "@omiu/common",
"version": "0.0.4",
"version": "0.0.5",
"description": "Omi UI Components.",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rollup -c scripts/rollup.config.js"
},
"keywords": [],
"author": "",
"author": "dntzhang",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-commonjs": "^11.1.0",
"rollup": "^2.7.1",
"rollup-plugin-license": "^2.0.0",
"rollup-plugin-node-resolve": "^5.2.0"
},
"dependencies": {
"color-convert": "^2.0.1",
"color-name": "^1.1.4",

View File

@ -0,0 +1,29 @@
import nodeResolve from "rollup-plugin-node-resolve";
import commonjs from '@rollup/plugin-commonjs';
const license = require("rollup-plugin-license");
const pkg = require("../package.json");
const licensePlugin = license({
banner: `${pkg.name} v${pkg.version} http://omijs.org\r\nFront End Cross-Frameworks Framework.\r\nBy dntzhang https://github.com/dntzhang \r\n Github: https://github.com/Tencent/omi\r\n MIT Licensed.`
});
export default {
input: "./src/index.js",
output: {
format: "umd",
file: "./index.umd.js",
name: pkg.name,
sourcemap: true,
strict: true
},
plugins: [
nodeResolve({
main: true
}),
commonjs(),
licensePlugin
],
external: ['omi']
};

View File

@ -1 +0,0 @@
export {};