Skip to content

Commit b2fb217

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/npm-development-ad96de9887
2 parents ee9203e + 8556d24 commit b2fb217

12 files changed

+1152
-26753
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ lib/
22
dist/
33
node_modules/
44
coverage/
5+
work/

DEVELOPMENT.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Development Diary
2+
3+
## Setup
4+
5+
1. Create a repository from the template
6+
https://github.com/actions/typescript-action
7+
8+
2. Clone the repository locally (this time through
9+
[GitHub Desktop](https://github.com/apps/desktop))
10+
11+
3. Open local repository in VS Code Insiders
12+
13+
4. Open the local folder in the pre-configured devcontainer
14+
15+
5. Update the CODEOWNERS so that I am the owner
16+
17+
## Development
18+
19+
1.

__tests__/index.test.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
* Unit tests for the action's entrypoint, src/index.ts
33
*/
44

5-
import * as main from '../src/main'
5+
import * as themeConverter from '../src/themeConverter'
66

77
// Mock the action's entrypoint
8-
const runMock = jest.spyOn(main, 'run').mockImplementation()
8+
const runMock = jest
9+
.spyOn(themeConverter, 'cloneRepository')
10+
.mockImplementation()
911

10-
describe('index', () => {
11-
it('calls run when imported', async () => {
12+
describe('themeConverter', () => {
13+
it('calls cloneRepository when imported', async () => {
1214
// eslint-disable-next-line @typescript-eslint/no-require-imports
1315
require('../src/index')
1416

action.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: 'The name of your action here'
2-
description: 'Provide a description here'
3-
author: 'Your name or organization here'
1+
name: 'VS Code to Visual Studio Theme Converter'
2+
description:
3+
'A GitHub Action that converts a Visual Studio Code theme to a Visual Studio
4+
theme'
5+
author: 'Alex Ravenna'
46

57
# Add your action's branding here. This will appear on the GitHub Marketplace.
68
branding:
@@ -10,14 +12,14 @@ branding:
1012
# Define your inputs here.
1113
inputs:
1214
milliseconds:
13-
description: 'Your input description here'
14-
required: true
15-
default: '1000'
15+
description: 'The path to the VS Code theme JSON to be converted'
16+
required: false
17+
default: ''
1618

1719
# Define your outputs here.
1820
outputs:
19-
time:
20-
description: 'Your output description here'
21+
output-vsix:
22+
description: 'The path to the output VSIX file'
2123

2224
runs:
2325
using: node20

badges/coverage.svg

+1-1
Loading

0 commit comments

Comments
 (0)