mahomedalid / azdevops_boards_calculated_fields Goto Github PK
View Code? Open in Web Editor NEWAzure DevOps Boards (prev VSTS) calculated fields field
License: MIT License
Azure DevOps Boards (prev VSTS) calculated fields field
License: MIT License
Hi,
I have tried to publish the extension as .vsix file and it produces some errors during the running and building the package on CMD. Here is what I have done and got:
Guideline to publish an extension:
C:\Users\2385029\azdevops_boards_calculated_fields-master>npm init -y
{
"main": "webpack.config.js",
"scripts": {
"clean": "rimraf dist *.vsix vss-extension-release.json src/*js libs",
"dev": "webpack-dev-server --hot --progress --colors --content-base ./src --https --port 8888",
"dev:http": "webpack-dev-server -d --hot --progress --colors --content-base ./src --port 8888",
"package:dev": "node ./scripts/packageDev",
"package:dev:http": "node ./scripts/packageDevHttp",
"package:release": "node ./scripts/packageRelease",
"package:beta": "node ./scripts/packageBeta",
"publish:dev": "npm run package:dev && node ./scripts/publishDev",
"build:release": "npm run clean && mkdir dist && webpack --progress --colors --output-path ./dist -p",
"publish:release": "npm run build:release && node ./scripts/publishRelease",
"test": "karma start --single-run",
"postinstall": "typings install"
},
"devDependencies": {
"@types/jquery": "^2.0.52",
"@types/q": "^1.5.1",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"copy-webpack-plugin": "^4.6.0",
"css-loader": "^2.1.0",
"rimraf": "^2.6.3",
"style-loader": "^0.16.1",
"tfx-cli": "^0.6.4",
"ts-loader": "^2.0.3",
"typescript": "2.7.2",
"uglifyjs-webpack-plugin": "^0.4.2",
"webpack": "^2.7.0",
"webpack-dev-server": "^2.11.3"
},
"dependencies": {
"vss-web-extension-sdk": "5.127.0",
"webpack-cli": "^3.2.1",
"webpack-command": "^0.4.2"
},
"name": "multivalue-control-extension",
"license": "MIT",
"description": "VSTS Work Item Form Multivalue Control Extension",
"private": false,
"version": "0.0.0",
"keywords": [],
"author": ""
C:\Users\2385029\azdevops_boards_calculated_fields-master> npm install ncu //npm-check-update
…
npm audit fix
to fix them, or npm audit
for detailsC:\Users\2385029\azdevops_boards_calculated_fields-master>ncu -u //Run ncu -u to upgrade package.json
Upgrading C:\Users\2385029\azdevops_boards_calculated_fields-master\package.json
[====================] 18/18 100%
vss-web-extension-sdk 5.127.0 → 5.141.0
webpack-cli ^3.2.1 → ^3.3.10
webpack-command ^0.4.2 → ^0.5.0
@types/jquery ^2.0.52 → ^3.3.32
@types/q ^1.5.1 → ^1.5.2
@types/react ^16.7.18 → ^16.9.19
@types/react-dom ^16.0.11 → ^16.9.5
copy-webpack-plugin ^4.6.0 → ^5.1.1
css-loader ^2.1.0 → ^3.4.2
rimraf ^2.6.3 → ^3.0.1
style-loader ^0.16.1 → ^1.1.3
tfx-cli ^0.6.4 → ^0.7.11
ts-loader ^2.0.3 → ^6.2.1
typescript 2.7.2 → 3.7.5
uglifyjs-webpack-plugin ^0.4.2 → ^2.2.0
webpack ^2.7.0 → ^4.41.5
webpack-dev-server ^2.11.3 → ^3.10.3
Run npm install to install new versions.
C:\Users\2385029\azdevops_boards_calculated_fields-master> npm install //install packages
[email protected] postinstall C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js
[email protected] postinstall C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\webpack-cli
lightercollective
*** Thank you for using webpack-cli! ***
Please consider donating to our open collective
to help us maintain this package.
https://opencollective.com/webpack/donate
***
[email protected] postinstall C:\Users\2385029\azdevops_boards_calculated_fields-master
typings install
+-- tfs (global)
`-- vss (global)
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 953 packages from 609 contributors and audited 6531 packages in 137.569s
found 118 vulnerabilities (7 low, 22 moderate, 89 high)
run npm audit fix
to fix them, or npm audit
for details
C:\Users\2385029\azdevops_boards_calculated_fields-master>npm run build:release
[email protected] build:release C:\Users\2385029\azdevops_boards_calculated_fields-master
npm run clean && mkdir dist && webpack --progress --colors --output-path ./dist -p
[email protected] clean C:\Users\2385029\azdevops_boards_calculated_fields-master
rimraf dist *.vsix vss-extension-release.json src/*js libs
UglifyJs Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
ValidationError: UglifyJs Plugin Invalid Options
at validateOptions (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\schema-utils\src\validateOptions.js:32:11)
at new UglifyJsPlugin (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\uglifyjs-webpack-plugin\dist\index.js:42:30)
at Object. (C:\Users\2385029\azdevops_boards_calculated_fields-master\webpack.config.js:40:9)
at Module._compile (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:release: npm run clean && mkdir dist && webpack --progress --colors --output-path ./dist -p
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\2385029\AppData\Roaming\npm-cache_logs\2020-02-06T22_30_42_360Z-debug.log
`
I use CMD to install dependencies and publish it. But, it requires to install peerdependencies every time. Different peerdependencies just appear in outcome of each installation, and I guess I stopped that by npm-check-update (ncu -u). I installed all the devDependencies and dependencies as placed in “package.json”.
And uglifyjs-webpack-plugin version is also up-to-date ^2.2.0
`C:\Users\2385029\azdevops_boards_calculated_fields-master>npm show uglifyjs-webpack-plugin version
2.2.0
But when I go and hit “npm run build:release” it produces the following error:
“UglifyJs Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
ValidationError: UglifyJs Plugin Invalid Options
at validateOptions (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\schema-utils\src\validateOptions.js:32:11)
at new UglifyJsPlugin (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\uglifyjs-webpack-plugin\dist\index.js:42:30)
at Object. (C:\Users\2385029\azdevops_boards_calculated_fields-master\webpack.config.js:40:9)
at Module._compile (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (C:\Users\2385029\azdevops_boards_calculated_fields-master\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
”
I would greatly appreciate any help by you or your team. Thanks,
Have a great weekend,
Best Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.