Skip to content
Open
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
elm-stuff
elm-stuff/build-artifacts
static/main.js
serve/serve
23 changes: 23 additions & 0 deletions client/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> {},
version ? "dev",
elm18 ? (
import (builtins.fetchTarball "https://nixos.org/channels/nixos-18.03/nixexprs.tar.xz") {}
).elmPackages.elm
}:

pkgs.stdenv.mkDerivation {
name = "triples-client-${version}";

src = ./.;

buildInputs = [ elm18 ];

buildPhase = ''
elm-make src/Main.elm --yes --output main.js
'';

installPhase = ''
mkdir -p $out/
cp main.js $out/
'';
}
6 changes: 3 additions & 3 deletions client/elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"repository": "https://github.com/robx/noexist.git",
"license": "BSD3",
"source-directories": [
"src",
"/s/elm-edn/src"
"src"
],
"exposed-modules": [],
"dependencies": {
Expand All @@ -18,7 +17,8 @@
"elm-lang/navigation": "2.1.0 <= v < 3.0.0",
"evancz/url-parser": "2.0.0 <= v < 3.0.0",
"elm-lang/websocket": "1.0.2 <= v < 2.0.0",
"elm-tools/parser-primitives": "1.0.0 <= v < 2.0.0"
"elm-tools/parser-primitives": "1.0.0 <= v < 2.0.0",
"robx/elm-edn": "1.4.0 <= v < 2.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
15 changes: 15 additions & 0 deletions client/elm-stuff/exact-dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"elm-tools/parser-primitives": "1.0.0",
"elm-lang/navigation": "2.1.0",
"elm-lang/virtual-dom": "2.0.4",
"evancz/url-parser": "2.0.1",
"elm-community/random-extra": "2.0.0",
"elm-lang/dom": "1.1.1",
"elm-lang/websocket": "1.0.2",
"elm-lang/html": "2.0.0",
"elm-lang/http": "1.0.0",
"elm-community/list-extra": "7.1.0",
"elm-lang/svg": "2.0.0",
"elm-lang/core": "5.1.1",
"robx/elm-edn": "1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore build or dist files
/elm-stuff
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
sudo: false

language: node_js
node_js: node

cache:
directories:
- elm-stuff/build-artifacts
- elm-stuff/packages
- sysconfcpus

os:
- linux

before_install:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config

install:
- npm install -g elm elm-test
- elm package install --yes
- |
if [ ! -d "$TRAVIS_BUILD_DIR/sysconfcpus/bin" ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi

before_script:
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make --yes src/List/Extra.elm
- cd tests && $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make --yes Tests.elm ../src/List/Extra.elm && cd ..

script:
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-test
21 changes: 21 additions & 0 deletions client/elm-stuff/packages/elm-community/list-extra/7.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 CircuitHub Inc., Elm Community members

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
24 changes: 24 additions & 0 deletions client/elm-stuff/packages/elm-community/list-extra/7.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convenience functions for working with List

[![Build Status](https://travis-ci.org/elm-community/list-extra.svg?branch=master)](https://travis-ci.org/elm-community/list-extra)

Experimental package with convenience functions for working with List.
Note that this API is experimental and likely to go through many more iterations.

Feedback and contributions are very welcome.

## Run tests

This package uses [elm-test](https://github.com/elm-community/elm-test), please read its documentation to know how to run tests.

## Contributing

Pull requests are welcome. You can expect some kind of response within 5 days.

If you are adding a new function please..

0. Include [documentation](http://package.elm-lang.org/help/documentation-format) and make sure it has a code snippet demonstrating what the function does.
1. Give a detailed use case where your function would come in handy in the PR.
2. Add tests to `Tests/Tests.elm`

If you are improving existing functions please demonstrate the performance gains in something like [Ellie](https://ellie-app.com/) and by using a benchmark library like [this one](http://package.elm-lang.org/packages/BrianHicks/elm-benchmark/latest).
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "7.1.0",
"summary": "Convenience functions for working with List",
"repository": "https://github.com/elm-community/list-extra.git",
"license": "MIT",
"source-directories": [
"src"
],
"exposed-modules": [
"List.Extra"
],
"dependencies": {
"elm-lang/core": "5.1.1 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
Loading