Commit Graph

3 Commits

Author SHA1 Message Date
Chris Blappert
192cd084b8 Cleanup files
Summary: Release Notes: none

Reviewed By: mzlee, NTillmann

Differential Revision: D6546282

fbshipit-source-id: 9c0e0dfa62a4a61dfbff13d5fd15967f4ef453fc
2017-12-12 11:12:24 -08:00
Michael Lee
593c44a7e5 Switch to a proper command invocation for hermes
Summary: Remove the use of host_platform_DO_NOT_USE and use a python_binary wrapper so we do not have cross-platform rulekey divergence

Reviewed By: danzimm

Differential Revision: D6462272

fbshipit-source-id: a28370b30c0cb801ec2cee2735f6e7eaa028aa65
2017-12-04 11:57:46 -08:00
Sebastian Markbåge
db10fc86f1 Extract scripts from npm package (#463)
This moves things around in a more common idiomatic folder structure / naming convention. This extracts the scripts that are only used to test the library from the source of the library itself.

/src/scripts -> /scripts

This is no longer part of the build process. Therefore we use babel-node to run the files as needed. The exception is test-runner that is just ran in plain node so that it works with the coverage reports.

The lib folder now includes only and all the library files required to use the package and no longer test runners.

Because of that I moved all the dependencies that were related only to our test scripts and website build to devDependencies. That way we minimize the required dependencies to use Prepack downstream as an npm package.

Then I configured the package.json to only list lib/ and bin/ folders as part of the package. This lets `npm publish` ignore all other files so that people installing the package don't need to include all our testing code.

I added files to bin/ and package.json which is a convention to make this package installable and usable as a command-line tool.

Renamed run_util -> prepack-cli and repl -> repl-cli to separate these from library variants.

The coverage reports now get created in the root instead of lib folder so that they don't get included in the build.

I bumped the version number to one minor above what is already on npm since we can't publish earlier than that.
2017-04-26 12:26:18 -07:00