Skip to content

Commit

Permalink
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/compiler/crystal/tools/init/template/gitignore.ecr
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@
/libs/
/lib/
/.shards/
<%- if config.skeleton_type == "lib" -%>

<% if config.skeleton_type == "lib" %>
# Libraries don't need dependency lock
# Dependencies will be locked in application that uses them
/shard.lock
<% end %>
<%- end -%>
10 changes: 5 additions & 5 deletions src/compiler/crystal/tools/init/template/readme.md.ecr
Original file line number Diff line number Diff line change
@@ -4,26 +4,26 @@ TODO: Write a description here

## Installation

<% if config.skeleton_type == "lib" %>
<%- if config.skeleton_type == "lib" -%>
Add this to your application's `shard.yml`:

```yaml
dependencies:
<%= config.name %>:
github: <%= config.github_name %>/<%= config.name %>
```
<% else %>
<%- else -%>
TODO: Write installation instructions here
<% end %>
<%- end -%>

## Usage

<% if config.skeleton_type == "lib" %>
<%- if config.skeleton_type == "lib" -%>
```crystal
require "<%= config.name %>"
```
<% end %>

<%- end -%>
TODO: Write usage instructions here

## Development

0 comments on commit 9446b22

Please sign in to comment.