Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Refactor #1

Merged
10 commits merged into from
Jun 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright 2018 Driebit

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 changes: 14 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export PATH := $(NPM_PATH):$(PATH)
all: $(ELM_FILES)
@elm-make --warn --yes src/Main.elm --output dist/main.js

analyse: deps
@elm-analyse --elm-format-path=./node_modules/elm-format/bin/elm-format src

clean:
@rm -Rf dist/*

Expand All @@ -38,16 +41,17 @@ format-validate:

help:
@echo "Run: make <target> where <target> is one of the following:"
@echo " all"
@echo " clean"
@echo " cover"
@echo " deps"
@echo " distclean"
@echo " format"
@echo " format-validate"
@echo " help"
@echo " test"
@echo " watch"
@echo " all Compile all Elm files"
@echo " analyse Run Elm analyse"
@echo " clean Remove 'dist' folder"
@echo " cover Run Elm coverage"
@echo " deps Install build dependencies"
@echo " distclean Remove build dependencies"
@echo " format Run Elm format"
@echo " format-validate Check if Elm files are formatted"
@echo " help Magic"
@echo " test Run Elm-test"
@echo " watch Run 'make all' on Elm file change"

test:
@elm-test --compiler ${ROOT_DIR}/node_modules/.bin/elm-make
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Ginger Elm Skeleton

## Install
Install Elm, Elm-test, Elm-format and Elm-coverage.
```
make deps
```
## Compile

```
make (all)
```

## Watch
Watch .elm files and compile on change
```
make watch
```
7 changes: 7 additions & 0 deletions elm-analyse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"checks" : {
"ImportAll": false
},
"excludedPaths" : [
]
}
10 changes: 6 additions & 4 deletions elm-package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"version": "0.1.0",
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "UNLICENSED",
"source-directories": ["src"],
"source-directories": [
"src"
],
"exposed-modules": [],
"native-modules": false,
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-lang/html": "2.0.0 <= v < 3.0.0",
"elm-lang/navigation": "2.1.0 <= v < 3.0.0"
"elm-lang/navigation": "2.1.0 <= v < 3.0.0",
"evancz/url-parser": "2.0.1 <= v < 3.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
Loading