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
|
/build
|
||||||
/elm-stuff
|
/elm-stuff
|
||||||
/node_modules
|
/node_modules
|
||||||
/app.js
|
app.js
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/n1k0/tooty.git",
|
"repository": "https://github.com/n1k0/tooty.git",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"."
|
"./src"
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "An alternative Web client for Mastodon.",
|
"description": "An alternative Web client for Mastodon.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node_modules/.bin/elm-make Main.elm --output=build/app.js && npm run copy-assets",
|
"build": "node_modules/.bin/elm-make src/Main.elm --output=build/public/app.js && npm run copy-assets",
|
||||||
"copy-assets": "node_modules/.bin/copyfiles index.html style.css build/",
|
"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/",
|
"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"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<title>Tooty</title>
|
<title>Tooty</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="//bootswatch.com/slate/bootstrap.min.css" media="all" rel="stylesheet" />
|
<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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
Loading…
Reference in New Issue
Block a user