embark/packages/stack/compiler
emizzle acd1d72f2d fix(@embark/tests): Tests exiting early
Tests were exiting early and Mocha was reporting an exit code of 0. This allowed CI to complete as if the tests were successful.

Change `compiler:contracts` event request to `compiler:contracts:compile` and update documentation. Because the `compiler:contracts` event didn’t exist, this test was silently failing.

Update the `TestEvents` mock object to allow passing of parameters to an event that is not a callback.

Add unit tests to test for contracts loaded via node_modules.

1. This PR contains a change where any contracts loaded from node_modules will be imported in to `.embark/contracts/node_modules`. Previously, these contracts were loaded in to `.embark/node_modules` (with the `/contracts`).
2019-12-11 11:27:45 -05:00
..
src feat(@embark/compiler): support :before and :after hooks on event compiler:contracts:compile (#1878) 2019-09-11 13:08:52 -04:00
test test(@embark/stack/compiler): add tests for the compiler 2019-10-25 14:12:00 -05:00
.npmrc move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
CHANGELOG.md chore(release): 5.0.0-alpha.2 2019-12-05 15:03:09 -05:00
README.md fix(@embark/tests): Tests exiting early 2019-12-11 11:27:45 -05:00
package.json chore(release): 5.0.0-alpha.2 2019-12-05 15:03:09 -05:00
tsconfig.json move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
tslint.json move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00

README.md

embark-compiler

Embark compiler module

Abstracts the compiler interface and exposes a plugin api to register contract extensions and how to handle them. It accepts command requests to compile and returns the aggregated compilation result.

API

command: compiler:contracts:compile

arguments:

  • contractFiles -
  • options -