Skip to content

Commit

Permalink
feat: first version
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchang committed Sep 27, 2018
0 parents commit c574e6b
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
coverage/
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
.*.swp
yarn.lock
coverage
.nyc_output
__tests__/
*.test.js
*.test.jsx
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: false
language: node_js
node_js:
- 'stable'
- '8'
cache:
yarn: true
directories:
- node_modules
notifications:
email: false
branches:
only:
- master
- /^v[0-9].*$/

script:
- npm run lint
- npm run semantic-release || true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) sinchang <sinchangwen@gmail.com> (https://github.com/sinchang)

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.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# vsce-item-property-cli

[![NPM version](https://img.shields.io/npm/v/vsce-item-property-cli.svg?style=flat)](https://npmjs.com/package/vsce-item-property-cli) [![NPM downloads](https://img.shields.io/npm/dm/vsce-item-property-cli.svg?style=flat)](https://npmjs.com/package/vsce-item-property-cli)

## Install

```bash
npm i vsce-item-property-cli -g
```

## Usage

```js
vsce-item-property-cli vscodevim.vim
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**vsce-item-property-cli** © [sinchang](https://github.com/sinchang), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by sinchang with help from contributors ([list](https://github.com/sinchang/vsce-item-property-cli/contributors)).

> [github.com/sinchang](https://github.com/sinchang) · GitHub [@sinchang](https://github.com/sinchang) · Twitter [@sinchangwen](https://twitter.com/sinchangwen)
18 changes: 18 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node

'use strict'
const cac = require('cac')
const vsceItemProperty = require('vsce-item-property')
const prettyjson = require('prettyjson')

const cli = cac()

cli.command('*', 'Tell me the vsce name', input => {
const itemName = input[0]

vsceItemProperty(itemName)
.then(res => console.log(prettyjson.render(res, { noColor: true })))
.catch(err => console.log(err))
})

cli.parse()
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "vsce-item-property-cli",
"version": "0.0.0",
"description": "Get vsce meta information cli tool",
"repository": {
"url": "sinchang/vsce-item-property-cli",
"type": "git"
},
"main": "cli.js",
"bin": "cli.js",
"files": [
"cli.js"
],
"scripts": {
"lint": "standard",
"semantic-release": "semantic-release"
},
"standard": {
"env": [
"jest"
]
},
"author": "sinchang <sinchangwen@gmail.com>",
"license": "MIT",
"dependencies": {
"cac": "^4.0.0",
"prettyjson": "^1.2.1",
"vsce-item-property": "^1.2.0"
},
"devDependencies": {
"semantic-release": "^15.9.16",
"standard": "^10.0.0"
}
}

0 comments on commit c574e6b

Please sign in to comment.