655 Commits

Author SHA1 Message Date
Brandon Freitag
2e29ba29e6 0.7.6 v0.7.6 2017-01-08 14:28:27 -08:00
Nate Fischer
4c48631d74 refactor: create common.execPath (#636)
Switch to using common.execPath instead of process.execPath directly and warn
electron users if we were unable to find the correct path to NodeJS.
2017-01-08 13:52:39 -08:00
Nate Fischer
ac0ff873f1 refactor: add config.reset() and .resetForTesting() (#641)
Add .reset() and .resetForTesting() to shell.config and use .resetForTesting()
as a standard set-up for unit tests.
2017-01-07 22:40:38 -08:00
Nate Fischer
2da9ab55be fix: allow non-normalized paths as input to mkdir (#635)
Adds tests to make sure that non-normalized paths (i.e. path/to/./dir) are
valid for a few commands, including mkdir() which previously failed when given
the -p flag.

Fixes #634
2017-01-07 18:06:15 -08:00
Nate Fischer
a3e622ba0d chore: set up test coverage (#638)
Use nyc for test coverage and ignore all nyc-related files in git & eslint.
This increases testing time (~35sec -> ~60sec on my 4-core machine).
2016-12-27 19:39:13 -08:00
Nate Fischer
2089d3e4b3 docs(changelog): updated by Nate Fischer [ci skip] 2016-12-26 23:36:16 -08:00
Brandon Freitag
7fa4b995bf Finalize moving to ava (#630)
* Move ava-test/ directory to test/

* Remove unnecessary run-tests.js script

* Run only ava during npm test script
2016-12-20 11:27:02 -08:00
Nate Fischer
c95d331be0 test: refactor shjs tests to AVA (#625) 2016-12-20 00:12:59 -08:00
Nate Fischer
63041b74d6 test: refactor pushd tests to AVA (#627) 2016-12-19 22:51:54 -08:00
Nate Fischer
057a8c89fc test: refactor popd tests to AVA (#626) 2016-12-19 22:48:11 -08:00
Nate Fischer
1548b3da00 refactor: list all commands in commands.json (#616)
* refactor: list all commands in commands.json

This also changes the order of commands in the docs, due to how I changed
the doc-generating script.

* fix lint error and alphabetize command list
2016-12-14 17:57:11 -08:00
Nate Fischer
51fea9b7f0 test: refactor global tests to AVA (#605) 2016-12-14 13:57:40 -08:00
Nate Fischer
1ed8a173e1 test: remove tests for make (deprecated) (#624) 2016-12-14 07:09:09 -08:00
Brandon Freitag
927758f714 Ignore test temp directories during linting (#623) 2016-12-14 07:06:15 -08:00
Nate Fischer
b26284a319 test: refactor ls to use AVA (#609) 2016-12-13 21:13:41 -08:00
Nate Fischer
5bd6ac8896 test: refactor sed tests to AVA (#607) 2016-12-09 10:27:02 -08:00
Nate Fischer
0bb686d758 test: refactor touch tests to AVA (#604) 2016-12-09 10:26:52 -08:00
Nate Fischer
4c82369690 test: refactor mkdir tests to AVA (#599) 2016-12-09 10:26:43 -08:00
Nate Fischer
6f26d52eab test: refactor ln tests to AVA (#610) 2016-12-09 01:25:10 -08:00
Brandon Freitag
ded1a3e4a3 Fix: rm behavior regarding symlinks (#598)
* Treat files and symlinks separately

* Remove -f flag from dir symlink test

* Simplify control flow
2016-12-08 23:45:35 -08:00
Nate Fischer
a7ca4d6a8a test: refactor grep tests to AVA (#606) 2016-12-08 23:19:42 -08:00
Nate Fischer
94d65a32f8 test: refactor uniq tests to AVA (#603) 2016-12-08 23:13:00 -08:00
Nate Fischer
ffb1cf3db9 chore: switch to files attribute from npmignore (#613)
Prefer the `files` attribute over `.npmignore` to minimize the bytes users
download when installing ShellJS. This cuts the size down from ~1.8M to ~1.2M.
2016-12-08 22:26:49 -08:00
Nate Fischer
40273b73c4 test: refactor 'test' command tests to AVA (#612) 2016-12-08 22:10:58 -08:00
Nate Fischer
c3811f7e66 test: refactor find tests to AVA (#611) 2016-12-08 21:47:08 -08:00
Nate Fischer
f06c5845e9 test: refactor pipe tests to AVA (#608) 2016-12-08 21:36:49 -08:00
Nate Fischer
66fa1048aa test: refactor sort tests to AVA (#602) 2016-12-08 21:36:22 -08:00
Nate Fischer
ef68bd32af test: refactor tail tests to AVA (#601) 2016-12-08 21:36:09 -08:00
Nate Fischer
1cdb051876 test: refactor head tests to AVA (#600) 2016-12-08 21:35:53 -08:00
Nate Fischer
c51abffc5c test: refactor mv tests to AVA (#597) 2016-12-08 21:35:39 -08:00
Nate Fischer
947e47ebb6 test: refactor pwd tests to AVA (#582) 2016-12-08 20:14:44 -08:00
Brandon Freitag
76370ed946 Remove files related to lgtm.co (#596) 2016-12-07 21:59:51 -08:00
Brandon Freitag
5ded216dc2 Use Object.assign if possible (#593)
* Fix typo

* Set objectAssign to Object.assign if defined

* Use correct terminology
2016-12-07 12:11:40 -08:00
Brandon Freitag
e4b71f0a23 Add ability to configure error from parseOptions (#594) 2016-12-06 23:52:02 -08:00
Nate Fischer
6b15577541 test: refactor exec tests to AVA (#574)
* test: refactor exec tests to AVA

* change single quotes to double quotes for Win
2016-11-30 21:14:49 -08:00
Nate Fischer
b0d00ea031 test: refactor set tests to AVA (#576) 2016-11-27 13:14:04 -08:00
Nate Fischer
a8b5933545 test: refactor which tests to AVA (#580) 2016-11-27 11:48:40 -08:00
Nate Fischer
00dd0f6641 test: refactor plugin tests to AVA (#579) 2016-11-27 11:48:18 -08:00
Nate Fischer
c78eecdff0 test: refactor tempdir tests to AVA (#581) 2016-11-25 11:03:05 -08:00
Nate Fischer
f225f35dda test: refactor rm tests to AVA (#586) 2016-11-25 10:59:17 -08:00
Nate Fischer
e52caa5e25 test: refactor echo tests to AVA (#575) 2016-11-25 10:58:42 -08:00
Nate Fischer
2f3aea3643 test: refactor env tests to AVA (#573) 2016-11-24 03:06:33 -08:00
Nate Fischer
49b7dbd7a2 test: refactor toEnd tests to AVA (#578) 2016-11-24 01:29:14 -08:00
Nate Fischer
895bbf3ae6 test: refactor dirs tests to AVA (#572) 2016-11-23 23:11:26 -08:00
Nate Fischer
f92407e032 test: refactor common tests to AVA (#570) 2016-11-23 23:09:53 -08:00
Nate Fischer
2d1d68e9ea test: refactor chmod tests to AVA (#569) 2016-11-23 23:09:30 -08:00
Nate Fischer
612e51b897 test: refactor to tests to AVA (#577) 2016-11-23 23:05:08 -08:00
Nate Fischer
106e05fc45 test: refactor config tests to AVA (#571) 2016-11-23 22:38:46 -08:00
Nate Fischer
d9e3008c85 test: refactor cp tests to ava (#565)
* test: refactor cp tests to ava

* refactor: use `utils.` syntax for utilities
2016-11-20 13:11:32 -08:00
Nate Fischer
0743004717 test: refactor cat tests to ava (#564)
* test: refactor cat tests to ava

* refactor: only set config.silent once
2016-11-20 13:10:58 -08:00