-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up and restructure files #7
Conversation
datadog-ci/package.json
Outdated
"test": "jest" | ||
"lint": "eslint **/*.ts", | ||
"test": "jest", | ||
"prepackage": "yarn install --production", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must use yarn install --production
not only to reduce the VSIX file from 55mb to 25mb but also because without this, we have an fsevents
binary file and uploading the file fails because of a wrong MIME type (microsoft/tfs-cli#414).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Azure DevOps tasks need a specific structure. Having it different complicates a lot of things.
The
node_modules
must be included at the same level as thetask.json
file, in a subfolder for the task (that I calleddatadog-ci
).Compiled
*.js
files must me at the same level as thetask.json
file, so we can't have adist
folder. When unit testing, we'll also need the compiled*.js
files to be at the same level as the*.ts
files (proper unit testing will be added in a subsequent PR).