aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* ci-scripts: Remove checking release commitOrkun Tokdemir2024-12-053-18/+0
| | | | | | | | Since we dediced to increase the version number in advance, we should not check the commit message for the release commit. Change-Id: Ia1c66ba56cde471420eb443269612b685fc91e80 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* ci-scripts: Add `all_dev` scriptOrkun Tokdemir2024-11-252-1/+77
| | | | | | | | | | | Since it is not possible to pass arguments to `npm run` scripts, we need to create a new script. * Use `all_dev` script instead of collection of `npm run` scripts * Add `--profile` option to `all_dev` and `install-ext` scripts Change-Id: I5d0bf54f5ad383a58c46763419e4ce28c8240700 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Use force flag to install extensionsOrkun Tokdemir2024-11-131-1/+1
| | | | | | | | When a higher version of an extension is already installed, the extension installation fails. So, use the force flag to install. Change-Id: I7e00b11b31cf129d081e4451e3138e068e82f630 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Use native line endings for each platformOrkun Tokdemir2024-11-071-9/+14
| | | | | | | | | | Before this commit, the `generate_licenses.ts` script was using `\n` line endings for all platforms. This commit changes the code to use the native line endings for each platform. Othwerwise, comparing generated licenses fails on Windows. Change-Id: Ic7022805c4ec04ffdcb8a7480df7b7543df70d4d Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Install only version matching extensionOrkun Tokdemir2024-11-071-14/+22
| | | | | | | | | Instead of sorting `*.vsix` files by their versions, we can simply install the one that matches the extension version. This is a more reliable way to install the correct extension version. Change-Id: I0b499dd4222db93378afcff0ac584b63626a6084 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Move `checkChangelog`from `ci_lint.ts` to `publish.ts`Orkun Tokdemir2024-11-062-4/+4
| | | | | | | | | `checkChangelog` is only needed when publishing a new version, so it makes sense to move it to `publish.ts`. Otherwise, it fails when we bump the version in `package.json` and run not update changelog. Change-Id: Ib318f92b4950e2b4e71db7f3465c58d874faed2c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Remove qt-lib license from ThirdPartyNotices.txtOrkun Tokdemir2024-11-062-2/+3
| | | | | | | | | We already put the dependencies of qt-lib in the ThirdPartyNotices.txt. So we don't need to put the license of qt-lib in the ThirdPartyNotices.txt. Change-Id: I1cb24acd46ed3f0852be6d15667f2d01361fb179 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Improve local license file validationOrkun Tokdemir2024-10-251-9/+9
| | | | | | | | * If a local license name includes `license` somehow, consider it as a license file. Change-Id: Ib5f999c81905d7618155fdd2ebb5a562a7a0d739 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Add caching for eslintOrkun Tokdemir2024-10-222-2/+2
| | | | | | | | * Add caching for eslint * Gather commands together in package.json Change-Id: I3169cff2974a29a2ddd7daa97d3e8560420b1e06 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Add if check for pre-release versionsOrkun Tokdemir2024-10-211-1/+16
| | | | | | | | | | Fail publishing when the minor version is even to follow the vscode extension publishing guidelines. https://code.visualstudio.com/api/working-with-extensions/publishing-extension Change-Id: Ie78dcf4b6744773319d7d2ef8af8c3367b8ed28c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Improve `install-ext` scriptOrkun Tokdemir2024-09-271-3/+12
| | | | | | | | * Parse the output folder * Install the latest version of the extension Change-Id: I844e92cfd308e85b872270cf4693f3d9bec3a970 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Generate tag after publishingOrkun Tokdemir2024-09-243-0/+93
| | | | | | | | | | * Add additional checks before publishing * Add `npm run _prepublish_git` to clean up before publishing extension packs * Add `common.ts` to handle common functions for ci-scripts Change-Id: Ie8ab06533890048b200382e64c4900b2b7119798 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Package: Add commit hash file to packageOrkun Tokdemir2024-09-163-0/+63
| | | | | | | | | | | | * Add `package.ts` to handle the packaging of extensions * Add `publish_ext_pack.ts` to hande the publishing of extension packs inside `.ts` scripts * Add generation of commit hash file to every extension and extension pack * Remove commit hash file after publishing and packaging Change-Id: Ic6ecd59ab3d045a7022e9322a75a07833a3885de Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Add publish commandsOrkun Tokdemir2024-09-091-0/+29
| | | | | | | | | | * Add the `publish.ts` script to publish the package * Add the `_prepublish` command to run before publishing * Add `vsce` to the `devDependencies` for the extension packs * Update package-lock.json Change-Id: I76c9c68b4bd653e4598ce8607538237d733f6915 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* ci-scripts: Add missing license headerOrkun Tokdemir2024-09-092-1/+4
| | | | | | | | * Update `check_changelog.ts` * Correct `eslint.ts` license header year Change-Id: I663ef732b2ee0679de825f3d548252253058e245 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Add check_changelog scriptOrkun Tokdemir2024-09-062-0/+36
| | | | | | | | * Check if the updated version exist in `CHANGELOG.md` * Update `package.json` Change-Id: If1a4211113eef1fb0f9cfbe1ac1d2743239040ea Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ci-scripts: Move to the root folderOrkun Tokdemir2024-08-268-0/+374
Change-Id: I272fb5f3b8ffe2e1dcd1cbe7a339de9a34b0a7ad Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>