Skip to content

Commit 8bc8698

Browse files
author
Marc Lipovsky
authored
Merge pull request #52 from marclipovsky/feature/ts-migration
Feature/ts migration MINOR
2 parents 19856bb + 2f223dc commit 8bc8698

File tree

9 files changed

+261
-174
lines changed

9 files changed

+261
-174
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
node-version: 18.13.0
2727
- name: Install dependencies
2828
run: npm install
29+
- name: Build package
30+
run: npm run build
2931
- name: Run headless test
3032
uses: GabrielBB/[email protected]
3133
with:

.github/workflows/publish-extension.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
steps:
1414
- name: Checkout to branch
1515
uses: actions/checkout@v4
16+
1617
- name: Setup node.js
1718
uses: actions/setup-node@v4
1819
with:
1920
node-version: 20
21+
2022
- name: "Bump version"
2123
uses: 'phips28/gh-action-bump-version@master'
2224
env:
@@ -36,8 +38,9 @@ jobs:
3638
APP_VERSION=`cat package.json | jq ".version" -M | sed 's/\"//g'`
3739
echo "AppVersion=$APP_VERSION" >> $GITHUB_OUTPUT
3840
echo "app version = v$APP_VERSION"
41+
3942
- name: Build VSIX package
40-
run: npm run build -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
43+
run: npm run package -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
4144

4245
- name: Publish extension package
4346
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
*.vsix
33
.vscode-test
44
.DS_Storedist
5+
out/

extension.js

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

package-lock.json

Lines changed: 52 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"categories": [
2121
"Other"
2222
],
23-
"main": "./extension",
23+
"main": "./out/extension",
2424
"activationEvents": [
2525
"onCommand:string-manipulation.titleize",
2626
"onCommand:string-manipulation.titleizeApStyle",
@@ -333,8 +333,10 @@
333333
},
334334
"scripts": {
335335
"test": "node ./test/runTest.js",
336-
"build": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package",
337-
"vsce": "vsce"
336+
"build": "tsc",
337+
"package": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package",
338+
"vsce": "vsce",
339+
"debug": "code --extensionDevelopmentPath=./"
338340
},
339341
"devDependencies": {
340342
"@types/glob": "^7.1.3",
@@ -346,12 +348,13 @@
346348
"glob": "^7.1.5",
347349
"mocha": "^10.2.0",
348350
"sinon": "^9.2.4",
349-
"typescript": "^3.9.9",
351+
"typescript": "^3.9.10",
350352
"vsce": "^2.15.0",
351353
"vscode-test": "^1.6.1"
352354
},
353355
"dependencies": {
354356
"@sindresorhus/slugify": "^0.3.0",
357+
"@types/underscore.string": "^0.0.41",
355358
"ap-style-title-case": "^1.1.2",
356359
"chicago-capitalize": "^0.1.0",
357360
"underscore.string": "^3.3.5"

0 commit comments

Comments
 (0)