luckyframework / luckyframework/lucky_cli

Add default support for crystalline

Open
#807 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
92
Forks
48
PR merge metrics
No merged PRs in 30d

Description

With the default settings, `crystalline` doesn't work on a bunch of files. This can be solved by adding a `.crystalline_main.cr` where the necessary files are imported.

https://github.com/elbywan/crystalline/issues/67

## Suggested solution

Add the following to the default `shards.yml` file:
```yaml
crystalline:
main: .crystalline_main.cr
```
And add this to the `.crystalline_main.cr` file in the project root:
```crystal
require "./src/start_server.cr"
require "./db/**"
require "./tasks.cr"
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the default shards.yml and project-root template files referenced in the issue. Add the crystalline main configuration and imports shown, then verify that the generated project supports crystalline across the affected files.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
cli, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.