mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 14:54:57 +00:00
991d958436
[PR 1318][PR1318] introduces a monorepo member that's used as a DApp dependency, but the present arrangement whereby `test_dapps/` is an embedded monorepo makes it difficult to develop and test such packages in tandem with changes to `test_dapps/packages/*`. Reorganize `test_dapps/*` as members of the root monorepo and make various adjustments accordingly. This makes it easy to develop test dapps and any packages they depend on simultaneously, but we lose the CI/QA arrangement where test dapps are run with an embark installed from fresh tarballs. That arrangement, which is quite worthwhile as a means to detect problems arising from transitive dependencies as soon as possible, will be re-introduced in another PR, possibly involving an auxiliary repository such as embark-framework/dapp-bin. Since the `package.json` `"test"` scripts of `test_dapps/*` are now kicked off as part of `yarn test` in the root, and since port allocation isn't fully dynamic, it's important to run `yarn test` with `lerna run`'s `--concurrency=1` option. For the same reasons, the root `ci` and `qa` scripts are similarly restricted. In the future, this setup can be refactored and improved, along with use of `lerna run`'s `--since` option to increase testing efficiency in CI. [PR1318]: https://github.com/embark-framework/embark/pull/1318
29 lines
1.1 KiB
JSON
29 lines
1.1 KiB
JSON
{
|
|
"contracts": ["app/contracts/**"],
|
|
"app": {
|
|
"js/webpack_test.js": "app/js/index.js",
|
|
"css/app.css": ["app/css/**"],
|
|
"images/": ["app/images/**"],
|
|
"js/app.js": ["embark.js", "app/js/_vendor/jquery.min.js", "app/js/_vendor/bootstrap.min.js", "app/js/**", "!app/js/test.js", "!app/js/foo.js", "!app/js/foo.css", "!app/js/new_index.js"],
|
|
"js/new_app.js": ["app/js/new_index.js"],
|
|
"js/embark.js": ["embark.js"],
|
|
"js/abi.js": "abi.js",
|
|
"js/test.js": ["embark.js", "app/js/_vendor/jquery.min.js", "app/js/_vendor/async.min.js", "app/js/test.js"],
|
|
"js/mytoken.js": ["$MyToken", "app/js/token_test.js"],
|
|
"index.html": "app/index.html",
|
|
"new_index.html": "app/new_index.html",
|
|
"test.html": "app/test.html",
|
|
"test2.html": "app/test2.html",
|
|
"js/myweb3.js": "web3-0.18.js",
|
|
"js/web3.js": "web3.js",
|
|
"js/all_contracts.js": "$ALL_CONTRACTS",
|
|
"js/only_embark.js": "$EMBARK_JS"
|
|
},
|
|
"buildDir": "dist/",
|
|
"config": "config/",
|
|
"plugins": {
|
|
"embark-babel": {"files": ["**/*.js", "**/*.jsx", "!**/_vendor/*.js"]},
|
|
"embark-service": {}
|
|
}
|
|
}
|