426 Commits

Author SHA1 Message Date
Nate Fischer
760c191081 Merge pull request #321 from BYK/ignore-idea
Rewrite .gitignore to be more comprehensive
2016-01-31 11:20:57 -08:00
Nate Fischer
d8466a14dd Merge pull request #324 from shelljs/ls-l-option
feat(ls): add -l  option
2016-01-31 11:18:09 -08:00
Nate Fischer
e918c758a2 feat(ls): add -l option
The `-l` option will now cause `ls()` to return an object containing file stats.
These objects will also have a toString() method that formats it into something
analogous to `ls -l`'s output format.
2016-01-31 11:08:03 -08:00
Ari Porad
a96467a6f5 Merge pull request #290 from isiahmeadows/pathext
feat(Windows): search PATHEXT instead of 3 hardcoded values
2016-01-31 09:01:16 -08:00
Ari Porad
514e7b0c75 Merge pull request #322 from BYK/linking-windows
fix(Windows): fix symlinking on Windows
2016-01-31 08:31:34 -08:00
Burak Yigit Kaya
fb5a7ece66 Fix symlinking on Windows
Fixes symlink creation on Windows systems and adds a test
for symlinking directories since it needs special treatment
on Windows.

Fixes #301.
2016-01-31 13:15:22 +02:00
Burak Yigit Kaya
636e084741 Rewrite .gitignore to be more comprehensive
Ignores more Node/NPM files and adds ignore rules for the following:

- Linux
- OS X
- Vim
- JetBrains IDEs
2016-01-31 13:14:08 +02:00
Nate Fischer
6bdee43ab5 fix appveyor badge to point to master branch only 2016-01-30 18:34:11 -08:00
Isiah Meadows
eaa771033e Search PATHEXT for which, do a lowercase comparison on Windows
Redo of #134

`which` now searches through PATHEXT on Windows, and it also now does a
case-insensitive comparison. This better fits the Windows environment, where
the OS usually ignores case.
2016-01-29 13:34:20 -05:00
Nate Fischer
c072738758 Merge pull request #314 from shelljs/sed-multiple-files
feat(sed): support multiple file names
2016-01-27 19:24:19 -08:00
Nate Fischer
bccf620787 feat(sed): support multiple file names
fixes #231. Semantics are like unix sed.
2016-01-27 19:08:33 -08:00
Nate Fischer
b170d20122 Merge pull request #297 from BYK/fix-win-tests
Fix tests on Windows
2016-01-27 19:04:37 -08:00
Ari Porad
86fb8d19af Merge pull request #307 from TimothyGu/patch-1
chore(travis): switch to travis container based infrastructure and don't test `0.11`
2016-01-27 16:22:08 -08:00
Ari Porad
522431c177 Merge pull request #313 from shelljs/gitter-webhooks
chore(gitter/travis): add gitter webhook to travis
2016-01-27 16:20:38 -08:00
Ari Porad
ef7e2562a4 Merge pull request #316 from shelljs/appveyor-badge
chore(appveyor): add badge
2016-01-27 16:13:58 -08:00
Ari Porad
a67f66a9b6 Merge pull request #315 from shelljs/fix-shjs-test
fix(windows): fix shjs commands for windows
2016-01-27 16:12:52 -08:00
Nate Fischer
f9a11ddfd5 chore(appveyor): add badge 2016-01-27 15:33:11 -08:00
Nate Fischer
985ac20cd6 fix(windows): fix shjs tests for windows 2016-01-27 15:24:08 -08:00
Ari Porad
f90e7f74b3 chore(gitter/travis): add gitter webhook to travis 2016-01-27 15:08:05 -08:00
Burak Yigit Kaya
175f5e1efd Fix tests on Windows 2016-01-27 22:53:31 +02:00
Nate Fischer
7d6249a64d Merge pull request #299 from nfischer/appveyor-support
Add appveyor.yml config file
2016-01-27 12:31:28 -08:00
Ari Porad
90a98a51e8 Merge pull request #311 from nfischer/ls-d-option
feat(ls): add -d flag to ls()
2016-01-26 18:51:12 -08:00
Nate Fischer
2f9f3a3390 Add appveyor.yml config file 2016-01-26 14:55:06 -08:00
Nate Fischer
c6da9e76fd feat(ls): add -d flag to ls() 2016-01-25 23:44:20 -08:00
Nate Fischer
c1813c22af Merge pull request #312 from ariporad/LGTM
chore(LGTM): add LGTM config files
2016-01-25 18:45:51 -08:00
Ari Porad
f224776ff7 Merge pull request #310 from nfischer/fix-gen-docs
fix(gen-docs): fix issue where docs are generated wrong
2016-01-25 18:17:12 -08:00
Ari Porad
17f053df94 chore(LGTM): add LGTM config files 2016-01-25 18:16:07 -08:00
Nate Fischer
24c2120934 Merge pull request #282 from freitagbr/fix-relative-symlinks
Fix relative symlinks
2016-01-25 17:16:36 -08:00
Brandon Freitag
70ec630f92 Add invalid tests for ln 2016-01-25 01:59:20 -08:00
Brandon Freitag
39ab73ff61 Check that source exists for hard links 2016-01-25 01:48:06 -08:00
Nate Fischer
ddff4692fd fix(gen-docs): fix issue where docs are generated wrong
This fixes an issue where the gen-docs script's sed() command would improperly
update the docs. Travis now checks that docs are generated properly.
2016-01-25 00:20:36 -08:00
Brandon Freitag
fd27d85317 Use OS-agnostic filepath verification 2016-01-24 22:35:45 -08:00
Brandon Freitag
bceb066c5c Fix relative symlinks, add tests
When creating a symlink with a relative path, e.g. `ln('-s', '../baz.txt', 'foo/bar/link')`,
the link will be created releative to the destination directory, not to the
current working directory of the node process. Also added tests for
functionality.
2016-01-24 22:35:45 -08:00
Nate Fischer
f47a8e2eb8 Merge pull request #304 from ariporad/shjs-tests
test(shjs): add tests for shjs
2016-01-24 20:50:29 -08:00
Ari Porad
7244c932fa Merge pull request #308 from nfischer/fix-package-json
chore(package): remove v0.8 from engines list
2016-01-24 17:53:25 -08:00
Ari Porad
49b60cd59e Merge pull request #276 from TimothyGu/to
feat(end/round): make to and toEnd chainable
2016-01-24 17:29:11 -08:00
Nate Fischer
9a22a95672 chore(package): remove v0.8 from engines list 2016-01-24 15:56:20 -08:00
Timothy Gu
48a4c13352 travis: Mark as not using sudo and do not test 0.11 2016-01-24 15:07:46 -08:00
Timothy Gu
18df9540ab Make to and toEnd chainable 2016-01-24 15:03:20 -08:00
Ari Porad
b60ab70f02 test(shjs): add tests for shjs 2016-01-24 14:24:26 -08:00
Ari Porad
154d6a626a Merge pull request #303 from nfischer/more-regex-tests
fix: regexes are more consistent with sed and grep
2016-01-24 14:16:17 -08:00
Ari Porad
361eb93430 Merge pull request #306 from nfischer/cd-no-args
feat(cd): cd() (no args) changes to home directory
2016-01-24 14:11:13 -08:00
Nate Fischer
dfaa78abef feat(cd): cd() (no args) changes to home directory 2016-01-24 13:19:57 -08:00
Ari Porad
c4220691b7 Merge pull request #293 from nfischer/feat-home-directory-tilde
feat: add tilde expansion to expand()
2016-01-24 11:50:40 -08:00
Ari Porad
12c47e3164 Merge pull request #273 from nfischer/PreviousDirectory
chore(cd): impliment cd -
2016-01-24 07:48:43 -08:00
Nate Fischer
b3f266469b feat: add tilde expansion to expand()
This adds tilde expansion to the expand() function. Arguments starting with '~/'
will have the tilde expanded to the user's home directory, as with Bash.
2016-01-23 21:52:20 -08:00
Nate Fischer
1979d07776 Adding previousDir field to common.state to allow cd('-') to work like Bash 2016-01-23 21:24:13 -08:00
Nate Fischer
1ee696d824 fix: regexes are more consistent with sed and grep
sed will now convert search strings to regex form, so `'a*'` will now work like
`/a*/`. Also, new tests for grep and sed ensure that '*' is not expanded for
filename globbing.
2016-01-23 21:16:43 -08:00
Nate Fischer
5ea67cf06d Fix ls docs 2016-01-23 17:32:26 -08:00
Ari Porad
015d34f78a Merge pull request #295 from nfischer/fix-run-tests
fix: jshint works on Windows
2016-01-21 14:01:31 -07:00