Skip to content

Commit cb97d54

Browse files
authored
Merge pull request #712 from rage/fix-again
Fix again
2 parents fb9126e + ab96ed9 commit cb97d54

File tree

7 files changed

+35
-18
lines changed

7 files changed

+35
-18
lines changed

.github/workflows/build-and-upload.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ jobs:
2929
node-version: ${{ matrix.node-version }}
3030
- name: Package extension
3131
run: |
32-
npm run ci:all
3332
npm install -g @vscode/vsce
34-
npm run webpack
35-
vsce package ${{ env.PRERELEASE }}
33+
chmod +x bin/package.bash
34+
bin/package.bash ${{ env.PRERELEASE }}
3635
# move packaged extension from project root to own release folder
3736
mkdir extension && mv *.vsix extension
3837
env:

.vscodeignore

+4
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ webview-ui/package.json
5555
webview-ui/package-lock.json
5656
webview-ui/rollup.config.js
5757
webview-ui/node_modules/**
58+
59+
# Other files
60+
.*
61+
.*/

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## [3.0.0] - 2024-01-25
3+
## [3.0.1] - 2024-01-25
44

55
- Redesigned the user interface
66
- Fixed a bug when changing the exercise directory on Windows

CONTRIBUTING.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,22 @@ git clone https://github.com/rage/tmc-vscode.git
3030

3131
### Preparing the repository
3232

33-
From a terminal, where you have cloned the repository, execute the following command to install the required dependencies:
34-
35-
```bash
36-
npm ci
37-
```
38-
39-
Update the `tmc-python-tester` submodule
33+
From a terminal, where you have cloned the repository, update the `tmc-python-tester` submodule
4034

4135
```bash
4236
git submodule init && git submodule update
4337
```
4438

45-
Then prepare the backend:
39+
Then execute the following command to install the required dependencies:
4640

4741
```bash
48-
cd backend && npm ci && npm run setup
42+
npm run ci:all
4943
```
5044

51-
As well as the webview:
45+
Then prepare the backend:
5246

5347
```bash
54-
cd webview && npm ci
48+
cd backend && npm run setup
5549
```
5650

5751
You will need to rerun the setup when langs is updated, as this step will download the appropriate version of the CLI for the integration tests.
@@ -112,6 +106,8 @@ You can update the `package-lock.json` version with `npm i --package-lock-only`.
112106

113107
You can run the script manually by giving the GitHub release tag you're going to use as an argument. For example `./bin/validateRelease.sh v3.0.0-prerelease`.
114108

109+
The extension is packaged using the script `./bin/package.bash`. Like the validation script, you should install and test the resulting package manually to ensure there's no problems with the packaging. (You can install the extension from the package by selecting `Extensions: Install from VSIX` from the command palette) (TODO: automatically test the actual package somehow?)
110+
115111
## Other notes
116112

117113
Running the extension produces the following superfluous warnings:

bin/package.bash

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -euxo pipefail
3+
4+
# requires @vscode/vsce
5+
# the script takes an argument that can be set to "--pre-release" to package as a pre-release
6+
PRERELEASE_ARG=${1:-""}
7+
8+
# clean old artifacts to ensure that local packages match the CI where they don't exist
9+
# otherwise, a package could work locally because some file happened to be there that's not there in CI
10+
rm -rf ./dist
11+
rm -rf ./webview-ui/public/build
12+
13+
# run ci and build webview
14+
npm run ci:all
15+
npm run webview:build
16+
17+
# create package
18+
npx vsce package ${PRERELEASE_ARG}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "test-my-code",
33
"displayName": "TestMyCode",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"description": "TestMyCode extension for Visual Studio Code",
66
"categories": [
77
"Other"

0 commit comments

Comments
 (0)