Skip to content

Commit 9a2ae38

Browse files
committed
refactor: rename and clean project
1 parent d6d2ef0 commit 9a2ae38

File tree

11 files changed

+3764
-346
lines changed

11 files changed

+3764
-346
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish Package
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- "*"
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version-file: '.nvmrc'
15+
- run: npm ci
16+
- run: npm test
17+
- run: npm publish --access=public
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.20.0

.release-it.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
git:
2+
commitMessage: v${version}
3+
tagName: v${version}
4+
tagAnnotation: Release version ${version}
5+
requireCleanWorkingDir: false
6+
npm:
7+
publish: false
8+
disable-metrics: true

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
"out": true
77
},
88
"typescript.tsdk": "./node_modules/typescript/lib",
9-
"git.branchProtection": ["main"],
109
"files.associations": { "*.json": "jsonc" }
1110
}

LICENSE

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
2-
Copyright (c) Microsoft Corporation
3-
4-
All rights reserved.
5-
61
MIT License
72

8-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
9-
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
10-
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
11-
is furnished to do so, subject to the following conditions:
3+
Copyright (c) 2025-present The VSCodium contributors
4+
Copyright (c) 2022-present Microsoft Corporation.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
1212

13-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
1415

15-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
17-
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
18-
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE

README.md

Lines changed: 7 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,12 @@
1-
# @vscode/vsce
1+
[@vscodium/vsce](https://github.com/VSCodium/vsce)
2+
======================================================================
23

3-
> _The Visual Studio Code Extension Manager_
4+
[![Version](https://img.shields.io/npm/v/@vscodium/vsce.svg)](https://npmjs.org/package/@vscodium/vsce)
45

5-
[![Build Status](https://dev.azure.com/monacotools/Monaco/_apis/build/status/npm/microsoft.vscode-vsce?repoName=microsoft%2Fvscode-vsce&branchName=main)](https://dev.azure.com/monacotools/Monaco/_build/latest?definitionId=446&repoName=microsoft%2Fvscode-vsce&branchName=main)
6-
[![Version](https://img.shields.io/npm/v/@vscode/vsce.svg)](https://npmjs.org/package/@vscode/vsce)
6+
## <a id="fork"></a>Why fork from microsoft/vscode-vsce
77

8-
This tool assists in packaging and publishing Visual Studio Code extensions.
8+
The purpose of the fork is to remove the dependency on `@vscode/vsce-sign` which doesn't provide the native module for all the supported architectures by VSCodium.
99

10-
Read the [**Documentation**](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code website.
10+
## <a id="license"></a>License
1111

12-
## Requirements
13-
14-
[Node.js](https://nodejs.org/en/) at least `20.x.x`.
15-
16-
### Linux
17-
18-
In order to save credentials safely, this project uses [`keytar`](https://www.npmjs.com/package/keytar) which uses `libsecret`, which you may need to install before publishing extensions. Setting the `VSCE_STORE=file` environment variable will revert back to the file credential store. Using the `VSCE_PAT` environment variable will also avoid using `keytar`.
19-
20-
Depending on your distribution, you will need to run the following command:
21-
22-
- Debian/Ubuntu: `sudo apt-get install libsecret-1-dev`
23-
- Alpine: `apk add libsecret`
24-
- Red Hat-based: `sudo yum install libsecret-devel`
25-
- Arch Linux: `sudo pacman -S libsecret`
26-
27-
## Usage
28-
29-
```console
30-
$ npx @vscode/vsce --version
31-
```
32-
33-
`@vscode/vsce` is meant to be mainly used as a command-line tool. It can also be used as a library since it exposes a small [API](https://github.com/microsoft/vscode-vsce/blob/main/src/api.ts). When using `@vscode/vsce` as a library, be sure to sanitize any user input used in API calls to prevent security issues.
34-
35-
Supported package managers:
36-
37-
- `npm >=6`
38-
- `yarn >=1 <2`
39-
40-
## Configuration
41-
42-
You can configure the behavior of `vsce` by using CLI flags (run `vsce --help` to list them all). Example:
43-
44-
```console
45-
$ npx @vscode/vsce publish --baseImagesUrl https://my.custom/base/images/url
46-
```
47-
48-
Or you can also set them in the `package.json`, so that you avoid having to retype the common options again. Example:
49-
50-
```jsonc
51-
// package.json
52-
{
53-
"vsce": {
54-
"baseImagesUrl": "https://my.custom/base/images/url",
55-
"dependencies": true,
56-
"yarn": false
57-
}
58-
}
59-
```
60-
61-
## Development
62-
63-
First clone this repository, then:
64-
65-
```console
66-
$ npm install
67-
$ npm run watch:build # or `watch:test` to also build tests
68-
```
69-
70-
Once the watcher is up and running, you can run out of sources with:
71-
72-
```console
73-
$ node vsce
74-
```
75-
76-
Tests can be executed with:
77-
78-
```console
79-
$ npm test
80-
```
81-
82-
> **Note:** [Yarn](https://www.npmjs.com/package/yarn) is required to run the tests.
12+
[MIT](https://github.com/VSCodium/vsce/blob/master/LICENSE)

SECURITY.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

build/azure-pipelines.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)