Skip to content

Commit

Permalink
feat: add extensions to the pack
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcodes committed May 26, 2022
0 parents commit fc5725c
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/readme.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "json"

def get_extension_names(filename)
JSON.parse(File.read(filename))["extensionPack"]
end

@arr = []

get_extension_names("package.json").each do |extension_name|
extension_json = JSON.parse(`vsce show #{extension_name} --json`)

link = "https://marketplace.visualstudio.com/items?itemName=#{extension_name}"
badge = "https://vsmarketplacebadge.apphb.com/version-short/#{extension_name}.svg"
name = extension_json["displayName"]
desc = extension_json["shortDescription"]

@arr << "| [#{name}](#{link}) | [![#{name}](#{badge})](#{link}) | #{desc} |"
end

puts @arr.join("\n")
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- main

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: node
package-name: rails-extension-power-pack
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 16
if: ${{ steps.release.outputs.release_created }}
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
if: ${{ steps.release.outputs.release_created }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.vsix
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change Log

All notable changes to the "rails-extension-power-pack" extension pack will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Rails Extension Power Pack

A collection of my favorite VS Code extensions for Ruby on Rails development.

## Extensions

| Extension | Version | Description |
|:---------|:-------|:------------|
| [YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) | [![YAML](https://vsmarketplacebadge.apphb.com/version-short/redhat.vscode-yaml.svg)](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) | YAML Language Support by Red Hat, with built-in Kubernetes syntax support |
| [VSCode Ruby](https://marketplace.visualstudio.com/items?itemName=wingrunr21.vscode-ruby) | [![VSCode Ruby](https://vsmarketplacebadge.apphb.com/version-short/wingrunr21.vscode-ruby.svg)](https://marketplace.visualstudio.com/items?itemName=wingrunr21.vscode-ruby) | Syntax highlighing, snippet, and language configuration support for Ruby |
| [VSCode rdbg Ruby Debugger](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg) | [![VSCode rdbg Ruby Debugger](https://vsmarketplacebadge.apphb.com/version-short/KoichiSasada.vscode-rdbg.svg)](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg) | Ruby's rdbg debugger support for VSCode |
| [Simple Ruby ERB](https://marketplace.visualstudio.com/items?itemName=vortizhe.simple-ruby-erb) | [![Simple Ruby ERB](https://vsmarketplacebadge.apphb.com/version-short/vortizhe.simple-ruby-erb.svg)](https://marketplace.visualstudio.com/items?itemName=vortizhe.simple-ruby-erb) | Provides simple Ruby and ERB language, code snippets and ERB tag helper support for Visual Studio Code without messing with linting or debugging |
| [Ruby Solargraph](https://marketplace.visualstudio.com/items?itemName=castwide.solargraph) | [![Ruby Solargraph](https://vsmarketplacebadge.apphb.com/version-short/castwide.solargraph.svg)](https://marketplace.visualstudio.com/items?itemName=castwide.solargraph) | A Ruby language server featuring code completion, intellisense, and inline documentation |
| [Ruby](https://marketplace.visualstudio.com/items?itemName=rebornix.ruby) | [![Ruby](https://vsmarketplacebadge.apphb.com/version-short/rebornix.ruby.svg)](https://marketplace.visualstudio.com/items?itemName=rebornix.ruby) | Ruby language support and debugging for Visual Studio Code |
| [RBS Syntax](https://marketplace.visualstudio.com/items?itemName=soutaro.rbs-syntax) | [![RBS Syntax](https://vsmarketplacebadge.apphb.com/version-short/soutaro.rbs-syntax.svg)](https://marketplace.visualstudio.com/items?itemName=soutaro.rbs-syntax) | |
| [rails-latest-migration](https://marketplace.visualstudio.com/items?itemName=tmikoss.rails-latest-migration) | [![rails-latest-migration](https://vsmarketplacebadge.apphb.com/version-short/tmikoss.rails-latest-migration.svg)](https://marketplace.visualstudio.com/items?itemName=tmikoss.rails-latest-migration) | Opens the latest migration created in a Ruby on Rails app. |
| [Rails Schema](https://marketplace.visualstudio.com/items?itemName=tavo.rails-schema) | [![Rails Schema](https://vsmarketplacebadge.apphb.com/version-short/tavo.rails-schema.svg)](https://marketplace.visualstudio.com/items?itemName=tavo.rails-schema) | This extension provides a new way to see the DB tables and columns in a Rails project. |
| [Rails Run Specs](https://marketplace.visualstudio.com/items?itemName=noku.rails-run-spec-vscode) | [![Rails Run Specs](https://vsmarketplacebadge.apphb.com/version-short/noku.rails-run-spec-vscode.svg)](https://marketplace.visualstudio.com/items?itemName=noku.rails-run-spec-vscode) | Rails Run Spec Files |
| [Rails Routes Navigator](https://marketplace.visualstudio.com/items?itemName=makicamel.rails-routes-navigator) | [![Rails Routes Navigator](https://vsmarketplacebadge.apphb.com/version-short/makicamel.rails-routes-navigator.svg)](https://marketplace.visualstudio.com/items?itemName=makicamel.rails-routes-navigator) | Display Routes of Rails, search incremental and navigate to the source location |
| [Rails Routes](https://marketplace.visualstudio.com/items?itemName=aki77.rails-routes) | [![Rails Routes](https://vsmarketplacebadge.apphb.com/version-short/aki77.rails-routes.svg)](https://marketplace.visualstudio.com/items?itemName=aki77.rails-routes) | Definition and Completion provider for Rails Routes. |
| [Rails Flip-Flop](https://marketplace.visualstudio.com/items?itemName=bweave.rails-flip-flop) | [![Rails Flip-Flop](https://vsmarketplacebadge.apphb.com/version-short/bweave.rails-flip-flop.svg)](https://marketplace.visualstudio.com/items?itemName=bweave.rails-flip-flop) | Flip from application code to the related test/spec, and vice versa. |
| [Procfile](https://marketplace.visualstudio.com/items?itemName=benspaulding.procfile) | [![Procfile](https://vsmarketplacebadge.apphb.com/version-short/benspaulding.procfile.svg)](https://marketplace.visualstudio.com/items?itemName=benspaulding.procfile) | Grammar & features for Procfiles |
| [Rails Fast Nav](https://marketplace.visualstudio.com/items?itemName=jemmyw.rails-fast-nav) | [![Rails Fast Nav](https://vsmarketplacebadge.apphb.com/version-short/jemmyw.rails-fast-nav.svg)](https://marketplace.visualstudio.com/items?itemName=jemmyw.rails-fast-nav) | Ruby on Rails Navigation |
| [Gem Lens](https://marketplace.visualstudio.com/items?itemName=ninoseki.vscode-gem-lens) | [![Gem Lens](https://vsmarketplacebadge.apphb.com/version-short/ninoseki.vscode-gem-lens.svg)](https://marketplace.visualstudio.com/items?itemName=ninoseki.vscode-gem-lens) | Shows the latest version of a gem in Gemfile and gemspec |
| [ERB Formatter](https://marketplace.visualstudio.com/items?itemName=elia.erb-formatter) | [![ERB Formatter](https://vsmarketplacebadge.apphb.com/version-short/elia.erb-formatter.svg)](https://marketplace.visualstudio.com/items?itemName=elia.erb-formatter) | Format ERB files with speed and precision. |
| [endwise](https://marketplace.visualstudio.com/items?itemName=kaiwood.endwise) | [![endwise](https://vsmarketplacebadge.apphb.com/version-short/kaiwood.endwise.svg)](https://marketplace.visualstudio.com/items?itemName=kaiwood.endwise) | Wisely add "end" in Ruby. |
| [Colorized Access Modifiers](https://marketplace.visualstudio.com/items?itemName=GauravSharma.colorized-access-modifier) | [![Colorized Access Modifiers](https://vsmarketplacebadge.apphb.com/version-short/GauravSharma.colorized-access-modifier.svg)](https://marketplace.visualstudio.com/items?itemName=GauravSharma.colorized-access-modifier) | Colorize the Access Modifiers to identify the code under them |
| [Better Haml](https://marketplace.visualstudio.com/items?itemName=karunamurti.haml) | [![Better Haml](https://vsmarketplacebadge.apphb.com/version-short/karunamurti.haml.svg)](https://marketplace.visualstudio.com/items?itemName=karunamurti.haml) | Better Haml syntax highlighting, auto close and suggestions |
| [YARD Documenter](https://marketplace.visualstudio.com/items?itemName=pavlitsky.yard) | [![YARD Documenter](https://vsmarketplacebadge.apphb.com/version-short/pavlitsky.yard.svg)](https://marketplace.visualstudio.com/items?itemName=pavlitsky.yard) | Document Ruby source code with YARD |
| [Rails Docs](https://marketplace.visualstudio.com/items?itemName=philiplambok.vscode-rails-docs) | [![Rails Docs](https://vsmarketplacebadge.apphb.com/version-short/philiplambok.vscode-rails-docs.svg)](https://marketplace.visualstudio.com/items?itemName=philiplambok.vscode-rails-docs) | Easily access Rails API docs pages from within VSCode. |
Binary file added assets/REPP_128x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "rails-extension-power-pack",
"displayName": "Rails Extension Power Pack",
"description": "Andrew Mason's favorite extensions for Rails development in Visual Studio Code",
"publisher": "andrewmcodes",
"icon": "assets/REPP_128x.png",
"readme": "README.md",
"author": {
"name": "Andrew Mason",
"url": "https://andrewm.codes/"
},
"license": "MIT",
"version": "0.0.1",
"engines": {
"vscode": "^1.67.0"
},
"categories": [
"Extension Packs"
],
"repository": {
"type": "git",
"url": "https://github.com/andrewmcodes/rails-extension-power-pack.git"
},
"keywords": [
"rails",
"ROR",
"Ruby on Rails",
"ruby",
"erb",
"haml",
"migrations"
],
"extensionPack": [
"redhat.vscode-yaml",
"wingrunr21.vscode-ruby",
"KoichiSasada.vscode-rdbg",
"vortizhe.simple-ruby-erb",
"castwide.solargraph",
"rebornix.ruby",
"soutaro.rbs-syntax",
"tmikoss.rails-latest-migration",
"tavo.rails-schema",
"noku.rails-run-spec-vscode",
"makicamel.rails-routes-navigator",
"aki77.rails-routes",
"bweave.rails-flip-flop",
"benspaulding.procfile",
"jemmyw.rails-fast-nav",
"ninoseki.vscode-gem-lens",
"elia.erb-formatter",
"kaiwood.endwise",
"GauravSharma.colorized-access-modifier",
"karunamurti.haml",
"pavlitsky.yard",
"philiplambok.vscode-rails-docs"
]
}

0 comments on commit fc5725c

Please sign in to comment.