1
0
Fork 0

Put Elm files into src/ and assets into public/ (#4)

This commit is contained in:
Vincent Jousse 2017-04-20 14:38:52 +02:00 committed by Nicolas Perriault
parent d381009894
commit 556fab7daa
10 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
/build
/elm-stuff
/node_modules
/app.js
app.js

View File

@ -4,7 +4,7 @@
"repository": "https://github.com/n1k0/tooty.git",
"license": "MIT",
"source-directories": [
"."
"./src"
],
"exposed-modules": [],
"dependencies": {

View File

@ -3,10 +3,10 @@
"version": "1.0.0",
"description": "An alternative Web client for Mastodon.",
"scripts": {
"build": "node_modules/.bin/elm-make Main.elm --output=build/app.js && npm run copy-assets",
"copy-assets": "node_modules/.bin/copyfiles index.html style.css build/",
"build": "node_modules/.bin/elm-make src/Main.elm --output=build/public/app.js && npm run copy-assets",
"copy-assets": "node_modules/.bin/copyfiles public/index.html public/css/style.css build/",
"deploy": "npm run build && node_modules/.bin/gh-pages --dist build/",
"live": "node_modules/.bin/elm-live Main.elm --output=app.js --debug",
"live": "node_modules/.bin/elm-live src/Main.elm --dir=public/ --output=public/app.js --debug",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {

View File

@ -5,7 +5,7 @@
<title>Tooty</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//bootswatch.com/slate/bootstrap.min.css" media="all" rel="stylesheet" />
<link href="style.css" media="all" rel="stylesheet" />
<link href="css/style.css" media="all" rel="stylesheet" />
</head>
<body>