├── app
│ ├── controllers
│ │ ├── admin
│ │ │ ├── posts.js
│ │ │ └── users.js
│ │ ├── posts.js
│ │ ├── session.js
This file contains hidden or 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
| module DryJsonSchema | |
| # Transforms a dry-validation form to json-schema-compatible objects (hash or array) | |
| # Usage: | |
| # DryJsonSchema::Converter.(my_form) | |
| # => { :type => :object, | |
| # :properties => { :abc => { :type => :integer }, | |
| # :xyz => { :type => :integer } | |
| # }, | |
| # :required => [:abc]} | |
| class Converter |
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
- Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
These types were written by the team at https://www.skylight.io/, specifically @gitKrystan (with lots of help from @chancancode).
Gist filenames don't allow slashes, so I replaced them with :.
Add "<app-name>/mirage/*": ["mirage/*"] to your paths config in your tsconfig.json