-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from desci-labs/m0ar/package-split-and-cli
Package split and basic CLI
- Loading branch information
Showing
72 changed files
with
19,865 additions
and
9,647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
src/__generated__/* | ||
**/__generated__/* | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
node_modules | ||
admin_seed.txt | ||
local-data | ||
src/__generated__/* | ||
composedb.config.json | ||
test.config.json | ||
*.tsbuildinfo | ||
.vscode | ||
dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
.PHONY: clean clean-test test | ||
|
||
clean: | ||
rm -rf node_modules local-data | ||
rm -rf node_modules | ||
$(MAKE) -C packages/composedb clean | ||
|
||
clean-test: | ||
rm -rf local-data/ceramic-test | ||
$(MAKE) -C packages/composedb clean-test | ||
|
||
test: clean-test | ||
if pgrep --older 1 --count --full "ceramic daemon|ipfs daemon"; then \ | ||
echo "Refusing to clobber running daemons"; exit 1; \ | ||
fi | ||
|
||
sed 's|local-data/ceramic|local-data/ceramic-test|' composedb.config.json \ | ||
> test.config.json | ||
npx ceramic daemon --config test.config.json &>/dev/null & | ||
sleep 5 | ||
|
||
npm run deployComposites | ||
$(MAKE) -C packages/composedb start-test-env | ||
# Ensure daemons dead, without losing test exit code for CI | ||
if npm test; then \ | ||
npm run kill; true; \ | ||
if npm run test --workspace packages/lib; then \ | ||
$(MAKE) -C packages/composedb kill-test-env; true; \ | ||
else \ | ||
npm run kill; false; \ | ||
$(MAKE) -C packages/composedb kill-test-env; false; \ | ||
fi |
Oops, something went wrong.