Commit Graph

13 Commits

Author SHA1 Message Date
William Hilton
2b09caff06 Update: Separate lockfile into its own npm package (#4114)
**Summary**

Fixes #3879. Separates the lockfile parser as a separate npm package.

**Test plan**

Existing unit tests.
2017-08-20 00:53:54 +01:00
Onur Temizkan
9099ad4fbc Chore: Convert gulpfile vars to consts (#4075) 2017-08-02 21:47:51 +01:00
Burak Yiğit Kaya
2c54c02453 Fix: Fix single-file builds and simplify bundles (#4063)
**Summary**

Fixes #4057.

**Test plan**

CI should pass, especially with `build-dist` job.

Manual:

 - Run `yarn build-dist`
 - Run `node artifacts/yarn-0.28.0.js --version`
 - Run `./dist/bin/yarn --version`

Make sure all above commands work without errors.
2017-08-02 12:54:40 +01:00
Kishan Bagaria
9acdd68db4 Refactor and optimize bin/yarn.js (#3482)
* Refactor and optimize yarn.js

* Refactor and add `watch-modern` task
2017-05-26 00:51:06 +01:00
Paul D. Hester
fa16b8b2c6 add build option to generate sourcemaps (#1688)
running gulp --sourcemaps will generate maps in lib
can also run gulp watch --sourcemaps, etc.
2016-11-27 00:11:26 +00:00
Steve Lacy
9edf577cb8 Lint: remove unused vars (#720) 2016-10-13 10:18:26 +09: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
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
Andres Suarez
0da5e861cb Refactor streams use in tarball fetcher (#348)
* Use built-in `stream.Transform` to create `HashStream`s

Since we're only targeting newer Node versions with a reasonable stream module, and we can use the `class` syntax sugar, it makes sense to extend `stream.Transform` directly to create a `HashStream`. In a future commit, this will allows to remove `through2` altogether.

Also, `HashStream` was previously mistyped as a `stream$Readable`, when in fact, it's a `stream$Transform`.

* Fix `cachedStream` type

`validateStream` (`cachedStream` is piped into it a few lines below) was mistyped as a `stream$Readable` instead of a `stream$Transform`. It's now correctly typed, so this isn't necessary.

* Use idiomatic streams to unpack tarballs

Instead of doing weird nested stream passing, there's now an `Unpack` stream constructor that can unzip a stream if the input is gziped, or passthrough the data otherwise.

* Unnest tarball saving streams

* Use `stream.PassThrough` for logging instead of `through2`

* Remove `through2` dependency
2016-09-19 10:39:58 +01:00
Sebastian McKenzie
46e8be5a9b remove patents and facebook license headers 2016-09-16 20:27:37 +01:00
Sebastian McKenzie
4e2549155a Cleanup manifest validation 2016-09-12 16:05:56 +01:00
Andres Suarez
e1653b6391 Fix gulp path rewrite to work with any base dir
Previously, if you had fbkpm in a directory with `src` in the name, the new name would be mangled.
2016-09-05 20:48:20 -04:00
Shayne Sweeney
40f27a80ca Change gulpfile.js to be lowercase, for linux support 2016-06-21 11:11:05 -07:00