material-icon-theme 4.23.1 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +51 -51
- package/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +7 -0
- package/.github/workflows/build.yml +45 -45
- package/.github/workflows/color-check.yml +22 -22
- package/.github/workflows/release.yml +73 -73
- package/.vscodeignore +21 -21
- package/CHANGELOG.md +1325 -1292
- package/CONTRIBUTING.md +199 -29
- package/README.md +198 -199
- package/icons/bitbucket.svg +13 -1
- package/icons/bun.svg +2 -0
- package/icons/bun_light.svg +2 -0
- package/icons/craco.svg +45 -45
- package/icons/folder-changesets-open.svg +5 -5
- package/icons/folder-changesets.svg +2 -2
- package/icons/folder-decorators-open.svg +2 -2
- package/icons/folder-decorators.svg +5 -5
- package/icons/folder-gamemaker-open.svg +2 -0
- package/icons/folder-gamemaker.svg +2 -0
- package/icons/folder-supabase-open.svg +5 -5
- package/icons/folder-supabase.svg +2 -2
- package/icons/gamemaker.svg +4 -0
- package/icons/objective-c.svg +1 -0
- package/icons/objective-cpp.svg +1 -0
- package/icons/pascal.svg +6 -1
- package/icons/sonarcloud.svg +4 -4
- package/icons/stylable.svg +10 -10
- package/icons/supabase.svg +4 -4
- package/icons/tldraw.svg +4 -0
- package/icons/tldraw_light.svg +4 -0
- package/icons/vitest.svg +6 -6
- package/images/contributors.png +0 -0
- package/images/fileIcons.png +0 -0
- package/images/folderIcons.png +0 -0
- package/images/how-tos/folder-icon-parts.png +0 -0
- package/images/how-tos/pick-folder-colors.png +0 -0
- package/images/how-tos/pick-folder-colors.svg +301 -0
- package/images/how-tos/svg-folder-icon-with-correct-colors.png +0 -0
- package/images/how-tos/svg-folder-icon-with-wrong-colors.png +0 -0
- package/images/how-tos/svg-with-light-color.png +0 -0
- package/images/how-tos/svg-with-spacing.png +0 -0
- package/images/how-tos/svg-with-too-dark-color.png +0 -0
- package/images/how-tos/svg-with-wrong-color.png +0 -0
- package/images/how-tos/svg-without-spacing.png +0 -0
- package/package.json +252 -252
- package/package.nls.de.json +32 -32
- package/package.nls.es.json +29 -29
- package/package.nls.fr.json +29 -29
- package/package.nls.ja.json +32 -32
- package/package.nls.json +32 -32
- package/package.nls.nl.json +32 -32
- package/package.nls.pl.json +32 -32
- package/package.nls.pt-BR.json +29 -29
- package/package.nls.pt-PT.json +29 -29
- package/package.nls.ru.json +29 -29
- package/package.nls.zh-CN.json +29 -29
- package/package.nls.zh-TW.json +29 -29
- package/src/commands/activate.ts +28 -28
- package/src/commands/explorerArrows.ts +55 -55
- package/src/commands/folderColor.ts +96 -96
- package/src/commands/folders.ts +55 -55
- package/src/commands/grayscale.ts +55 -55
- package/src/commands/iconPacks.ts +64 -64
- package/src/commands/index.ts +30 -30
- package/src/commands/opacity.ts +46 -46
- package/src/commands/saturation.ts +46 -46
- package/src/extension.ts +37 -37
- package/src/helpers/customIcons.ts +8 -8
- package/src/helpers/index.ts +88 -88
- package/src/i18n/index.ts +78 -78
- package/src/i18n/lang-de.ts +43 -43
- package/src/i18n/lang-en.ts +43 -43
- package/src/i18n/lang-es.ts +43 -43
- package/src/i18n/lang-fr.ts +43 -43
- package/src/i18n/lang-ja.ts +43 -43
- package/src/i18n/lang-nl.ts +43 -43
- package/src/i18n/lang-pl.ts +43 -43
- package/src/i18n/lang-pt-br.ts +43 -43
- package/src/i18n/lang-pt-pt.ts +43 -43
- package/src/i18n/lang-ru.ts +43 -43
- package/src/i18n/lang-uk.ts +43 -43
- package/src/i18n/lang-zh-cn.ts +43 -43
- package/src/i18n/lang-zh-tw.ts +43 -43
- package/src/icons/fileIcons.ts +2240 -2197
- package/src/icons/folderIcons.ts +823 -806
- package/src/icons/generator/folderGenerator.ts +340 -340
- package/src/icons/generator/iconOpacity.ts +111 -111
- package/src/icons/generator/iconSaturation.ts +140 -140
- package/src/icons/generator/jsonGenerator.ts +191 -191
- package/src/icons/languageIcons.ts +144 -141
- package/src/models/i18n/translation.ts +41 -41
- package/src/models/iconConfiguration.ts +37 -37
- package/src/models/icons/iconJsonOptions.ts +21 -21
- package/src/models/index.ts +3 -3
- package/src/scripts/contributors/index.ts +138 -138
- package/src/scripts/helpers/screenshots.ts +32 -32
- package/src/scripts/icons/checks/checkIconAvailability.ts +215 -215
- package/src/scripts/icons/checks/checkIconConflicts.ts +152 -152
- package/src/scripts/icons/checks/checkIconUsage.ts +137 -137
- package/src/scripts/icons/checks/index.ts +7 -7
- package/src/scripts/preview/index.ts +40 -40
- package/src/scripts/preview/preview.ts +163 -163
- package/src/test/runTest.ts +26 -26
- package/src/test/spec/i18n/i18n.spec.ts +54 -54
- package/src/test/spec/icons/fileIcons.spec.ts +250 -250
- package/src/test/spec/icons/folderIcons.spec.ts +418 -418
- package/src/test/spec/icons/languageIcons.spec.ts +184 -184
- package/images/bloop.png +0 -0
package/.eslintrc.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["plugin:prettier/recommended"],
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es6": true,
|
|
6
|
-
"node": true
|
|
7
|
-
},
|
|
8
|
-
"parser": "@typescript-eslint/parser",
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"project": "tsconfig.json",
|
|
11
|
-
"sourceType": "module"
|
|
12
|
-
},
|
|
13
|
-
"plugins": ["@typescript-eslint"],
|
|
14
|
-
"rules": {
|
|
15
|
-
"@typescript-eslint/naming-convention": [
|
|
16
|
-
"error",
|
|
17
|
-
{
|
|
18
|
-
"selector": "variable",
|
|
19
|
-
"format": ["camelCase"]
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
23
|
-
"no-trailing-spaces": "error",
|
|
24
|
-
"camelcase": "error",
|
|
25
|
-
"prefer-const": "error",
|
|
26
|
-
"eqeqeq": ["error", "smart"],
|
|
27
|
-
"id-blacklist": [
|
|
28
|
-
"error",
|
|
29
|
-
"any",
|
|
30
|
-
"Number",
|
|
31
|
-
"number",
|
|
32
|
-
"String",
|
|
33
|
-
"string",
|
|
34
|
-
"Boolean",
|
|
35
|
-
"boolean",
|
|
36
|
-
"Undefined"
|
|
37
|
-
],
|
|
38
|
-
"id-match": "error",
|
|
39
|
-
"no-eval": "error",
|
|
40
|
-
"no-underscore-dangle": "error",
|
|
41
|
-
"no-unsafe-finally": "error",
|
|
42
|
-
"no-var": "error",
|
|
43
|
-
"spaced-comment": "error",
|
|
44
|
-
"prettier/prettier": [
|
|
45
|
-
"error",
|
|
46
|
-
{
|
|
47
|
-
"endOfLine": "auto"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": ["plugin:prettier/recommended"],
|
|
3
|
+
"env": {
|
|
4
|
+
"browser": true,
|
|
5
|
+
"es6": true,
|
|
6
|
+
"node": true
|
|
7
|
+
},
|
|
8
|
+
"parser": "@typescript-eslint/parser",
|
|
9
|
+
"parserOptions": {
|
|
10
|
+
"project": "tsconfig.json",
|
|
11
|
+
"sourceType": "module"
|
|
12
|
+
},
|
|
13
|
+
"plugins": ["@typescript-eslint"],
|
|
14
|
+
"rules": {
|
|
15
|
+
"@typescript-eslint/naming-convention": [
|
|
16
|
+
"error",
|
|
17
|
+
{
|
|
18
|
+
"selector": "variable",
|
|
19
|
+
"format": ["camelCase"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
23
|
+
"no-trailing-spaces": "error",
|
|
24
|
+
"camelcase": "error",
|
|
25
|
+
"prefer-const": "error",
|
|
26
|
+
"eqeqeq": ["error", "smart"],
|
|
27
|
+
"id-blacklist": [
|
|
28
|
+
"error",
|
|
29
|
+
"any",
|
|
30
|
+
"Number",
|
|
31
|
+
"number",
|
|
32
|
+
"String",
|
|
33
|
+
"string",
|
|
34
|
+
"Boolean",
|
|
35
|
+
"boolean",
|
|
36
|
+
"Undefined"
|
|
37
|
+
],
|
|
38
|
+
"id-match": "error",
|
|
39
|
+
"no-eval": "error",
|
|
40
|
+
"no-underscore-dangle": "error",
|
|
41
|
+
"no-unsafe-finally": "error",
|
|
42
|
+
"no-var": "error",
|
|
43
|
+
"spaced-comment": "error",
|
|
44
|
+
"prettier/prettier": [
|
|
45
|
+
"error",
|
|
46
|
+
{
|
|
47
|
+
"endOfLine": "auto"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Description
|
|
2
|
+
|
|
3
|
+
<!-- Please describe in a short sentence or bullet points what changes you have made. -->
|
|
4
|
+
|
|
5
|
+
## Contribution Guidelines
|
|
6
|
+
|
|
7
|
+
[ ] By creating this pull request, I acknowledge that I have read the [Contribution Guidelines](../../CONTRIBUTING.md) for this project.
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
name: Build + Test
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
runs-on: ${{ matrix.os }}
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
os: [windows-latest, ubuntu-latest]
|
|
11
|
-
node-version: [16.x]
|
|
12
|
-
|
|
13
|
-
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout 🛎
|
|
17
|
-
uses: actions/checkout@v3
|
|
18
|
-
- name: Setup Node.js ${{ matrix.node-version }} ⚙
|
|
19
|
-
uses: actions/setup-node@v3
|
|
20
|
-
with:
|
|
21
|
-
node-version: ${{ matrix.node-version }}
|
|
22
|
-
- name: Run display server 🖥
|
|
23
|
-
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
|
|
24
|
-
shell: bash
|
|
25
|
-
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
|
|
26
|
-
- name: Install node_modules 📦
|
|
27
|
-
run: npm ci
|
|
28
|
-
- name: Cache node_modules 💾
|
|
29
|
-
uses: actions/cache@v3
|
|
30
|
-
env:
|
|
31
|
-
cache-name: cache-node-modules
|
|
32
|
-
with:
|
|
33
|
-
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
34
|
-
path: ~/.npm
|
|
35
|
-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
36
|
-
restore-keys: |
|
|
37
|
-
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
38
|
-
${{ runner.os }}-build-
|
|
39
|
-
${{ runner.os }}-
|
|
40
|
-
- name: Test + Build 🚀
|
|
41
|
-
run: |
|
|
42
|
-
npm test
|
|
43
|
-
npm run vscode:prepublish
|
|
44
|
-
env:
|
|
45
|
-
DISPLAY: ':99.0'
|
|
1
|
+
name: Build + Test
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
runs-on: ${{ matrix.os }}
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
os: [windows-latest, ubuntu-latest]
|
|
11
|
+
node-version: [16.x]
|
|
12
|
+
|
|
13
|
+
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout 🛎
|
|
17
|
+
uses: actions/checkout@v3
|
|
18
|
+
- name: Setup Node.js ${{ matrix.node-version }} ⚙
|
|
19
|
+
uses: actions/setup-node@v3
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
- name: Run display server 🖥
|
|
23
|
+
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
|
|
24
|
+
shell: bash
|
|
25
|
+
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
|
|
26
|
+
- name: Install node_modules 📦
|
|
27
|
+
run: npm ci
|
|
28
|
+
- name: Cache node_modules 💾
|
|
29
|
+
uses: actions/cache@v3
|
|
30
|
+
env:
|
|
31
|
+
cache-name: cache-node-modules
|
|
32
|
+
with:
|
|
33
|
+
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
34
|
+
path: ~/.npm
|
|
35
|
+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
36
|
+
restore-keys: |
|
|
37
|
+
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
38
|
+
${{ runner.os }}-build-
|
|
39
|
+
${{ runner.os }}-
|
|
40
|
+
- name: Test + Build 🚀
|
|
41
|
+
run: |
|
|
42
|
+
npm test
|
|
43
|
+
npm run vscode:prepublish
|
|
44
|
+
env:
|
|
45
|
+
DISPLAY: ':99.0'
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
name: Check SVG icon colors
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
paths:
|
|
6
|
-
- 'icons/*.svg'
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
color-check:
|
|
10
|
-
name: SVG Color Check
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
env:
|
|
13
|
-
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout 🛎️
|
|
16
|
-
uses: actions/checkout@v3
|
|
17
|
-
with:
|
|
18
|
-
fetch-depth: 0
|
|
19
|
-
- name: Check colors 🎨
|
|
20
|
-
run: |
|
|
21
|
-
svgFiles=$(git diff origin/${{ env.TARGET_BRANCH }} --diff-filter=ACMRTUX --name-only | grep '.svg$')
|
|
22
|
-
npx svg-color-linter --colors material-colors.yml ${svgFiles}
|
|
1
|
+
name: Check SVG icon colors
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths:
|
|
6
|
+
- 'icons/*.svg'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
color-check:
|
|
10
|
+
name: SVG Color Check
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
env:
|
|
13
|
+
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout 🛎️
|
|
16
|
+
uses: actions/checkout@v3
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
- name: Check colors 🎨
|
|
20
|
+
run: |
|
|
21
|
+
svgFiles=$(git diff origin/${{ env.TARGET_BRANCH }} --diff-filter=ACMRTUX --name-only | grep '.svg$')
|
|
22
|
+
npx svg-color-linter --colors material-colors.yml ${svgFiles}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
name: Release + Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
versionChange:
|
|
7
|
-
type: choice
|
|
8
|
-
description: Select the version change
|
|
9
|
-
required: true
|
|
10
|
-
options:
|
|
11
|
-
- major
|
|
12
|
-
- minor
|
|
13
|
-
- patch
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
release:
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
env:
|
|
19
|
-
VERSION_CHANGE: ${{ github.event.inputs.versionChange }}
|
|
20
|
-
steps:
|
|
21
|
-
- name: Checkout 🛎️
|
|
22
|
-
uses: actions/checkout@v3
|
|
23
|
-
with:
|
|
24
|
-
fetch-depth: 0
|
|
25
|
-
- name: Setup Node.js ⚙️
|
|
26
|
-
uses: actions/setup-node@v3
|
|
27
|
-
with:
|
|
28
|
-
node-version: 'lts/*'
|
|
29
|
-
registry-url: 'https://registry.npmjs.org'
|
|
30
|
-
- name: Install node_modules 📦
|
|
31
|
-
run: |
|
|
32
|
-
npm ci
|
|
33
|
-
npm install --global @vscode/vsce
|
|
34
|
-
- name: Update version ↗
|
|
35
|
-
run: |
|
|
36
|
-
git config --global user.name 'Philipp Kief'
|
|
37
|
-
git config --global user.email 'PKief@users.noreply.github.com'
|
|
38
|
-
git config --global push.followTags true
|
|
39
|
-
npm version ${{ env.VERSION_CHANGE }} -m "Release %s"
|
|
40
|
-
- name: Get meta data 🔍
|
|
41
|
-
run: |
|
|
42
|
-
NODE_VERSION=$(node -p -e "require('./package.json').version")
|
|
43
|
-
echo VERSION=$NODE_VERSION >> $GITHUB_ENV
|
|
44
|
-
NODE_NAME=$(node -p -e "require('./package.json').name")
|
|
45
|
-
echo NAME=$NODE_NAME >> $GITHUB_ENV
|
|
46
|
-
NODE_DISPLAY_NAME=$(node -p -e "require('./package.json').displayName")
|
|
47
|
-
echo DISPLAY_NAME=$NODE_DISPLAY_NAME >> $GITHUB_ENV
|
|
48
|
-
- name: Build ⚒️
|
|
49
|
-
run: vsce package
|
|
50
|
-
- name: Push tags 📌
|
|
51
|
-
run: git push
|
|
52
|
-
- name: Release ${{ env.VERSION }} 🔆
|
|
53
|
-
uses: softprops/action-gh-release@v1
|
|
54
|
-
with:
|
|
55
|
-
files: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
56
|
-
tag_name: v${{ env.VERSION }}
|
|
57
|
-
name: ${{ env.DISPLAY_NAME }} v${{ env.VERSION }}
|
|
58
|
-
generate_release_notes: true
|
|
59
|
-
- name: Publish to Open VSX Registry 🌐
|
|
60
|
-
uses: HaaLeo/publish-vscode-extension@v1
|
|
61
|
-
with:
|
|
62
|
-
pat: ${{ secrets.OPEN_VSX_TOKEN }}
|
|
63
|
-
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
64
|
-
- name: Publish to Visual Studio Marketplace 🌐
|
|
65
|
-
uses: HaaLeo/publish-vscode-extension@v1
|
|
66
|
-
with:
|
|
67
|
-
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
|
|
68
|
-
registryUrl: https://marketplace.visualstudio.com
|
|
69
|
-
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
70
|
-
- name: Publish to NPM Registry 🌐
|
|
71
|
-
run: npm publish
|
|
72
|
-
env:
|
|
73
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
1
|
+
name: Release + Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
versionChange:
|
|
7
|
+
type: choice
|
|
8
|
+
description: Select the version change
|
|
9
|
+
required: true
|
|
10
|
+
options:
|
|
11
|
+
- major
|
|
12
|
+
- minor
|
|
13
|
+
- patch
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
release:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
env:
|
|
19
|
+
VERSION_CHANGE: ${{ github.event.inputs.versionChange }}
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout 🛎️
|
|
22
|
+
uses: actions/checkout@v3
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
- name: Setup Node.js ⚙️
|
|
26
|
+
uses: actions/setup-node@v3
|
|
27
|
+
with:
|
|
28
|
+
node-version: 'lts/*'
|
|
29
|
+
registry-url: 'https://registry.npmjs.org'
|
|
30
|
+
- name: Install node_modules 📦
|
|
31
|
+
run: |
|
|
32
|
+
npm ci
|
|
33
|
+
npm install --global @vscode/vsce
|
|
34
|
+
- name: Update version ↗
|
|
35
|
+
run: |
|
|
36
|
+
git config --global user.name 'Philipp Kief'
|
|
37
|
+
git config --global user.email 'PKief@users.noreply.github.com'
|
|
38
|
+
git config --global push.followTags true
|
|
39
|
+
npm version ${{ env.VERSION_CHANGE }} -m "Release %s"
|
|
40
|
+
- name: Get meta data 🔍
|
|
41
|
+
run: |
|
|
42
|
+
NODE_VERSION=$(node -p -e "require('./package.json').version")
|
|
43
|
+
echo VERSION=$NODE_VERSION >> $GITHUB_ENV
|
|
44
|
+
NODE_NAME=$(node -p -e "require('./package.json').name")
|
|
45
|
+
echo NAME=$NODE_NAME >> $GITHUB_ENV
|
|
46
|
+
NODE_DISPLAY_NAME=$(node -p -e "require('./package.json').displayName")
|
|
47
|
+
echo DISPLAY_NAME=$NODE_DISPLAY_NAME >> $GITHUB_ENV
|
|
48
|
+
- name: Build ⚒️
|
|
49
|
+
run: vsce package
|
|
50
|
+
- name: Push tags 📌
|
|
51
|
+
run: git push
|
|
52
|
+
- name: Release ${{ env.VERSION }} 🔆
|
|
53
|
+
uses: softprops/action-gh-release@v1
|
|
54
|
+
with:
|
|
55
|
+
files: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
56
|
+
tag_name: v${{ env.VERSION }}
|
|
57
|
+
name: ${{ env.DISPLAY_NAME }} v${{ env.VERSION }}
|
|
58
|
+
generate_release_notes: true
|
|
59
|
+
- name: Publish to Open VSX Registry 🌐
|
|
60
|
+
uses: HaaLeo/publish-vscode-extension@v1
|
|
61
|
+
with:
|
|
62
|
+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
|
|
63
|
+
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
64
|
+
- name: Publish to Visual Studio Marketplace 🌐
|
|
65
|
+
uses: HaaLeo/publish-vscode-extension@v1
|
|
66
|
+
with:
|
|
67
|
+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
|
|
68
|
+
registryUrl: https://marketplace.visualstudio.com
|
|
69
|
+
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
|
|
70
|
+
- name: Publish to NPM Registry 🌐
|
|
71
|
+
run: npm publish
|
|
72
|
+
env:
|
|
73
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.vscodeignore
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.vscode/**
|
|
2
|
-
.github/**
|
|
3
|
-
.vscode-test/**
|
|
4
|
-
out/**
|
|
5
|
-
test/**
|
|
6
|
-
src/**
|
|
7
|
-
scripts/**
|
|
8
|
-
**/*.map
|
|
9
|
-
.gitignore
|
|
10
|
-
tsconfig.json
|
|
11
|
-
tslint.json
|
|
12
|
-
images/**
|
|
13
|
-
vsc-extension-quickstart.md
|
|
14
|
-
logo.svg
|
|
15
|
-
node_modules
|
|
16
|
-
package-lock.json
|
|
17
|
-
yarn.lock
|
|
18
|
-
build/**
|
|
19
|
-
svgo.config.js
|
|
20
|
-
.eslintignore
|
|
21
|
-
material-colors.yml
|
|
1
|
+
.vscode/**
|
|
2
|
+
.github/**
|
|
3
|
+
.vscode-test/**
|
|
4
|
+
out/**
|
|
5
|
+
test/**
|
|
6
|
+
src/**
|
|
7
|
+
scripts/**
|
|
8
|
+
**/*.map
|
|
9
|
+
.gitignore
|
|
10
|
+
tsconfig.json
|
|
11
|
+
tslint.json
|
|
12
|
+
images/**
|
|
13
|
+
vsc-extension-quickstart.md
|
|
14
|
+
logo.svg
|
|
15
|
+
node_modules
|
|
16
|
+
package-lock.json
|
|
17
|
+
yarn.lock
|
|
18
|
+
build/**
|
|
19
|
+
svgo.config.js
|
|
20
|
+
.eslintignore
|
|
21
|
+
material-colors.yml
|
|
22
22
|
changelog.config.json
|