pack: add prettier and reformat all codes
This commit is contained in:
1 parent
251394391a
commit
5d8a3672bb
23 files changed
+1044
-2040
No files matched your search
+77
-81
@@ -1,121 +1,117 @@
|
||||
{
|
||||
"productName": "Vutron",
|
||||
"appId": "com.vutron.vutron",
|
||||
"asar": true,
|
||||
"extends": null,
|
||||
"compression": "maximum",
|
||||
"copyright": "ⓒ 2022 ${author}",
|
||||
"artifactName": "${productName} ${version}_${arch}.${ext}",
|
||||
"directories": {
|
||||
"buildResources": "buildRes",
|
||||
"output": "./dist/release/${version}"
|
||||
productName: 'Vutron',
|
||||
appId: 'com.vutron.vutron',
|
||||
asar: true,
|
||||
extends: null,
|
||||
compression: 'maximum',
|
||||
copyright: 'ⓒ 2022 ${author}',
|
||||
artifactName: '${productName} ${version}_${arch}.${ext}',
|
||||
directories: {
|
||||
buildResources: 'buildRes',
|
||||
output: './dist/release/${version}'
|
||||
},
|
||||
/* A list of files not to be included in the build. */
|
||||
"files": [
|
||||
files: [
|
||||
/*
|
||||
(Recommended) The files and folders listed below should not be included in the build.
|
||||
*/
|
||||
"dist/**/*",
|
||||
"!dist/release/**/*",
|
||||
"!dist/main/index.ts",
|
||||
"!**/.*",
|
||||
'dist/**/*',
|
||||
'!dist/release/**/*',
|
||||
'!dist/main/index.ts',
|
||||
'!**/.*',
|
||||
/*
|
||||
(Optional) Please review the list below based on your project preferences, as you may need to include them as needed.
|
||||
*/
|
||||
"!**/node_modules/**/{CONTRIBUTORS,CNAME,AUTHOR,TODO,CONTRIBUTING,COPYING,INSTALL,NEWS,PORTING,Makefile,htdocs,CHANGELOG,ChangeLog,changelog,README,Readme,readme,test,sample,example,demo,composer.json,tsconfig.json,jsdoc.json,tslint.json,typings.json,gulpfile,bower.json,package-lock,Gruntfile,CMakeLists,karma.conf,yarn.lock}*",
|
||||
"!**/node_modules/**/{man,benchmark,node_modules,spec,cmake,browser,vagrant,doxy*,bin,obj,obj.target,example,examples,test,tests,doc,docs,msvc,Xcode,CVS,RCS,SCCS}{,/**/*}",
|
||||
"!**/node_modules/**/*.{conf,png,pc,coffee,txt,spec.js,ts,js.flow,html,def,jst,xml,ico,in,ac,sln,dsp,dsw,cmd,vcproj,vcxproj,vcxproj.filters,pdb,exp,obj,lib,map,md,sh,gypi,gyp,h,cpp,yml,log,tlog,Makefile,mk,c,cc,rc,xcodeproj,xcconfig,d.ts,yaml,hpp}",
|
||||
"!**/node_modules/**/node-v*-x64{,/**/*}",
|
||||
"!**/node_modules/bluebird/js/browser{,/**/*}",
|
||||
"!**/node_modules/bluebird/js/browser{,/**/*}",
|
||||
"!**/node_modules/source-map/dist{,/**/*}",
|
||||
"!**/node_modules/lodash/fp{,/**/*}",
|
||||
"!**/node_modules/async/!(dist|package.json)",
|
||||
"!**/node_modules/async/internal{,/**/*}",
|
||||
"!**/node_modules/ajv/dist{,/**/*}",
|
||||
"!**/node_modules/ajv/scripts{,/**/*}",
|
||||
"!**/node_modules/node-pre-gyp/!(lib|package.json)",
|
||||
"!**/node_modules/node-pre-gyp/lib/!(util|pre-binding.js|node-pre-gyp.js)",
|
||||
"!**/node_modules/node-pre-gyp/lib/util/!(versioning.js|abi_crosswalk.json)",
|
||||
"!**/node_modules/source-map-support/browser-source-map-support.js",
|
||||
"!**/node_modules/json-schema/!(package.json|lib)"
|
||||
'!**/node_modules/**/{CONTRIBUTORS,CNAME,AUTHOR,TODO,CONTRIBUTING,COPYING,INSTALL,NEWS,PORTING,Makefile,htdocs,CHANGELOG,ChangeLog,changelog,README,Readme,readme,test,sample,example,demo,composer.json,tsconfig.json,jsdoc.json,tslint.json,typings.json,gulpfile,bower.json,package-lock,Gruntfile,CMakeLists,karma.conf,yarn.lock}*',
|
||||
'!**/node_modules/**/{man,benchmark,node_modules,spec,cmake,browser,vagrant,doxy*,bin,obj,obj.target,example,examples,test,tests,doc,docs,msvc,Xcode,CVS,RCS,SCCS}{,/**/*}',
|
||||
'!**/node_modules/**/*.{conf,png,pc,coffee,txt,spec.js,ts,js.flow,html,def,jst,xml,ico,in,ac,sln,dsp,dsw,cmd,vcproj,vcxproj,vcxproj.filters,pdb,exp,obj,lib,map,md,sh,gypi,gyp,h,cpp,yml,log,tlog,Makefile,mk,c,cc,rc,xcodeproj,xcconfig,d.ts,yaml,hpp}',
|
||||
'!**/node_modules/**/node-v*-x64{,/**/*}',
|
||||
'!**/node_modules/bluebird/js/browser{,/**/*}',
|
||||
'!**/node_modules/bluebird/js/browser{,/**/*}',
|
||||
'!**/node_modules/source-map/dist{,/**/*}',
|
||||
'!**/node_modules/lodash/fp{,/**/*}',
|
||||
'!**/node_modules/async/!(dist|package.json)',
|
||||
'!**/node_modules/async/internal{,/**/*}',
|
||||
'!**/node_modules/ajv/dist{,/**/*}',
|
||||
'!**/node_modules/ajv/scripts{,/**/*}',
|
||||
'!**/node_modules/node-pre-gyp/!(lib|package.json)',
|
||||
'!**/node_modules/node-pre-gyp/lib/!(util|pre-binding.js|node-pre-gyp.js)',
|
||||
'!**/node_modules/node-pre-gyp/lib/util/!(versioning.js|abi_crosswalk.json)',
|
||||
'!**/node_modules/source-map-support/browser-source-map-support.js',
|
||||
'!**/node_modules/json-schema/!(package.json|lib)'
|
||||
],
|
||||
"mac": {
|
||||
"bundleVersion": "1.0",
|
||||
"hardenedRuntime": true,
|
||||
"gatekeeperAssess": false,
|
||||
"icon": "buildRes/icons/icon.icns",
|
||||
"type": "distribution",
|
||||
"target": [
|
||||
mac: {
|
||||
bundleVersion: '1.0',
|
||||
hardenedRuntime: true,
|
||||
gatekeeperAssess: false,
|
||||
icon: 'buildRes/icons/icon.icns',
|
||||
type: 'distribution',
|
||||
target: [
|
||||
{
|
||||
"target": "dmg",
|
||||
"arch": [
|
||||
"x64",
|
||||
"arm64",
|
||||
"universal"
|
||||
]
|
||||
target: 'dmg',
|
||||
arch: ['x64', 'arm64', 'universal']
|
||||
}
|
||||
]
|
||||
},
|
||||
"dmg": {
|
||||
"contents": [
|
||||
dmg: {
|
||||
contents: [
|
||||
{
|
||||
"x": 410,
|
||||
"y": 150,
|
||||
"type": "link",
|
||||
"path": "/Applications"
|
||||
x: 410,
|
||||
y: 150,
|
||||
type: 'link',
|
||||
path: '/Applications'
|
||||
},
|
||||
{
|
||||
"x": 130,
|
||||
"y": 150,
|
||||
"type": "file"
|
||||
x: 130,
|
||||
y: 150,
|
||||
type: 'file'
|
||||
}
|
||||
],
|
||||
"sign": false
|
||||
sign: false
|
||||
},
|
||||
"win": {
|
||||
"icon": "buildRes/icons/icon.ico",
|
||||
"target": [
|
||||
win: {
|
||||
icon: 'buildRes/icons/icon.ico',
|
||||
target: [
|
||||
{
|
||||
"target": "appx",
|
||||
"arch": "x64"
|
||||
target: 'appx',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
"target": "zip",
|
||||
"arch": "x64"
|
||||
target: 'zip',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
"target": "portable",
|
||||
"arch": "x64"
|
||||
target: 'portable',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
"target": "nsis",
|
||||
"arch": "x64"
|
||||
target: 'nsis',
|
||||
arch: 'x64'
|
||||
}
|
||||
]
|
||||
},
|
||||
"portable": {
|
||||
"artifactName": "${productName} ${version}_${arch} Portable.${ext}"
|
||||
portable: {
|
||||
artifactName: '${productName} ${version}_${arch} Portable.${ext}'
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": true
|
||||
nsis: {
|
||||
oneClick: true
|
||||
},
|
||||
"linux": {
|
||||
"executableName": "vutron",
|
||||
"icon": "buildRes/icons",
|
||||
"category": "Utility",
|
||||
"target": [
|
||||
linux: {
|
||||
executableName: 'vutron',
|
||||
icon: 'buildRes/icons',
|
||||
category: 'Utility',
|
||||
target: [
|
||||
{
|
||||
"target": "snap",
|
||||
"arch": "x64"
|
||||
target: 'snap',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
"target": "deb",
|
||||
"arch": "x64"
|
||||
target: 'deb',
|
||||
arch: 'x64'
|
||||
},
|
||||
{
|
||||
"target": "rpm",
|
||||
"arch": "x64"
|
||||
target: 'rpm',
|
||||
arch: 'x64'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user