Commit Graph

13 Commits

Author SHA1 Message Date
Marc Cornellà e32536a208 _yarn: fix parsing of yarn run on scripts containing } (#668)
Fixes #667
2020-01-17 12:54:37 -08:00
nicoulaj 87e131334f
Merge pull request #653 from MaximDevoir/feat/improve-yarn-suggestions
YARN | Improve suggestions for `yarn run` command
2019-10-08 18:54:55 +02:00
Maxim Devoir c9b335769c
revert: suggest binaries on `yarn`
This behavior is the same as before c6bdbc69e1
2019-10-07 12:14:10 -07:00
Bond 21aa84dba2
Add --latest flag for yarn upgrade-interactive 2019-10-03 05:05:46 +01:00
Marc Cornellà a47b58ef97
Parse script commands without `jq`
Source from https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537484017
2019-10-02 07:42:15 -07:00
Maxim Devoir c6bdbc69e1
Separate project scripts from binary packages
If `jq` utility is installed:

- Suggests script names from `package.json` and their associated script

Following [this feedback](https://github.com/robbyrussell/oh-my-zsh/pull/8118#issuecomment-537148142), binaries will always be suggested.
2019-10-02 02:47:13 -07:00
Jordan Rastrick 4add7f4dfb
Improve _yarn changes
Use `_default` instead of `_files` and don't unnecessarily wrap with `_arguments`
2019-10-01 12:50:37 +10:00
Jordan Rastrick 1000d2ea8b
fall back to file completion for yarn scripts 2019-09-26 16:59:14 +10:00
Serge Bibauw ff73f4064f
yarn: rename clean to autoclean, add description for certain commands
- `clean` has been renamed to `autoclean` (https://github.com/yarnpkg/rfcs/pull/52)
- added description (from `yarn help [command]`) to `cache`, `import` and `versions`
2018-05-02 15:22:48 +02:00
Simon Wachter 155c2a9939
yarn: escape colons when getting scripts from package.json 2017-11-06 13:33:30 +01:00
Chayoung You aa4c6d0abc
Replace character with newline using `tr`
BSD sed don't print newline for `\n` in replacement string.
2017-06-09 18:03:41 +09:00
Akinori MUSHA 32b4770dab Use `sed -E` instead of `-r`
`-E` is more widely supported, including GNU sed.

- [GNU sed](https://www.gnu.org/software/sed/manual/sed.html)
- [macOS](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/sed.1.html)
- [FreeBSD](https://man.freebsd.org/sed/)
- [NetBSD](http://netbsd.gw.com/cgi-bin/man-cgi?sed)
- [OpenBSD](http://man.openbsd.org/sed.1)
2017-05-15 17:40:15 +09:00
Massimiliano Torromeo 9feab3990c Added completion for yarn 2017-05-06 19:52:10 +02:00