-
Notifications
You must be signed in to change notification settings - Fork 1
Get started #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Get started #1
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2d4e2d6
Get started
NullVoxPopuli f11f50e
Consolidate
NullVoxPopuli 370189c
Add a rendering test snippet
NullVoxPopuli cd9cfd7
Add gjs completions
NullVoxPopuli 90e4d17
Add imports
NullVoxPopuli 4c6b5e5
Add ci to at least keep us honest with correctness in the json files
NullVoxPopuli 1bd9008
Add unit test
NullVoxPopuli daf0496
Rename
NullVoxPopuli 1c6cf7e
More
NullVoxPopuli c80061e
Application tests
NullVoxPopuli fe03099
Add router service snippet to ts
NullVoxPopuli a1b84dd
Fix formatting
NullVoxPopuli 96ec63d
Add state to the rendering tests
NullVoxPopuli eb06e34
Fix ci
NullVoxPopuli cb0908c
Make js and ts valid json
NullVoxPopuli 7529757
Add tests to js and ts
NullVoxPopuli 6d564b1
Add the qunit module
NullVoxPopuli 679e2ab
await render
NullVoxPopuli db3df00
hm
NullVoxPopuli b8afc67
Make a shared 'all'
NullVoxPopuli 0952a88
Progress
NullVoxPopuli f33e3ec
oi
NullVoxPopuli 9c9c356
More
NullVoxPopuli 472103a
fixes after testing
NullVoxPopuli 72e1aa8
ope
NullVoxPopuli ceb17c1
ope
NullVoxPopuli ccb8a3d
Add workflow
NullVoxPopuli f67aa76
ope
NullVoxPopuli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: # dont run when changes made to these folders | ||
- '.vscode/**' | ||
pull_request: {} | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ci-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
- run: pnpm prettier . --check | ||
|
||
package: | ||
name: Package | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
|
||
- name: fetch all history and tags from all branches for gitversion | ||
run: git fetch --prune --unshallow | ||
|
||
- name: DotNet Core SDK 3.1.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.x | ||
|
||
- name: install gitversion tool | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.5.x' | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
- name: execute gitversion | ||
id: gitversion # step id used as reference for output values | ||
uses: gittools/actions/gitversion/[email protected] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
- name: print gitversion | ||
run: | | ||
echo "Major: ${{ steps.gitversion.outputs.major }}" | ||
echo "Minor: ${{ steps.gitversion.outputs.minor }}" | ||
echo "Patch: ${{ steps.gitversion.outputs.patch }}" | ||
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" | ||
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" | ||
|
||
- name: update metadata in package.json | ||
uses: onlyutkarsh/[email protected] | ||
with: | ||
files: '${{github.workspace}}/package.json' | ||
patch-syntax: | | ||
= /version => "${{ steps.gitversion.outputs.majorMinorPatch }}" | ||
|
||
- name: add version in CHANGELOG.md | ||
uses: cschleiden/[email protected] | ||
with: | ||
files: '${{github.workspace}}/CHANGELOG.md' | ||
env: | ||
VERSION: "${{ steps.gitversion.outputs.majorMinorPatch }}" | ||
|
||
- name: compile and create vsix | ||
run: pnpm vs:package | ||
|
||
- name: upload vsix as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: vscode-ember-${{steps.gitversion.outputs.majorMinorPatch}}.vsix | ||
path: ${{github.workspace}}/vscode-ember-${{steps.gitversion.outputs.majorMinorPatch}}.vsix | ||
|
||
- name: create a release | ||
if: github.ref == 'refs/heads/main' | ||
continue-on-error: false | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: v${{ steps.gitversion.outputs.semVer }} | ||
release_name: v${{ steps.gitversion.outputs.semVer }} | ||
|
||
- name: publish to marketplace VSCODE | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }} | ||
run: pnpm vs:publish:ci | ||
continue-on-error: true | ||
|
||
- name: publish to marketplace OPEN VSX | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
OPENVSX_TOKEN: ${{ secrets.OPENVSX_TOKEN }} | ||
run: pnpm ov:publish:ci | ||
continue-on-error: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
*.vsix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.yaml | ||
*.yml | ||
*.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# snippets | ||
Preconfigured snippets for ember projects | ||
[](https://marketplace.visualstudio.com/items?itemName=ember-tooling.snippets) | ||
 | ||
 | ||
|
||
# Snippets for GJS and GTS in VSCode and (neo)vim | ||
|
||
Preconfigured snippets for ember projects following Polaris Patterns. | ||
|
||
## Important | ||
|
||
This extension is optimized for developers that use Ember Polaris patterns and features, which are supported back to ember-source 3.28. | ||
If you need Ember Octane (and earlier) snippets, this snippet pack is not for you. | ||
|
||
## Usage | ||
|
||
Many snippets will show up in auto-completion prompts as you're typing. | ||
For example, | ||
|
||
- `@ser` will have a suggestion for `@service declare $name: $type;` | ||
- `@cach` will have a suggestion for a `@cached` getter. | ||
- `await render` will have a suggestion for the rendering tests' render boilerplate | ||
- etc | ||
|
||
Whole file generating boilerplate, such as for tests are prefixed with `g-` for generate, similar to the ember-cli command's you'd use in the terminal to generate the same file contents. | ||
|
||
- `g-rendering-test`, `g-application-test`, `g-unit-test` | ||
- `g-class-component`, `g-component` | ||
- `g-route` | ||
- `g-route-template` | ||
- `g-service` | ||
- etc | ||
|
||
|
||
## Debugging | ||
|
||
- clone the repo | ||
- cd to the cloned repo | ||
- `pnpm i` | ||
- `pnpm build` | ||
- if using vscode, on the extensions panel, click "Install from VSIX" and select the vsix file generated from `pnpm build` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"name": "ember-snippets", | ||
"publisher": "EmberTooling", | ||
"displayName": "Ember Polaris Snippets - gjs, gts, tests, services, etc", | ||
"description": "Snippets for Ember projects for quickly generating boilerplate", | ||
"icon": "images/ember-e-circle-icon-4c.png", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ember-tooling/snippets.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ember-tooling/snippets/issues" | ||
}, | ||
"homepage": "https://github.com/ember-tooling/snippets#readme", | ||
"version": "0.0.0", | ||
"categories": [ | ||
"Snippets" | ||
], | ||
"engines": { | ||
"vscode": ">=1.0.0" | ||
}, | ||
"keywords": [ | ||
"Ember", | ||
"TypeScript", | ||
"JavaScript", | ||
"Snippets", | ||
"Polaris", | ||
"Tests", | ||
"Testing", | ||
"Services", | ||
"Boilerplate", | ||
"HTML" | ||
], | ||
"contributes": { | ||
"snippets": [ | ||
{ | ||
"language": [ | ||
"Glimmer JS", | ||
"javascript.glimmer", | ||
"Glimmer TS", | ||
"typescript.glimmer", | ||
"javascript", | ||
"typescript" | ||
], | ||
"path": "./snippets/all.json" | ||
}, | ||
{ | ||
"language": [ | ||
"Glimmer JS", | ||
"javascript.glimmer", | ||
"Glimmer TS", | ||
"typescript.glimmer" | ||
], | ||
"path": "./snippets/all-template-tag.json" | ||
}, | ||
{ | ||
"language": [ | ||
"Glimmer JS", | ||
"javascript.glimmer" | ||
], | ||
"path": "./snippets/javascript.glimmer.json" | ||
}, | ||
{ | ||
"language": [ | ||
"Glimmer TS", | ||
"typescript.glimmer" | ||
], | ||
"path": "./snippets/typescript.glimmer.json" | ||
}, | ||
{ | ||
"language": "javascript", | ||
"path": "./snippets/javascript.json" | ||
}, | ||
{ | ||
"language": "typescript", | ||
"path": "./snippets/typescript.json" | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
"lint:fix": "prettier . --write", | ||
"build": "vsce pack", | ||
"vs:package": "vsce package", | ||
"vs:publish": "vsce publish", | ||
"vs:publish:ci": "vsce publish --pat $VSCODE_TOKEN", | ||
"ov:publish:ci": "ovsx publish --pat $OPENVSX_TOKEN" | ||
}, | ||
"devDependencies": { | ||
"@vscode/vsce": "^3.3.2", | ||
"ovsx": "^0.10.1", | ||
"prettier": "^3.5.3" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.