Put Elm files into src/ and assets into public/ (#4)
This commit is contained in:
parent
d381009894
commit
556fab7daa
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
/build
|
||||
/elm-stuff
|
||||
/node_modules
|
||||
/app.js
|
||||
app.js
|
||||
|
@ -4,7 +4,7 @@
|
||||
"repository": "https://github.com/n1k0/tooty.git",
|
||||
"license": "MIT",
|
||||
"source-directories": [
|
||||
"."
|
||||
"./src"
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
|
@ -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": {
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user