Skip to content

Commit 2366de2

Browse files
committed
v0.1: Formatting + CI CD
1 parent 26e2bcf commit 2366de2

3 files changed

Lines changed: 49 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
name: Lint, Format Check, Typecheck, Build
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: npm
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: ESLint
31+
run: npm run lint
32+
33+
- name: Format Check (Prettier)
34+
run: npx --yes prettier@^3.3.0 --check .
35+
36+
- name: Typecheck
37+
run: npm run check-types
38+
39+
- name: Build
40+
run: npm run compile
41+
42+
- name: Production Package Build
43+
run: npm run package
44+

src/commands/createStructure.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export async function createStructure(): Promise<void> {
2525
throw new Error(ERROR_MESSAGES.TARGET_REQUIRED);
2626
}
2727

28-
const initialFormat = vscode.workspace.getConfiguration('folderStructure')
28+
const initialFormat = vscode.workspace
29+
.getConfiguration('folderStructure')
2930
.get<OutputFormat>('outputFormat', DEFAULT_OUTPUT_FORMAT);
3031

3132
const panel = createStructureInputPanel(initialFormat);

src/ui/helpers/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ export const getStyles = () => {
77
};
88

99
export const getExample = (formatChoice: string): string => {
10-
return formatChoice === 'Plain Text Format'
11-
? `Directory structure:
10+
return formatChoice === 'Plain Text Format'
11+
? `Directory structure:
1212
└── project/
1313
├── src/
1414
│ ├── index.js
1515
│ └── styles.css
1616
└── README.md`
17-
: `{
17+
: `{
1818
"project": {
1919
"src": {
2020
"index": "js",

0 commit comments

Comments
 (0)