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

Prepare project for launch #1

Merged
merged 2 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [ "camelCase", "PascalCase" ]
"format": ["camelCase", "PascalCase"]
}
],
"@typescript-eslint/semi": "warn",
Expand All @@ -22,9 +20,5 @@
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
34 changes: 34 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
pull_request:
branches:
- main
push:
branches:
- main
release:
types:
- created

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: yarn
- run: xvfb-run -a yarn test
if: runner.os == 'Linux'
- run: yarn test
if: runner.os != 'Linux'
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dist
node_modules
.vscode-test/
*.vsix
**/.DS_Store
**/.DS_Store
9 changes: 3 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.extension-test-runner"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "ms-vscode.extension-test-runner"]
}
26 changes: 11 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
}
32 changes: 16 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

All notable changes to the "dashlane-vscode" extension will be documented in this file.

## [Unreleased]
## [v1.0.0]

- Sync command
- Logout command
- Get Password command
- Get Note command
- Sync command
- Logout command
- Get Password command
- Get Note command
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ This extension requires that you have installed the [Dashlane CLI](https://githu

This extension contributes the following settings:

* `dashlane-vscode.shell`: The shell path or a login-shell to override Dashlane CLI process default shell (see Node child_process.spawn()) for more detail.
* `dashlane-vscode.cli`: The path to the Dashlane-CLI binary (resolvable from `$PATH`).
- `dashlane-vscode.shell`: The shell path or a login-shell to override Dashlane CLI process default shell (see Node child_process.spawn()) for more detail.
- `dashlane-vscode.cli`: The path to the Dashlane-CLI binary (resolvable from `$PATH`).

## Known Issues
## Contributing

Limited feature set.

## Release Notes

No release yet.
Feel free to contribute to this project, fork and pull request your ideas. Don't include work that is not open source or not from you.
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
155 changes: 88 additions & 67 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,93 @@
{
"name": "dashlane-vscode",
"displayName": "dashlane-vscode",
"description": "Use Dashlane CLI from VS Code",
"version": "0.0.1",
"publisher": "Dashlane",
"repository": {
"url": "https://github.com/Dashlane/dashlane-vscode"
},
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dashlane-vscode.sync",
"title": "Dashlane: Sync"
},
{
"command": "dashlane-vscode.logout",
"title": "Dashlane: Logout"
},
{
"command": "dashlane-vscode.getPassword",
"title": "Dashlane: Get Password"
},
{
"command": "dashlane-vscode.getNote",
"title": "Dashlane: Get Note"
}
"name": "dashlane-vscode",
"displayName": "dashlane-vscode",
"description": "Use Dashlane CLI from VS Code",
"version": "1.0.0",
"publisher": "Dashlane",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/Dashlane/dashlane-vscode"
},
"bugs": {
"url": "https://github.com/Dashlane/dashlane-vscode/issues"
},
"homepage": "https://dashlane.github.io/dashlane-cli",
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Snippets",
"Other"
],
"configuration": {
"title": "Dashlane",
"properties": {
"dashlane-vscode.shell": {
"type": "string",
"default": null,
"description": "The shell path or a login-shell to override Dashlane CLI process default shell (see Node child_process.spawn()) for more detail)"
},
"dashlane-vscode.cli": {
"type": "string",
"default": "dcli",
"description": "The path to the Dashlane-CLI binary (resolvable from $PATH)"
"keywords": [
"dashlane",
"password",
"cli",
"vscode"
],
"icon": "images/icon.png",
"galleryBanner": {
"color": "#0b6476",
"theme": "dark"
},
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dashlane-vscode.sync",
"title": "Dashlane: Sync"
},
{
"command": "dashlane-vscode.logout",
"title": "Dashlane: Logout"
},
{
"command": "dashlane-vscode.getPassword",
"title": "Dashlane: Get Password"
},
{
"command": "dashlane-vscode.getNote",
"title": "Dashlane: Get Note"
}
],
"configuration": {
"title": "Dashlane",
"properties": {
"dashlane-vscode.shell": {
"type": "string",
"default": null,
"description": "The shell path or a login-shell to override Dashlane CLI process default shell (see Node child_process.spawn()) for more detail)"
},
"dashlane-vscode.cli": {
"type": "string",
"default": "dcli",
"description": "The path to the Dashlane-CLI binary (resolvable from $PATH)"
}
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"package": "vsce package --yarn",
"pretest": "yarn run compile && yarn run lint",
"publish": "vsce publish --yarn",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.86.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vscode/test-cli": "^0.0.6",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.26.1",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.86.0",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"@vscode/test-cli": "^0.0.6",
"@vscode/test-electron": "^2.3.9"
}
}
Loading