Giter Club home page Giter Club logo

elm-embed's People

Contributors

andys8 avatar apanatshka avatar avh4 avatar boshen avatar brianhicks avatar bsattelb avatar dandandan avatar deadfoxygrandpa avatar dobesv avatar emmabastas avatar evancz avatar hdgarrood avatar imeckler avatar jfmengels avatar joeyeremondi avatar johnpmayer avatar jsl avatar jvoigtlaender avatar laszlopandy avatar maxsnew avatar mgold avatar michaelbjames avatar ngunn avatar perplexes avatar process-bot avatar sheeo avatar techtangents avatar timthelion avatar vbychkovsky avatar xash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elm-embed's Issues

Unexposed tasks are run

-- elm-generate-scripts/Foo.elm
module Foo exposing (exposed)
import Generate

exposed = Generate.Done ()
unexposed = Generate.Done ()

Here unexposed is evaluated, and included in the generated file, which it should not

Is the combinator pattern harmfull for elm-embed?

Currently you can combine Embed.Task's with Embed.andThen, i.e one embedder can depend on the result of another one. You could for example use the value of an environment variable as the location for a configuration file read by an embedder, which then further affects the behavior of said embedder as it reads more files from disk. Now you have something that looks like a homecocked build system, which lies far outside the scope of elm-embed.

Are there situations where you genuinely need the power to combine embedders? The most legitimate example I can think of would be to have an environment variable to configure the location of a file to be read on disk. A workaround for that could be to use a symlink instead.

`elm-generate` shares `elm-stuff` with `elm make`

to reproduce:

  1. elm make
  2. elm-generate

error:

-- CORRUPT CACHE ---------------------------------------------------------------

It looks like some of the information cached in elm-stuff/ has been corrupted.

this is probably because elm-generate and elm share the same cache directory, they should have separate ones!

Binaries for osx and windows

How to go about compiling and testing for osx and windows is something I'll need to figure out. I don't have reliable access to either OS so might be a bit tricky.

Removing type annotation crashes elm-embed

SSCCE

$ echo y | elm init
$ echo y | elm-embed init

Put his in elm-embed-scripts/SSCCE.elm

module SSCCE exposing (foo)

import Embed

foo : Embed.Task Int
foo = Embed.succeed 1

$ elm-embed run

Remove type annotation from SSCCE.foo

$ elm-embed run now crashes

Removing elm-stuff/elm-embed resolves the issue

Uses cases for elm-embed

For me to make good design decisions it is critical to know what people would like to use elm-embed for.
So if you have a use case in mind, please leave a comment!

`elm-generate` shares package cache with `elm`

To reproduce:

  1. elm make
  2. elm-generate

You get a bunch of messages like

+-------------------------------------------------------------------------------
|  Corrupt File: /home/emma/.elm/0.19.1/packages/avh4/elm-color/1.0.0/artifacts.dat
|   Byte Offset: 26385
|       Message: not enough bytes
|
| Please report this to https://github.com/elm/compiler/issues
| Trying to continue anyway.
+-------------------------------------------------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.