Skip to content

Commit ebc511f

Browse files
committed
♻️ Upgrade dependencies, use parcel for bundling
1 parent 16e8bb7 commit ebc511f

6 files changed

Lines changed: 4194 additions & 225 deletions

File tree

.gitignore

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

.parcelrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@parcel/config-default",
3+
"transformers": {
4+
"*.{ts}": [
5+
"@parcel/transformer-typescript-tsc"
6+
]
7+
}
8+
}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.vscode-test/**
33
.gitignore
44
vsc-extension-quickstart.md
5+
src/**

package.json

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
"color": "#000000",
1212
"theme": "dark"
1313
},
14+
"sideEffect": false,
1415
"engines": {
15-
"vscode": "^1.36.0"
16+
"vscode": "^1.62.0",
17+
"node": "^14.16.0"
1618
},
1719
"categories": [
1820
"Snippets",
1921
"Other"
2022
],
21-
"main": "./out/src/extension",
23+
"source": "./src/extension.ts",
24+
"main": "./out/extension.js",
2225
"activationEvents": [
2326
"onCommand:extension.createComponent",
2427
"onCommand:extension.createFelaComponent"
@@ -77,38 +80,38 @@
7780
"ackeeFrontend.typescriptFelaTheme": {
7881
"type": "boolean",
7982
"default": false,
80-
"description": "If enabled, scaffolded styles of components will have `TRuleWithTheme` instead of simple `TRule` (`typescript` option must be enabled)"
83+
"description": "If enabled, scaffolded styles of components will have `TRuleWithTheme` instead of simple `TRule` (TypeScript option must be enabled)"
8184
},
8285
"ackeeFrontend.typescriptFelaExtendProp": {
8386
"type": "boolean",
8487
"default": false,
85-
"description": "If enabled, scaffolded interfaces of components will have `extend` prop. (`typescript` option must enabled)."
88+
"description": "If enabled, scaffolded interfaces of components will have `extend` prop. (TypeScript option must enabled)."
8689
}
8790
}
8891
}
8992
},
9093
"scripts": {
91-
"vscode:prepublish": "yarn build-base --minify",
92-
"clean": "rm -rf out *.vsix",
93-
"build-base": "yarn clean; esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
94-
"build": "yarn build-base --sourcemap",
95-
"build-watch": "yarn build-base --sourcemap --watch",
96-
"test-compile": "tsc -p ./",
97-
"version": "changelog-it && code --wait CHANGELOG.md && git add CHANGELOG.md",
98-
"package": "vsce package"
94+
"clean": "rm -rf out *.vslx",
95+
"vscode:prepublish": "yarn build",
96+
"build": "yarn clean && parcel build",
97+
"watch": "parcel watch",
98+
"check": "tsc --noEmit",
99+
"package": "vsce package --yarn",
100+
"version": "changelog-it && code --wait CHANGELOG.md && git add CHANGELOG.md"
99101
},
100102
"devDependencies": {
101-
"@types/node": "^10.12.21",
102-
"@types/vscode": "^1.36.0",
103+
"@types/node": "^14.16.0",
104+
"@types/shelljs": "^0.8.9",
105+
"@types/vscode": "^1.62.0",
103106
"changelog-it": "github:AckeeCZ/changelog-it",
104-
"esbuild": "^0.13.15",
105-
"typescript": "^3.3.1",
107+
"parcel": "^2.0.1",
108+
"typescript": "^4.5.2",
106109
"vsce": "^2.5.0"
107110
},
108111
"dependencies": {
109112
"fs": "0.0.1-security",
110113
"path": "^0.12.7",
111-
"shelljs": "^0.8.3"
114+
"shelljs": "^0.8.4"
112115
},
113116
"resolutions": {
114117
"yargs-parser": "^20.2.4",

tsconfig.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es6",
5-
"outDir": "out",
6-
"lib": [
7-
"es6"
8-
],
9-
"sourceMap": true,
10-
"rootDir": "."
11-
},
12-
"exclude": [
13-
"node_modules",
14-
".vscode-test"
15-
]
16-
}
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "ES2019",
5+
"outDir": "out",
6+
"lib": ["ES2019"],
7+
"sourceMap": true,
8+
"rootDir": "src",
9+
"strict": true /* enable all strict type-checking options */,
10+
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
11+
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
12+
"noUnusedParameters": true /* Report errors on unused parameters. */
13+
},
14+
"include": ["src/**/*"],
15+
"exclude": ["node_modules", ".vscode-test"]
16+
}

0 commit comments

Comments
 (0)