Update rollup

pull/4694/head
mertsincan 2023-10-24 19:06:20 +01:00
parent 4f8883582c
commit c1785bce22
3 changed files with 52 additions and 39 deletions

View File

@ -1,36 +0,0 @@
{
"name": "primevue",
"version": "3.37.0",
"homepage": "https://primevue.org/",
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primevue.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/primefaces/primevue/issues"
},
"keywords": [
"primevue",
"vue",
"vue.js",
"vue2",
"vue3",
"ui library",
"component library",
"material",
"bootstrap",
"fluent",
"tailwind",
"unstyled",
"passthrough"
],
"web-types": "./web-types.json",
"vetur": {
"tags": "./vetur-tags.json",
"attributes": "./vetur-attributes.json"
},
"peerDependencies": {
"vue": "^3.0.0"
}
}

View File

@ -14,7 +14,7 @@
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"build:lib": "npm run build:check && npm run build:package",
"build:package": "NODE_ENV=production rollup -c && node build-meta && node api-generator/build-api && gulp build-styles",
"build:package": "NODE_ENV=production rollup -c && node api-generator/build-api && gulp build-styles",
"build:check": "npm run format:check && npm run security:check",
"security:check": "npm audit --production --audit-level high",
"format": "prettier --write \"**/*.{js,vue,d.ts}\" --cache",

View File

@ -3,8 +3,10 @@ import postcss from 'rollup-plugin-postcss';
import { terser } from 'rollup-plugin-terser';
import vue from 'rollup-plugin-vue';
const fs = require('fs-extra');
const path = require('path');
import fs from 'fs-extra';
import path from 'path';
import pkg from './package.json';
let entries = [];
@ -440,6 +442,52 @@ function addServices() {
addEntry('dynamicdialogeventbus', 'DynamicDialogEventBus.js', 'dynamicdialogeventbus');
}
function addPackageJson() {
const outputDir = 'dist';
const packageJson = `{
"name": "primevue",
"version": "${pkg.version}",
"private": false,
"author": "PrimeTek Informatics",
"description": "PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.",
"homepage": "https://primevue.org/",
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primevue.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/primefaces/primevue/issues"
},
"keywords": [
"primevue",
"vue",
"vue.js",
"vue2",
"vue3",
"ui library",
"component library",
"material",
"bootstrap",
"fluent",
"tailwind",
"unstyled",
"passthrough"
],
"web-types": "./web-types.json",
"vetur": {
"tags": "./vetur-tags.json",
"attributes": "./vetur-attributes.json"
},
"peerDependencies": {
"vue": "^3.0.0"
}
}`;
!fs.existsSync(outputDir) && fs.mkdirSync(outputDir);
fs.writeFileSync(path.resolve(outputDir, 'package.json'), packageJson);
}
addUtils();
addStyle();
addBase();
@ -451,5 +499,6 @@ addSFC();
addIcon();
addPassThrough();
addCore();
addPackageJson();
export default entries;