diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..211a715 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: node_js + +node_js: 5 + +env: + - PATH=$TRAVIS_BUILD_DIR/node_modules/.bin:$TRAVIS_BUILD_DIR/sysconfcpus/bin:$PATH + +cache: + directories: + - sysconfcpus + +before_install: + - | + if [ ! -d sysconfcpus/bin ]; + then + git clone https://github.com/obmarg/libsysconfcpus.git; + cd libsysconfcpus; + ./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus; + make && make install; + cd ..; + fi + +install: + - npm install + +script: + - sysconfcpus -n 2 npm test diff --git a/examples/elm-architecture-tutorial/.gitignore b/examples/elm-architecture-tutorial/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/examples/elm-architecture-tutorial/.gitignore @@ -0,0 +1 @@ +build diff --git a/examples/elm-architecture-tutorial/compile.sh b/examples/elm-architecture-tutorial/compile.sh new file mode 100644 index 0000000..654716a --- /dev/null +++ b/examples/elm-architecture-tutorial/compile.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +mkdir -p build +elm-make --yes MainWithFullUrl.elm --output build/MainWithFullUrl.html +elm-make --yes MainWithJustHash.elm --output build/MainWithJustHash.html +elm-make --yes MainWithOldAPI.elm --output build/MainWithOldAPI.html diff --git a/package.json b/package.json new file mode 100644 index 0000000..2c6240c --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "elm-route-url", + "version": "3.0.1", + "description": "Router for single-page-apps in Elm", + "main": "index.js", + "directories": { + "test": "tests" + }, + "dependencies": {}, + "devDependencies": { + "elm": "^0.18.0" + }, + "scripts": { + "test": "cd examples/elm-architecture-tutorial && sh compile.sh" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/rgrempel/elm-route-url.git" + }, + "author": "Ryan Rempel ", + "license": "MIT", + "bugs": { + "url": "https://github.com/rgrempel/elm-route-url/issues" + }, + "homepage": "https://github.com/rgrempel/elm-route-url#readme" +}