Giter VIP home page Giter VIP logo

elm-tools's Introduction

    ____  _________    ____  __  _________
   / __ \/ ____/   |  / __ \/  |/  / ____/
  / /_/ / __/ / /| | / / / / /|_/ / __/   
 / _, _/ /___/ ___ |/ /_/ / /  / / /___   
/_/ |_/_____/_/  |_/_____/_/  /_/_____/   
                                          

 Compile: 
    elm-start.sh : build boilerplate for elm project
    compile.sh   : a script to run the Elm compiler
    go.sh        : a script to run python3 server

 Usage:
    > ./elm-start.sh elm-foo
    0/ create a directory at </Users/pr/work/code/elm/elm-hacks/elm-foo>
    1/ build DOC skeleton
       cp template
    2/ move to dir </Users/pr/work/code/elm/elm-hacks/elm-foo>
    3/ setup git
    Initialized empty Git repository in /Users/pr/work/code/elm/elm-hacks/elm-foo/.git/
    4/ setup elm
    Hello! Elm projects always start with an elm.json file. I can create them!

    Now you may be wondering, what will be in this file? How do I add Elm files to
    my project? How do I see it in the browser? How will my code grow? Do I need
    more directories? What about tests? Etc.

    Check out <https://elm-lang.org/0.19.1/init> for all the answers!

    Knowing all that, would you like me to create an elm.json file now? [Y/n]: y
    Okay, I created it. Now read that link!
    5/ add to git... first checkin
    [master (root-commit) 7b5e230] Initial Checkin for elm-foo
    7 files changed, 79 insertions(+)
    create mode 100644 BUGS
    create mode 100644 README
    create mode 100644 TODO
    create mode 100644 elm.json
    create mode 100644 favicon.png
    create mode 100644 index.html
    create mode 100644 src/Main.elm
    commit 7b5e230de592ee94f5661e103fa8f17921a5af94 (HEAD -> master)
    Author: Peter Renshaw <[email protected]>
    Date:   Thu Aug 13 22:47:19 2020 +1000

    Initial Checkin for elm-foo
    On branch master
    Untracked files:
      (use "git add <file>..." to include in what will be committed)

	compile.sh

    nothing added to commit but untracked files present (use "git add" to track)

    6/ compile your project ๐Ÿฆ˜
    compiling... src/Main.elm
    Dependencies ready!         
    Success! Compiled 1 module.

        Main โ”€โ”€โ”€> main.js

    7/ start coding
    -rw-r--r--@ 1 pr  staff   162 13 Aug 22:47 BUGS
    -rw-r--r--@ 1 pr  staff   259 13 Aug 22:47 README
    -rw-r--r--@ 1 pr  staff   130 13 Aug 22:47 TODO
    -rwxr--r--  1 pr  staff   528 13 Aug 22:47 compile.sh
    -rw-r--r--  1 pr  staff   517 13 Aug 22:47 elm.json
    -rw-r--r--  1 pr  staff  7980 13 Aug 22:47 favicon.png
    -rw-r--r--  1 pr  staff   345 13 Aug 22:47 index.html

    src:
    total 8
    drwxr-xr-x   3 pr  staff   96 13 Aug 22:47 .
    drwxr-xr-x  11 pr  staff  352 13 Aug 22:47 ..
    -rw-r--r--@  1 pr  staff  192 13 Aug 22:47 Main.elm

    > cd elm-foo
    $  

2020OCT01
* :63 but, changed $PATH for $DIR
* added update for template/go.sh
- allows for directory/path

  ./go.sh 5000 192.168.0.60 www
  option: port is 5000
  option: url is <http://192.168.0.12>
  option: directory is www
          --directory www
  starting server 192.168.0.12:5000 --directory www
  Serving HTTP on 192.168.0.12 port 5000 (http://192.168.0.12:5000/) ...

2020SEP25
* added 
- TEMPLATE/src/Tools.elm
* updated 
- TEMPLATE/src/Colour.elm
- TEMPLATE/src/Emoji.elm

2020SEP24
* added src/Tools.elm
- contains tools for datetime
- see SUCCESS/elm-datetime for usage
- needs work see TODO

2020SEP23
* compile step added ... 
- slight renumbering of steps

2020SEP14
* addition to go.sh to allow for serving URL
- eg: 

        $ ./go.sh 5000 192.168.0.60
        > option: port is 5000
        > option: URL  is 192.168.0.60
        > starting server http://192.168.0.60:5000


2020SEP10
* added src/Emoji.elm and src/Colour.elm
- my own colour & emoji tools
- quite handy

2020AUG27
* added src/Blank.elm
- there is a case where I want a blank template to use
- modify elm-start.sh to allow for this
+ capture command argument name
+ rename file

* re-order of src/Main.elm
- this is after experience with latest hack
- readability

2020AUG24
* compiles
- after much wombling, the error was 'Document' instead of 'document'.

* todo
- elm-start.sh paths
- testing
- added type declaration to main, src/Main.elm
- testing

* addressing a big problem of boilerplate code
- every reference you look at is a simplified version
  of the changes I've made to /template/Main.elm
- A bias here is I'll be using elm-ui so things are
  being set up so code for apps compile quicker
- source: Practical Elm, P92-95


2020AUG21
* add template/Main.elm

* added template/go.sh
- run a python3 http.server
- defaults to port 5000

2020AUG18
* modified src/Main.elm
- added CONST

2020AUG12
* template must be captured
- there's a duplication of files (compile.sh)
- needs to be there
- why template/src/Main.elm not captured?

* order of src/Main.elm 
- make main first

2020AUG11
* added favicon

2020AUG10
* new order src/Main.elm
    -- TYPES
    -- MODEL
    -- FUNCS
    -- INIT
    -- SUBSCRIPTIONS
    -- UPDATE
    -- VIEW
    -- MAIN


* add SUBSCRIPTIONS to src/Main.elm 

* now building as I want
* changed template to replicate structure I want in projects
  
  BUGS
  compile.sh
  index.html
  README
  src
      Main.elm
  TODO

* add compile.sh to template

* rewrote elm-start.sh
- includes template dir
- template dir should be in root

2020AUG07
* initail checkin

elm-tools's People

Contributors

peterrenshaw avatar

Watchers

 avatar  avatar

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.