Skip to content
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

Feature/vscode extension #559

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0689878
Add VS Code Extension
hec-stbt Nov 23, 2023
75869d2
Update repository.url
hec-stbt Nov 23, 2023
b4c1636
Fix typo
hec-stbt Nov 23, 2023
0f9cd1f
Add createRepoSh class
hec-stbt Nov 23, 2023
2a2d585
Refactor: Improve createRepoSh method
hec-stbt Nov 24, 2023
54711a1
Change: CustomCheckboxes id
hec-stbt Nov 24, 2023
79dcd9c
Update: Version and class comment
hec-stbt Nov 24, 2023
a4fb6ec
feature: Extend scriptSelector to handle multiple script
hec-stbt Nov 24, 2023
15ba16c
Remove hello.sh
hec-stbt Nov 27, 2023
c2a7797
Update: customeCkeboxes label
hec-stbt Nov 27, 2023
116af9a
Feature: Take into account multiple scripts locations
hec-stbt Nov 27, 2023
99fc9ad
Update: New version
hec-stbt Nov 27, 2023
d06fb2a
Add: New .vsix version
hec-stbt Nov 27, 2023
69b5ec5
Feature: Add scripts attributes
hec-stbt Nov 28, 2023
1a03d0c
Tweaks
hec-stbt Nov 28, 2023
4552144
Improvement: Change input from loop to single
hec-stbt Nov 28, 2023
a2ed17c
feat: Change checkboxes to radio buttons
hec-stbt Nov 29, 2023
7dbbcc9
clean: Adapt and clean code for radio button
hec-stbt Nov 30, 2023
4bbb770
Clean: Remove useless folder
hec-stbt Nov 30, 2023
7fbf2ff
Update: New version release
hec-stbt Nov 30, 2023
3f0028f
feature: Add check state
hec-stbt Dec 4, 2023
e7d534a
Feature: Add Scripts documentation webviewPanel
hec-stbt Dec 5, 2023
ada7235
Feature: Avoid and handle multiple scripts executions
hec-stbt Dec 5, 2023
46faec3
Tweaks
hec-stbt Dec 5, 2023
90c9586
Feature: Clean and refactor class
hec-stbt Dec 5, 2023
fb6bc28
Update: Extension icon
hec-stbt Dec 5, 2023
b9eefef
Update: Version
hec-stbt Dec 5, 2023
9a9a16f
New version release
hec-stbt Dec 5, 2023
69010d8
Fix: Typo
hec-stbt Dec 11, 2023
70120d7
Feature: Add "Open documentation" button
hec-stbt Dec 11, 2023
a5a5e92
Refactor
hec-stbt Dec 11, 2023
f520677
New version
hec-stbt Dec 11, 2023
dc44e63
Update: Icon folder
hec-stbt Dec 14, 2023
3d943a8
Update: Changelog
hec-stbt Dec 14, 2023
89f8d9e
Upate: New .vsix version
hec-stbt Dec 14, 2023
16c05bb
Update: README.md
hec-stbt Dec 14, 2023
21056b0
New .vsix version
hec-stbt Dec 14, 2023
504efdf
Refactor
hec-stbt Dec 14, 2023
7a96887
Update: Header tags
hec-stbt Dec 14, 2023
7480d11
Update: Error message display
hec-stbt Dec 14, 2023
84470ce
Feature: Add more scripts
hec-stbt Dec 18, 2023
8a9f017
Feature: Add sucess panel
hec-stbt Dec 19, 2023
caf7423
Feature: Add webViewPanel & showOpenDialog()
hec-stbt Dec 19, 2023
c4cad73
Update: Add How to section
hec-stbt Dec 20, 2023
c4ba5f3
Feat: Add "add-secret" documentation
hec-stbt Dec 20, 2023
e28224a
Update: Remove one option from scriptPath
hec-stbt Dec 20, 2023
15d4ca9
Feature: Unifies sh classes and creates addSecretSh()
hec-stbt Dec 20, 2023
7eb3719
Feat: Ignore all files in extension/scripts but keep the directory
hec-stbt Dec 21, 2023
cbcd75f
Change version to 1.0.0
hec-stbt Dec 21, 2023
1621dc5
Update README.md
hec-stbt Dec 21, 2023
6aa804e
Tweaks in extension panel documentation
hec-stbt Dec 21, 2023
ff51254
Rollback customradioButtons
hec-stbt Dec 21, 2023
2cdf3d8
Update: hangarScripts
hec-stbt Dec 21, 2023
d941051
Upload version 1.0.0
hec-stbt Dec 21, 2023
bba41d2
Remove console.log
hec-stbt Dec 22, 2023
0fcb172
Update version
hec-stbt Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# VSCode Config
.vscode/*

# VSCode Hangar Extension
/extension/scripts/*
!/extension/scripts/.gitkeep

# Terraform files
**/.terraform/**
**/.terraform.lock.hcl
Expand Down
30 changes: 30 additions & 0 deletions extension/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [ "camelCase", "PascalCase" ]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
10 changes: 10 additions & 0 deletions extension/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vscode/**
.vscode-test/**
src/**
.gitignore
.yarnrc
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
22 changes: 22 additions & 0 deletions extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Change Log

All notable changes to the "hangar-cicd" extension will be documented in this file.

## [3.2.0]
- Upgrade "Error handling"
- Enable visual buttons
- Refactor several classes
- Add scripts documentation

## [2.0.0]

- Changed checkboxes to radio buttons. No multiple selection options are available anymore.

## [1.2.0]

- Take into account different scripts locations


## [1.0.0]

- Initial release
57 changes: 57 additions & 0 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# DevOn Hangar CI/CD pipeline extension

## Features

This extension is meant to help users execute Hangar CI/CD scripts.

## Available scripts
- 🆙 Create repo
- 🆕 Add secret
- ⏩ Pipeline generator

## Requirements

VS Code must be version **1.83.0** or higher!

---

# Exporting & Installing

## 1) Exporting the extension

To share this extension with others without publishing it to the **VS Code Extension Marketplace**, you can package it into a `.vsix` file.
Here are the steps to do so:

1. Install the `vsce` command line tool globally with **super user permissions**. This tool is used for managing VS Code extensions. You can install it using npm: `sudo npm install --global vsce`
2. Open a terminal and navigate to the root directory of this extension.
3. Run the following command to package the extension: `vsce package`

This will create a `.vsix` file in the extension's directory.

Now you can share this file with others.

## 2) Installing the extension from a `.vsix` file

To install the extension from a `.vsix` file, follow these steps:

1. Open VS Code.
2. Go to the Extensions view (*you can use the `Ctrl+Shift+X` shortcut*).
3. Click on the `...` at the top right of the Extensions view, select `Install from VSIX...` and choose the `.vsix` file.

Now the extension will be installed and ready to use.

---

# Release Notes


## 1.0.0

- Initial release


---

# Bugs?

Email to: [email protected]
Binary file added extension/hangar-cicd-1.0.0.vsix
Binary file not shown.
1 change: 1 addition & 0 deletions extension/node_modules/.bin/_mocha

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/eslint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/flat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/glob

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/he

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/js-yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/mocha

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/rimraf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/tsc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extension/node_modules/.bin/tsserver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading