Skip to content

Commit

Permalink
Merge pull request #30 from saurabhdaware/develop
Browse files Browse the repository at this point in the history
v1.3.2
  • Loading branch information
saurabhdaware committed Nov 11, 2019
2 parents bc0ac3f + 99fca9d commit f18edec
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 31 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Production Releases
(Note: Only production releases will be mentioned here, If you want to see beta releases, you can find them [here](https://github.com/saurabhdaware/projectman/releases))
### v1.3.2 *[LATEST RELEASE]*
- `pm getpath` Question fix
- prompts updated to v2.3.0
- Unit testing for helper added ([@junaidrahim](https://github.com/junaidrahim) - [#27](https://github.com/saurabhdaware/projectman/pull/27))

### v1.3.1 *[LATEST RELEASE]*

### v1.3.1

Documentation Update



### v1.3.0
---
```shell
Expand Down
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,13 @@ This will show three projects in `pm open` and project2 will be opened in Atom a

## ChangeLogs

### v1.3.0 *[LATEST RELEASE]*

- ## Brought dependencies from 36 packages to 4 packages!! 🎉
Some internal code refactoring and asking myself "Do I really need this package?" helped me bring down dependency tree of 37 packages to 4 packages!!!
- ## AutoComplete added during project selection.
In `pm open` and other project selection menus. You can now start typing the letters and list will be filtered out to show projects matching the letters.
- ## Ability to open/add URLs (Thank You [@ZakariaTalhami](https://github.com/ZakariaTalhami) for PR [#20](https://github.com/saurabhdaware/projectman/pull/20) )
- `pm add --url [URL]` to add URLs to the projectman. `[URL]` is an optional parameter
- These URLs will show up in `pm open` with (URL) appended to their names.
- On selecting the URL in `pm open` they will be opened in your default browser.
- This can be used to store your repositories/websites/other useful links.
### v1.3.2 *[LATEST RELEASE]*

- `pm getpath` Question fix
- prompts updated to v2.3.0
- Unit testing for helper added ([@junaidrahim](https://github.com/junaidrahim) - [#27](https://github.com/saurabhdaware/projectman/pull/27))
**.
.
.
.**
***For More Changes read [CHANGELOG.md](CHANGELOG.md)***

Expand Down
4 changes: 2 additions & 2 deletions lib/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ async function getProjectPath(projectName) {
if(!projectName){
const question = {
name:'selectedProject',
message:'Enter number of project you want to cd to:',
message:'Select project you want to cd to:',
type:'autocomplete',
out:process.stderr,
stdout:process.stderr,
choices:getChoices(),
onRender:() => {
process.stderr.write('\033c');
Expand Down
4 changes: 0 additions & 4 deletions mocharc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// This config file contains Mocha's defaults.
// As you can see, comments are allowed.
// This same configuration could be provided in the `mocha` property of your
// project's `package.json`.
{
"diff": true,
"extension": ["js"],
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json → npm-shrinkwrap.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "projectman",
"version": "1.3.1",
"version": "1.3.2",
"description": "Hate opening folders? Select and open your projects in your favourite editor straight from your command line without 'CD'ing into the deeply nested folders.",
"main": "bin/index.js",
"bin": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"homepage": "https://github.com/saurabhdaware/projectman#readme",
"dependencies": {
"commander": "^3.0.1",
"prompts": "^2.2.1"
"prompts": "^2.3.0"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
6 changes: 4 additions & 2 deletions tests/action.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const expect = require('chai').expect;

it('this test should be replaced with real tests', () => {
expect(true);
describe('action', () => {
it('this test should be replaced with real tests', () => {
expect(true);
})
})
4 changes: 2 additions & 2 deletions tests/helper.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { isURL } = require('../lib/helper')
const { isURL } = require('../lib/helper');

const expect = require('chai').expect;

describe('helper', ()=> {

it('isURL()', () => {
it('#isURL()', () => {
// Links
expect(isURL("https://www.google.com")).to.be.true
expect(isURL("https://www.data.gov.in")).to.be.true
Expand Down

0 comments on commit f18edec

Please sign in to comment.