41 Commits

Author SHA1 Message Date
Daniel Lo Nigro de29ce0e62 Decouple Chocolatey build from Windows Installer build (#1132)
* Decouple Chocolatey build from Windows Installer build

* Add more metadata to the nuspec
2016-10-16 20:26:47 -07:00
Daniel Lo Nigro 8f4f01e89c Use Yarn package/installer on Travis/AppVeyor/CircleCI rather than npm (#1117) 2016-10-15 21:45:38 -07:00
Daniel Lo Nigro 33b7779bd7 Set umask to 0022 so file permissions are correct (#1089) 2016-10-15 00:40:09 -07:00
Alexander Vagin ae0caa340b Do not exit 1 if yarn already installed (#829)
I think it's bad idea to exit 1 in this case - because this script can't be used in pipeline or in ansible. Throwing exception breaks next movements. If Yarn already installed this script - it will warn and normally exited with exit code 0.
What do you think?
2016-10-14 18:42:57 +01:00
Daniel Lo Nigro d7c1d5ef17 Build .deb and .rpm on CircleCI (#962) 2016-10-13 13:03:55 +01:00
Ekin Koc ecbceeb9ca Add node shebang to single JS builds (#915) 2016-10-13 11:33:20 +01:00
Ryan Stelly 454bf9b933 fix tgz glob for powershell build (echo #729 fix) (#793) 2016-10-12 14:33:31 +01:00
Hiro Asari 0a5baff0a3 Improvements on Travis CI (#799)
* Move to containers on Travis

Since git-core PPA is already available, there is no reason to
stick with GCE.
(Unless the build requires a lot of memory.)

* Move correct archive

The resulting package is `yarn-*.tgz`, not `yarnpkg-*.tgz`.

* Skip updating nvm

The preinstalled version is good enough to install Node.js 6+

* Clean up .travis.yml

* Instead of excluding certain builds, add OS X builds (build matrix
definition is more compact)
* Change TEST_TYPE names, so that we can call `npm run` uniformly in
`script`.

* Skip upgrading git on OS X

A newer git is unnecessary, and upgrading adds too much time to the build.

* Contruct build matrix with exclude

To keep job number consistent with older builds
2016-10-12 07:56:27 +01:00
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