Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
node-version: 18.13.0
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Run headless test
uses: GabrielBB/[email protected]
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
steps:
- name: Checkout to branch
uses: actions/checkout@v4

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: "Bump version"
uses: 'phips28/gh-action-bump-version@master'
env:
Expand All @@ -36,8 +38,9 @@ jobs:
APP_VERSION=`cat package.json | jq ".version" -M | sed 's/\"//g'`
echo "AppVersion=$APP_VERSION" >> $GITHUB_OUTPUT
echo "app version = v$APP_VERSION"

- name: Build VSIX package
run: npm run build -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
run: npm run package -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix

- name: Publish extension package
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
*.vsix
.vscode-test
.DS_Storedist
out/
140 changes: 0 additions & 140 deletions extension.js

This file was deleted.

77 changes: 52 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"categories": [
"Other"
],
"main": "./extension",
"main": "./out/extension",
"activationEvents": [
"onCommand:string-manipulation.titleize",
"onCommand:string-manipulation.titleizeApStyle",
Expand Down Expand Up @@ -333,8 +333,10 @@
},
"scripts": {
"test": "node ./test/runTest.js",
"build": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package",
"vsce": "vsce"
"build": "tsc",
"package": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package",
"vsce": "vsce",
"debug": "code --extensionDevelopmentPath=./"
},
"devDependencies": {
"@types/glob": "^7.1.3",
Expand All @@ -346,12 +348,13 @@
"glob": "^7.1.5",
"mocha": "^10.2.0",
"sinon": "^9.2.4",
"typescript": "^3.9.9",
"typescript": "^3.9.10",
"vsce": "^2.15.0",
"vscode-test": "^1.6.1"
},
"dependencies": {
"@sindresorhus/slugify": "^0.3.0",
"@types/underscore.string": "^0.0.41",
"ap-style-title-case": "^1.1.2",
"chicago-capitalize": "^0.1.0",
"underscore.string": "^3.3.5"
Expand Down
Loading
Loading