microsoft / vso-extension-tools Goto Github PK
View Code? Open in Web Editor NEWTools for packaging and publishing extensions for Visual Studio Online.
Tools for packaging and publishing extensions for Visual Studio Online.
I have a vss-extension.json
in /Users/joao/Desktop/uuid
with the following contents:
{
"id": "uuid",
"version": "0.1.0",
"name": "UUID",
"publisher": "joaomoreno"
}
This is how my tree structure looks like:
➜ tree
.
└── vss-extension.json
0 directories, 1 file
This is how it looks like after running vset package
:
➜ vset package
=== Visual Studio Online Extension Tool ===
info: Begin package creation
info: - Merge partial manifests
info: - Merging 1 manifests from the following paths:
info: -- /Users/joao/Desktop/uuid/vss-extension.json
success: Merged successfully
info: - Beginning writing VSIX
info: -- VSIX written to: /Users/joao/Desktop/uuid/joaomoreno.uuid-0.1.0.vsix
success: Successfully created VSIX package.
➜ tree
.
├── Users
│ └── joao
│ └── Desktop
│ └──uuid
├── joaomoreno.uuid-0.1.0.vsix
└── vss-extension.json
4 directories, 2 files
It seems to have created the dummy Users/joao/Desktop/uuid
structure for no good reason.
I'm packing up my vso extension, which includes node_modules, which includes shelljs
debug: Magic mime type for sod-start-sc/node_modules/vso-task-lib/node_modules/shelljs/bin/shjs is text/x-c++.
debug: TypeError: Cannot set property 'contentType' of undefined
debug: at /Users/gavinmogan/.nvm/versions/node/v4.2.1/lib/node_modules/vset/bin/src/scripts/package.js:884:77
debug: at ChildProcess.exithandler (child_process.js:194:7)
debug: at emitTwo (events.js:87:13)
debug: at ChildProcess.emit (events.js:172:7)
debug: at maybeClose (internal/child_process.js:818:16)
debug: at Socket.<anonymous> (internal/child_process.js:319:11)
debug: at emitOne (events.js:77:13)
debug: at Socket.emit (events.js:169:7)
debug: at Pipe._onclose (net.js:469:12)
Looks like the code is checking if not the object, then sets a value in the object, which is undefined.
There's another unchecked exception a little further down
hitCounts[type].forEach(function (fileName) {
uses overrides directly without checking to see if it exists
I can setup a typescript environment and try to provide better line numbers.
I went to try to provide a patch and found out some files are spaces, some are tabs, some are 2, some are 4.
My recommendation is to start with editorconfig-tools
find . -type f -name '*.ts' -exec editorconfig-tools infer {} + > .editorconfig
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.