Skip to content

Commit

Permalink
Merge pull request #53 from trumbitta/open-in-gitpod
Browse files Browse the repository at this point in the history
Add CLI to open current repo in Gitpod
  • Loading branch information
trumbitta authored Oct 30, 2021
2 parents 35d41d3 + 9cd931a commit 5a224cc
Show file tree
Hide file tree
Showing 23 changed files with 370 additions and 37 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
]
},
"cli": {
"defaultCollection": "@nrwl/workspace"
"defaultCollection": "@nrwl/node"
}
}
122 changes: 90 additions & 32 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"private": true,
"dependencies": {
"cross-spawn": "^7.0.3",
"git-utils": "^5.7.3",
"open": "^8.4.0",
"tslib": "^2.0.0"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion packages/nx-plugin-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"license": "MIT",
"peerDependencies": {
"@nrwl/workspace": ">=13.0.0"
}
},
"keywords": [
"Nx",
"OpenAPI"
]
}
6 changes: 5 additions & 1 deletion packages/nx-plugin-unused-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
],
"scripts": {
"postinstall": "node tools/scripts/post-install.js"
}
},
"keywords": [
"Nx",
"Unused dependencies"
]
}
3 changes: 3 additions & 0 deletions packages/open-in-gitpod/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
}
18 changes: 18 additions & 0 deletions packages/open-in-gitpod/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
22 changes: 22 additions & 0 deletions packages/open-in-gitpod/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(The MIT License)

Copyright (c) 2017-2020 Narwhal Technologies Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 changes: 19 additions & 0 deletions packages/open-in-gitpod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Look for unused NPM dependencies in a Nx monorepo

[![NPM Version](https://badge.fury.io/js/open-in-gitpodd.svg)](https://www.npmjs.com/open-in-gitpodd)
[![License](https://img.shields.io/npm/l/open-in-gitpodd)]()

Open the current repository in Gitpod.

## 🧐 What is it?

It's a simple command line utility to open a repository you are working on, on Gitpod.

## 🧰 Usage

```sh
# Inside a local repository that exists online.
# E.g. https://github.com/trumbitta/nx-trumbitta

npx open-in-gitpodd
```
15 changes: 15 additions & 0 deletions packages/open-in-gitpod/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
displayName: 'open-in-gitpod',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/open-in-gitpod',
};
Loading

0 comments on commit 5a224cc

Please sign in to comment.