Skip to content

Commit

Permalink
Initial Elm commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsamson committed Mar 11, 2016
1 parent 04eb222 commit 5ec4165
Show file tree
Hide file tree
Showing 14 changed files with 10,851 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ erl_crash.dump
/config/test.secret.exs
/priv/scripts/bootstrap.secret.exs
.DS_Store

web/elm/elm-stuff
web/static/vendor/ticker.js
8 changes: 7 additions & 1 deletion brunch-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ exports.config = {
// Dependencies and current project directories to watch
watched: [
"web/static",
"test/static"
"test/static",
"web/elm/src"
],

// Where to compile files to
Expand All @@ -49,6 +50,11 @@ exports.config = {

// Configure your plugins
plugins: {
elmBrunch: {
elmFolder: 'web/elm',
mainModules: ['src/Ticker.elm'],
outputFolder: '../static/vendor'
},
babel: {
// Do not use ES6 compiler in vendor code
ignore: [/web\/static\/vendor/]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"elm-brunch": "^0.4.4",
"phoenix": "file:deps/phoenix",
"phoenix_html": "file:deps/phoenix_html"
}
Expand Down
7 changes: 7 additions & 0 deletions web/controllers/ticker.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defmodule Stackfooter.TickerController do
use Stackfooter.Web, :controller

def index(conn, _params) do
render conn, "index.html"
end
end
17 changes: 17 additions & 0 deletions web/elm/elm-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"src"
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "3.0.0 <= v < 4.0.0",
"evancz/elm-effects": "2.0.1 <= v < 3.0.0",
"evancz/elm-html": "4.0.2 <= v < 5.0.0",
"evancz/start-app": "2.0.2 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
Loading

0 comments on commit 5ec4165

Please sign in to comment.