1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Update shadow-cljs and use relative paths; fixes #17

This commit is contained in:
Arne Schlüter 2018-08-20 19:02:08 +02:00
commit 1713e37695
3 changed files with 152 additions and 953 deletions

1092
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,13 +5,12 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build:cljs": "shadow-cljs release app", "build:cljs": "shadow-cljs release app",
"build:html": "sed 's/\"\\/app\\//\".\\/app\\//g' src/html/index.html > public/index.html",
"build:sass": "node-sass --output-style compressed src/sass/app.sass public/app/style.css", "build:sass": "node-sass --output-style compressed src/sass/app.sass public/app/style.css",
"build": "rm -r public/*; run-p copy:* build:*", "build": "rm -r public/*; run-p copy:* build:*",
"copy:html": "cp src/html/index.html public/index.html",
"copy:icons": "cp -R node_modules/open-iconic/font/fonts public", "copy:icons": "cp -R node_modules/open-iconic/font/fonts public",
"deploy": "npm run build && gh-pages -d public -m \"Deploying $(git rev-parse --short HEAD)\"", "deploy": "npm run build && gh-pages -d public -m \"Deploying $(git rev-parse --short HEAD)\"",
"dev:cljs": "shadow-cljs watch app test", "dev:cljs": "shadow-cljs watch app test",
"dev:html": "sed 's/\"\\.\\/app\\//\"\\/app\\//g' src/html/index.html > public/index.html",
"dev:sass": "npm run build:sass; node-sass -w src/sass/app.sass public/app/style.css", "dev:sass": "npm run build:sass; node-sass -w src/sass/app.sass public/app/style.css",
"dev:test": "karma start --reporters growl,progress --auto-watch", "dev:test": "karma start --reporters growl,progress --auto-watch",
"dev": "npm-run-all copy:* test:compile -p dev:*", "dev": "npm-run-all copy:* test:compile -p dev:*",
@ -35,7 +34,7 @@
}, },
"devDependencies": { "devDependencies": {
"gh-pages": "^1.2.0", "gh-pages": "^1.2.0",
"karma": "^2.0.4", "karma": "^2.0.5",
"karma-chrome-launcher": "^2.2.0", "karma-chrome-launcher": "^2.2.0",
"karma-cljs-test": "^0.1.0", "karma-cljs-test": "^0.1.0",
"karma-growl-reporter": "^1.0.0", "karma-growl-reporter": "^1.0.0",
@ -44,6 +43,6 @@
"react-flip-move": "^3.0.1", "react-flip-move": "^3.0.1",
"react-highlight.js": "^1.0.7", "react-highlight.js": "^1.0.7",
"sass": "^1.3.2", "sass": "^1.3.2",
"shadow-cljs": "^2.4.17" "shadow-cljs": "^2.6.1"
} }
} }

View file

@ -2,13 +2,13 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Airsonic</title> <title>Airsonic</title>
<link rel="stylesheet" href="/app/style.css"> <link rel="stylesheet" href="./app/style.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="/app/js/main.js"></script> <script src="./app/js/main.js"></script>
<script>airsonic_ui.core.init()</script> <script>airsonic_ui.core.init()</script>
</body> </body>
</html> </html>