Skip to content

Commit f18edec

Browse files
Merge pull request #30 from saurabhdaware/develop
v1.3.2
2 parents bc0ac3f + 99fca9d commit f18edec

8 files changed

+28
-31
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Production Releases
22
(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))
3+
### v1.3.2 *[LATEST RELEASE]*
4+
- `pm getpath` Question fix
5+
- prompts updated to v2.3.0
6+
- Unit testing for helper added ([@junaidrahim](https://github.com/junaidrahim) - [#27](https://github.com/saurabhdaware/projectman/pull/27))
37

4-
### v1.3.1 *[LATEST RELEASE]*
8+
9+
### v1.3.1
510

611
Documentation Update
712

13+
14+
815
### v1.3.0
916
---
1017
```shell

README.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -174,21 +174,13 @@ This will show three projects in `pm open` and project2 will be opened in Atom a
174174

175175
## ChangeLogs
176176

177-
### v1.3.0 *[LATEST RELEASE]*
178-
179-
- ## Brought dependencies from 36 packages to 4 packages!! 🎉
180-
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!!!
181-
- ## AutoComplete added during project selection.
182-
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.
183-
- ## Ability to open/add URLs (Thank You [@ZakariaTalhami](https://github.com/ZakariaTalhami) for PR [#20](https://github.com/saurabhdaware/projectman/pull/20) )
184-
- `pm add --url [URL]` to add URLs to the projectman. `[URL]` is an optional parameter
185-
- These URLs will show up in `pm open` with (URL) appended to their names.
186-
- On selecting the URL in `pm open` they will be opened in your default browser.
187-
- This can be used to store your repositories/websites/other useful links.
177+
### v1.3.2 *[LATEST RELEASE]*
188178

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

lib/action.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ async function getProjectPath(projectName) {
299299
if(!projectName){
300300
const question = {
301301
name:'selectedProject',
302-
message:'Enter number of project you want to cd to:',
302+
message:'Select project you want to cd to:',
303303
type:'autocomplete',
304-
out:process.stderr,
304+
stdout:process.stderr,
305305
choices:getChoices(),
306306
onRender:() => {
307307
process.stderr.write('\033c');

mocharc.json

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// This config file contains Mocha's defaults.
2-
// As you can see, comments are allowed.
3-
// This same configuration could be provided in the `mocha` property of your
4-
// project's `package.json`.
51
{
62
"diff": true,
73
"extension": ["js"],

package-lock.json npm-shrinkwrap.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "projectman",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"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.",
55
"main": "bin/index.js",
66
"bin": {
@@ -31,7 +31,7 @@
3131
"homepage": "https://github.com/saurabhdaware/projectman#readme",
3232
"dependencies": {
3333
"commander": "^3.0.1",
34-
"prompts": "^2.2.1"
34+
"prompts": "^2.3.0"
3535
},
3636
"devDependencies": {
3737
"chai": "^4.2.0",

tests/action.spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const expect = require('chai').expect;
22

3-
it('this test should be replaced with real tests', () => {
4-
expect(true);
3+
describe('action', () => {
4+
it('this test should be replaced with real tests', () => {
5+
expect(true);
6+
})
57
})

tests/helper.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const { isURL } = require('../lib/helper')
1+
const { isURL } = require('../lib/helper');
22

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

55
describe('helper', ()=> {
66

7-
it('isURL()', () => {
7+
it('#isURL()', () => {
88
// Links
99
expect(isURL("https://www.google.com")).to.be.true
1010
expect(isURL("https://www.data.gov.in")).to.be.true

0 commit comments

Comments
 (0)