From fbec85365041ab1c8c1fbe306278b461cb68b25b Mon Sep 17 00:00:00 2001 From: Dru Jensen Date: Sat, 21 Jan 2017 18:44:44 -0800 Subject: [PATCH] rename app to project name This is inline with the standard crystal application. Now that we can generate templates, we do not need to rely on a specific name. --- shard.lock | 6 +++--- shard.yml | 3 ++- src/templates/app/bin/{sentry.cr => sentry.cr.ecr} | 4 ++-- src/templates/app/src/{app.cr => {{name}}.cr} | 0 4 files changed, 7 insertions(+), 6 deletions(-) rename src/templates/app/bin/{sentry.cr => sentry.cr.ecr} (97%) rename src/templates/app/src/{app.cr => {{name}}.cr} (100%) diff --git a/shard.lock b/shard.lock index 94764a8..1cbdeff 100644 --- a/shard.lock +++ b/shard.lock @@ -2,11 +2,11 @@ version: 1.0 shards: callback: github: mosop/callback - version: 0.5.0.1 + version: 0.5.0 cli: github: mosop/cli - commit: 1eb9c7e7b1109bac9800972c7be538583a13587d + version: 0.5.1 icr: github: TechMagister/crystal-icr @@ -14,7 +14,7 @@ shards: optarg: github: mosop/optarg - version: 0.4.2.9 + version: 0.4.2.7 sentry: github: TechMagister/sentry diff --git a/shard.yml b/shard.yml index f5f5ec1..95c1419 100644 --- a/shard.yml +++ b/shard.yml @@ -16,10 +16,11 @@ license: MIT dependencies: cli: github: mosop/cli - branch: master + version: ~> 0.5.1 teeplate: github: mosop/teeplate + version: ~> 0.2.3 icr: github: TechMagister/crystal-icr diff --git a/src/templates/app/bin/sentry.cr b/src/templates/app/bin/sentry.cr.ecr similarity index 97% rename from src/templates/app/bin/sentry.cr rename to src/templates/app/bin/sentry.cr.ecr index e7e0d07..1622fd4 100644 --- a/src/templates/app/bin/sentry.cr +++ b/src/templates/app/bin/sentry.cr.ecr @@ -1,7 +1,7 @@ require "option_parser" -build_command = "crystal build ./src/app.cr" -run_command = "./app" +build_command = "crystal build ./src/<%= @name %>.cr" +run_command = "./<%= @name %>" files = ["./src/**/*", "./config/*"] files_cleared = false show_help = false diff --git a/src/templates/app/src/app.cr b/src/templates/app/src/{{name}}.cr similarity index 100% rename from src/templates/app/src/app.cr rename to src/templates/app/src/{{name}}.cr