-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff2c587
commit f156180
Showing
18 changed files
with
145 additions
and
102 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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
/app/ | ||
/lib/ | ||
/bin/ | ||
/dist/ | ||
/.shards/ | ||
shard.lock |
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
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,18 +1,21 @@ | ||
# Basic recipes | ||
|
||
## granite | ||
Recipes with common shards used by Amber Framework | ||
|
||
## Granite | ||
|
||
The standard built-in recipe but only with support for the Granite ORM | ||
Create a new amber app with this template with the command; | ||
|
||
``` | ||
amber new mynewapp -r basic/granite | ||
amber new mynewapp -r basic_granite | ||
``` | ||
|
||
## crecto | ||
## Crecto | ||
|
||
The standard built-in recipe but only with support for the Crecto ORM | ||
Create a new amber app with this template with the command; | ||
|
||
``` | ||
amber new mynewapp -r basic/crecto | ||
amber new mynewapp -r basic_crecto | ||
``` |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,21 +1,25 @@ | ||
# Misc recipes | ||
|
||
These recipes contain shards with new exiting features and structure. | ||
|
||
## modular | ||
## Modular | ||
|
||
Created by [Damian Hamill](https://github.com/damianham). | ||
|
||
A recipe that organises controller, model and views into modules e.g. | ||
|
||
- src/modules | ||
- src/modules/post | ||
- src/modules/post/edit.slang | ||
- src/modules/post/_form.slang | ||
- src/modules/post/post_controller.cr | ||
- src/modules/post/show.slang | ||
- src/modules/post/post.cr | ||
- src/modules/post/index.slang | ||
- src/modules/post/new.slang | ||
- `src/modules` | ||
- `src/modules/post` | ||
- `src/modules/post/edit.slang` | ||
- `src/modules/post/_form.slang` | ||
- `src/modules/post/post_controller.cr` | ||
- `src/modules/post/show.slang` | ||
- `src/modules/post/post.cr` | ||
- `src/modules/post/index.slang` | ||
- `src/modules/post/new.slang` | ||
|
||
Create a new amber app with this template with the command; | ||
|
||
``` | ||
amber new mynewapp -r misc/modular | ||
amber new mynewapp -r misc_modular | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require "./recipes_spec" | ||
|
||
describe "Basic Crecto" do | ||
# TODO: crecto scaffolding is broken | ||
# the crecto builtin template is also broken | ||
# it "compiles and tests basic/crecto recipe" do | ||
# generate_app recipe: "basic/crecto" | ||
# build_app.should be_true | ||
# ensure | ||
# cleanup | ||
# end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "./recipes_spec" | ||
|
||
describe "Basic Granite" do | ||
it "compiles and tests basic/granite recipe" do | ||
generate_app recipe: "basic/granite" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "./recipes_spec" | ||
|
||
describe "Default" do | ||
it "compiles and tests default recipe" do | ||
generate_app recipe: "default" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "./recipes_spec" | ||
|
||
describe "Misc Modular" do | ||
it "compiles and tests misc/modular recipe" do | ||
generate_app recipe: "misc/modular" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
end |
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,39 +1,3 @@ | ||
require "./spec_helper" | ||
|
||
build_amber | ||
|
||
describe "Compile available recipes" do | ||
it "compiles and tests default recipe" do | ||
generate_app recipe: "default" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
|
||
it "compiles and tests basic/granite recipe" do | ||
generate_app recipe: "basic/granite" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
|
||
# TODO: crecto scaffolding is broken | ||
# the crecto builtin template is also broken | ||
# it "compiles and tests basic/crecto recipe" do | ||
# generate_app recipe: "basic/crecto" | ||
# build_app.should be_true | ||
# ensure | ||
# cleanup | ||
# end | ||
|
||
it "compiles and tests misc/modular recipe" do | ||
generate_app recipe: "misc/modular" | ||
build_app.should be_true | ||
test_app.should be_true | ||
ensure | ||
cleanup | ||
end | ||
|
||
end |