Skip to content

Commit

Permalink
uncomment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alastair Ong committed Dec 7, 2023
1 parent 72c7a00 commit 0dc202f
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 105 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

208 changes: 104 additions & 104 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,110 +38,110 @@ npm t
npm run package
"

# rm -rf /tmp/forum-vue
# cd /tmp

# hc-scaffold web-app forum-vue --setup-nix true --template vue
# cd forum-vue

# hc-scaffold dna forum
# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

# hc-scaffold collection global all_posts post
# hc-scaffold collection by-author posts_by_author post
# hc-scaffold collection global all_likes like
# hc-scaffold collection global all_posts_entry_hash post:EntryHash
# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash

# hc-scaffold link-type post like --delete true --bidireccional false
# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true

# nix develop --command bash -c "
# set -e
# npm i
# npm run build -w ui
# npm t
# npm run package
# "

# rm -rf /tmp/forum-lit
# cd /tmp

# hc-scaffold web-app forum-lit --setup-nix true --template lit
# cd forum-lit

# hc-scaffold dna forum
# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

# hc-scaffold collection global all_posts post
# hc-scaffold collection by-author posts_by_author post
# hc-scaffold collection global all_posts_entry_hash post:EntryHash
# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash
# hc-scaffold collection global all_likes like

# hc-scaffold link-type post like --delete true --bidireccional false
# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true

# nix develop --command bash -c "
# set -e
# npm i
# npm run build -w ui
# npm run format -w ui
# npm run lint -w ui
# npm t
# npm run package
# "


# rm -rf /tmp/forum-vanilla
# cd /tmp

# hc-scaffold web-app forum-vanilla --setup-nix true --template vanilla
# cd forum-vanilla

# hc-scaffold dna forum
# hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
# hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
# hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
# hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
# hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

# hc-scaffold collection global all_posts post
# hc-scaffold collection by-author posts_by_author post
# hc-scaffold collection global all_posts_entry_hash post:EntryHash
# hc-scaffold collection global all_likes like
# hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash

# hc-scaffold link-type post like --delete true --bidireccional false
# hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
# hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
# hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true


# nix develop --command bash -c "
# set -e
# npm i
# npm t
# npm run package
# "

# rm -rf /tmp/hello-world
# cd /tmp

# hc-scaffold example hello-world
# cd hello-world
rm -rf /tmp/forum-vue
cd /tmp

hc-scaffold web-app forum-vue --setup-nix true --template vue
cd forum-vue

hc-scaffold dna forum
hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

hc-scaffold collection global all_posts post
hc-scaffold collection by-author posts_by_author post
hc-scaffold collection global all_likes like
hc-scaffold collection global all_posts_entry_hash post:EntryHash
hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash

hc-scaffold link-type post like --delete true --bidireccional false
hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true

nix develop --command bash -c "
set -e
npm i
npm run build -w ui
npm t
npm run package
"

rm -rf /tmp/forum-lit
cd /tmp

hc-scaffold web-app forum-lit --setup-nix true --template lit
cd forum-lit

hc-scaffold dna forum
hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

hc-scaffold collection global all_posts post
hc-scaffold collection by-author posts_by_author post
hc-scaffold collection global all_posts_entry_hash post:EntryHash
hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash
hc-scaffold collection global all_likes like

hc-scaffold link-type post like --delete true --bidireccional false
hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true

nix develop --command bash -c "
set -e
npm i
npm run build -w ui
npm run format -w ui
npm run lint -w ui
npm t
npm run package
"


rm -rf /tmp/forum-vanilla
cd /tmp

hc-scaffold web-app forum-vanilla --setup-nix true --template vanilla
cd forum-vanilla

hc-scaffold dna forum
hc-scaffold zome posts --integrity dnas/forum/zomes/integrity/ --coordinator dnas/forum/zomes/coordinator/
hc-scaffold entry-type post --reference-entry-hash false --crud crud --link-from-original-to-each-update true --fields title:String:TextField,content:String:TextArea
hc-scaffold entry-type comment --reference-entry-hash false --crud crud --link-from-original-to-each-update false --fields post_hash:ActionHash::Post
hc-scaffold entry-type like --reference-entry-hash false --crud crd --fields like_hash:Option\<ActionHash\>::Like,string_list:Vec\<String\>
hc-scaffold entry-type certificate --reference-entry-hash true --crud cr --fields post_hash:ActionHash::Post,agent:AgentPubKey::certified,certifications_hashes:Vec\<EntryHash\>::Certificate,certificate_type:Enum::CertificateType:TypeOne.TypeTwo,dna_hash:DnaHash

hc-scaffold collection global all_posts post
hc-scaffold collection by-author posts_by_author post
hc-scaffold collection global all_posts_entry_hash post:EntryHash
hc-scaffold collection global all_likes like
hc-scaffold collection by-author posts_by_author_entry_hash post:EntryHash

hc-scaffold link-type post like --delete true --bidireccional false
hc-scaffold link-type comment like:EntryHash --delete true --bidireccional true
hc-scaffold link-type certificate:EntryHash like --delete false --bidireccional false
hc-scaffold link-type agent:creator post:EntryHash --delete false --bidireccional true


nix develop --command bash -c "
set -e
npm i
npm t
npm run package
"

rm -rf /tmp/hello-world
cd /tmp

hc-scaffold example hello-world
cd hello-world

nix develop --command bash -c "
set -e
Expand Down

0 comments on commit 0dc202f

Please sign in to comment.