Skip to content

Commit 209934c

Browse files
committed
first version with import snippets
0 parents  commit 209934c

19 files changed

+1681
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [deinsoftware]
2+
custom: ["https://paypal.me/equiman/3"]

.github/social/preview.png

39.8 KB
Loading

.github/workflows/publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: publish
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- run: npm ci
19+
- run: npm run test
20+
21+
publish-vsce:
22+
needs: test
23+
if: ${{ success() }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
30+
registry-url: https://registry.npmjs.org/
31+
- run: npm i -g vsce
32+
- run: vsce publish -p ${{ secrets.VSCE_PAT }}
33+
34+
tweet:
35+
needs: publish-vsce
36+
if: ${{ success() }}
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: Eomm/why-don-t-you-tweet@v1
40+
if: ${{ !github.event.repository.private }}
41+
with:
42+
tweet-message: "Extension for @code with testging library snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
43+
$ ext install deinsoftware.testing-library-snippets\n\n
44+
#vscode #snippets #javascript #testing-library\n\n
45+
https://marketplace.visualstudio.com/items?itemName=deinsoftware.testing-library-snippets"
46+
env:
47+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
48+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
49+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
50+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
!.build
2+
!.build/extensions.js
3+
node_modules
4+
.vscode-test/
5+
*.vsix
6+
*.log
7+
.DS_Store
8+
!test
9+
test/**
10+
!test/**.test.js

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}"
11+
]
12+
}
13+
]
14+
}

.vscode/settings.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"cSpell.words": [
3+
"cfrv",
4+
"deinsoftware",
5+
"Equiman",
6+
"github",
7+
"mrvo",
8+
"paypal",
9+
"tbct",
10+
"tbgt",
11+
"tbgte",
12+
"tbid",
13+
"tblt",
14+
"tblte",
15+
"thbc",
16+
"thbct",
17+
"thbcw",
18+
"thblcw",
19+
"tmis",
20+
"ttemis",
21+
"ttems",
22+
"vfrv",
23+
"volta"
24+
],
25+
"markdownlint.config": {
26+
"MD024": { "siblings_only": true },
27+
"MD033": false
28+
},
29+
"explorer.fileNesting.patterns": {
30+
"README*": "CHANGELOG*, CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE*, README*, CHEATSHEET*"
31+
},
32+
"[json][jsonc]": {
33+
"editor.formatOnSave": true,
34+
"editor.tabSize": 4,
35+
"editor.defaultFormatter": "esbenp.prettier-vscode"
36+
}
37+
}

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"type": "shell",
9+
"command": "vsce",
10+
"args": ["package", "--out", "build/"]
11+
}
12+
]
13+
}

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/**
2+
.gitignore
3+
CHANGELOG.md
4+
test/**

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
<!-- http://keepachangelog.com/en/1.0.0/
4+
Added for new features.
5+
Changed for changes in existing functionality.
6+
Deprecated for once-stable features removed in upcoming releases.
7+
Removed for deprecated features removed in this release.
8+
Fixed for any bug fixes.
9+
Security to invite users to upgrade in case of vulnerabilities.
10+
-->
11+
12+
## 1.0.0 - 2023/04/03
13+
14+
### Added
15+
16+
- testing library snippets

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 dein Software
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)