Commit Graph

33 Commits

Author SHA1 Message Date
Hasit Mistry 16b4e3b9f3 Handle installation for 'fish' shell (#690)
* Handle installation for 'fish' shell

'fish' is a popular shell. This commit adds support for proper detection and installation of yarn in 'fish' shell. If the detected shell is 'fish', add path to ~/.yarn/bin in $HOME/.config/fish/config.fish file.

* Use a more modern way of setting $PATH in fish

Set `~/.yarn/bin` in `$fish_user_paths` instead of setting it in `~/.config/fish/config.fish` file.

See [suggestion from fish documentation](https://github.com/fish-shell/fish-shell/issues/527#issuecomment-13811988) for more reference.

* Run command to set $fish_user_paths instead of evaluating a string.
2016-10-12 11:25:33 +09:00
Kristján Oddsson e6739873a3 Set the correct filename for the npm package (#729) 2016-10-12 10:55:52 +09:00
David Brear 131bc3ada5 changed tilde to home to fix for .zshrc (#625) 2016-10-11 17:16:55 +01:00
Sebastian McKenzie c5472c3f92 alert users that we edited their profile with PATH 2016-10-11 16:47:32 +01:00
Sebastian McKenzie 25ed711e1d don't remove tarball before we extract it... 2016-10-11 16:05:28 +01:00
Sebastian McKenzie 26de4f0d3a follow redirects 2016-10-11 15:57:06 +01:00
Sebastian McKenzie 057b78bfe4 Change .yarn cache directory name (#592) 2016-10-11 12:19:32 +01:00
Daniel Lo Nigro 48484b238d "yarn" -> "yarnpkg" (#580) 2016-10-10 21:18:06 -07:00
Sebastian McKenzie 453d396235 Tarball install (#568)
* rename yarn package to yarnpkg

* add install-latest script
2016-10-10 14:38:02 +01:00
Daniel Lo Nigro 1e268f52ca Add RPM packaging (#556) 2016-10-10 10:53:45 +01:00
Sebastian McKenzie 2812f05b30 Add missing ls commands (#535)
* fix lint

* add unlicense

* add missing ls commands - fixes #529, fixes #530

Signed-off-by: Sebastian McKenzie <kittens@users.noreply.github.com>
2016-10-06 16:17:39 +01:00
Sebastian McKenzie 86c98a62a7 Add missing commands (#439)
* add init command - closes #360

* list available commands and examples in cli help - fixes #345

* add outdated command - fixes #379

* rename uninstall command to remove

* add global command - fixes #227

* remove command aliases

* fix licenses not being shown due to integrity check shortcircuiting - fixes #424

* turn aliases back into js

* clean up single instance arguments - fixes #308

* ignore arguments that are included after -- - fixes #251

* add unlink command

* add lint rule against non-language keys

* clean up Config initialisation

* add link command - closes #336

* support array of string engines - fixes #447

* add missing request cache fixtures

* polish link command

* remove gulp file output

* add config command - fixes #378

* add yarn.lock and fix constants

* update aliases

* add missing i18n for CLI

* make `upgrade` command work how you'd expect

* update test metamethod

* require arguments for add command

* move dependency objects into constnats

* add init command - closes #360

* list available commands and examples in cli help - fixes #345

* add outdated command - fixes #379

* rename uninstall command to remove

* add global command - fixes #227

* remove command aliases

* fix licenses not being shown due to integrity check shortcircuiting - fixes #424

* turn aliases back into js

* clean up single instance arguments - fixes #308

* ignore arguments that are included after -- - fixes #251

* add unlink command

* add lint rule against non-language keys

* clean up Config initialisation

* add link command - closes #336

* support array of string engines - fixes #447

* polish link command

* remove gulp file output

* add config command - fixes #378

* add yarn.lock and fix constants

* fix lint, copy test fixtures to temp directory rather than mutating cwd

* fix lint

* add handler for extractor errors

* remove unused jest snapshot

* fix check-lockfile script

* fix lint

* fix check-lockfile

* try and fix test

* properly copy over lockfile scripts folder, ignore ds_store files in test directories

* remove problematic fixtures

* add back problematic fixtures

* disable test
2016-10-05 12:50:44 +01:00
Daniel Lo Nigro b63a1d1510 Debian package build (#414)
* Script to build Debian package

* Adjustments for Debian scripts:
 - Add copyright file
 - Add full description to control file
 - Ignore some lintian rules
 - Delete clowny files that aren't needed and break lintian rules
 - Update shebang in yarn.js from "node" to "nodejs" as per Debian package of Node

* Add basic Debian instructions

* Revert readme change and explicitly require Node.js 4 or above
2016-10-04 11:46:40 -07:00
Daniel Lo Nigro f2b93ffc00 Add Windows Chocolatey package (#442)
* Add Chocolatey package

* Update to final URL
2016-10-04 10:15:16 -07:00
Andres Suarez 08625c3eb7 s/normalise/normalize/ 2016-10-04 14:46:11 +01:00
Andres Suarez 72dc2ab09b Bundle & distribute yarn as one js file (#413) 2016-10-04 14:45:52 +01:00
Andres Suarez e193ed482c Pre-generate infer license regexs (#492) 2016-10-04 11:52:11 +01:00
Daniel Lo Nigro 66e4395765 Add Windows installer 2016-10-04 11:40:53 +01:00
Daniel Lo Nigro af01eb321c Add build-dist script for Windows (#485) 2016-10-04 11:24:36 +01:00
Andres Suarez 0893d6bf83 Misc stylings (#409)
* Remove non-existent file from eslintignore

* Fix file case

* Use as consistent style as possible in non-transpiled files
2016-09-22 09:59:00 +01:00
Sebastian McKenzie ade49ae12b add yarn check to test-ci script to ensure yarn.lock is always up to date - fixes #291 (#368) 2016-09-21 11:56:35 +01:00
Sebastian McKenzie 7011eb00c2 fix build-dist name 2016-09-20 16:52:41 +01:00
Sebastian McKenzie 5300b482c8 Cleanup workflow (#281)
* Rename --quick-sloppy flag from `kpm check` to --integrity

* Make --save implicit when installing new modules, remove strict lockfiles, always create updated lockfile and populate tarball cache

* Add integrity hash check to `kpm install`

* Update kpm.lock

* remove incorrect assert messages

* split up package resolving and fetching

* update kpm.lock

* clean up activityStep, move back cursor at end to cover worker lines - fixes #262

* use fake jest timers

* remove old test

* add mocks to jest test ignore

* fix test fixture lockfile

* Add lockfile version header - fixes #280

* split up `kpm install` into `kpm add` - closes #284

* fix lint

* fix using `latest` tag when adding new dependencies - fixes #263

* clean up kpm entry files

* add useless `kpm version` command

* rename config.js to Config.js

* remove Makefile and switch to simple npm scripts

* add more flow-typed definitions

* correctly case Config file

* fix misc lint

* fix type annotation of PackageConstraintResolver#reduce

* fix bin/kpm nits and unused variable

* use dashed filenames instead of camelcase

* move add command fixtures to separate folder

* hoist common-mirror test folder
2016-09-06 16:36:48 +01:00
Sebastian McKenzie 7b4d7c8fd2 Switch to Facebook code style - closes #172 2016-08-16 23:05:13 +01:00
Konstantin Raev 8dff4056d4 added a test for issue #161 (#187)
* added a test for issue #161

* disable broken test

* added expectation

* improved error message
2016-08-05 14:51:52 +01:00