Skip to content

Commit

Permalink
build: build for plugin-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 17, 2020
1 parent bb0c105 commit 88571bb
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"bundle": "esbuild packages/vite/src/node/index.ts packages/vite/src/node/cli.ts --bundle --platform=node --target=node12 --external:fsevents --external:sugarss --external:bufferutil --external:utf-8-validate --outdir=esbuild"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.12.1",
"@types/node": "^14.14.10",
"@typescript-eslint/parser": "^4.9.1",
"enquirer": "^2.3.6",
Expand Down
53 changes: 53 additions & 0 deletions packages/plugin-vue/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",

"projectFolder": ".",

"mainEntryPointFilePath": "./temp/index.d.ts",

"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "./dist/index.d.ts"
},

"apiReport": {
"enabled": false
},

"docModel": {
"enabled": false
},

"tsdocMetadata": {
"enabled": false
},

"messages": {
"compilerMessageReporting": {
"default": {
"logLevel": "warning"
}
},

"extractorMessageReporting": {
"default": {
"logLevel": "warning",
"addToApiReportFile": true
},

"ae-missing-release-tag": {
"logLevel": "none"
}
},

"tsdocMessageReporting": {
"default": {
"logLevel": "warning"
},

"tsdoc-undefined-tag": {
"logLevel": "none"
}
}
}
}
5 changes: 4 additions & 1 deletion packages/plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "tsc -w --incremental -p ."
"dev": "tsc -p . -w --incremental",
"build": "rimraf dist && run-s build-bundle build-types",
"build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --outfile=dist/index.js",
"build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp"
},
"engines": {
"node": ">=12.0.0"
Expand Down

0 comments on commit 88571bb

Please sign in to comment.