-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
34 lines (34 loc) · 1.19 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "frontend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"clean": "rm -rf dist && mkdir dist",
"copy:static": "rsync -av static/ dist/ --exclude=index.html",
"copy:indexhtml": "cat config.json | tmpl static/index.html > dist/index.html",
"watch:static": "onchange 'static/**' -- npm run copy",
"copy:fonts": "cp -r node_modules/simple-line-icons/fonts dist/",
"copy": "npm-run-all copy:static copy:fonts copy:indexhtml",
"build:elm": "elm make Main.elm --output=dist/app.js",
"watch:elm": "elm-live Main.elm --output=dist/app.js --dir=dist -- --debug",
"build:less": "lessc styles/app.less > dist/app.css",
"watch:less": "onchange 'styles/**/*.less' -- 'npm run build:less'",
"build": "npm-run-all clean copy build:elm build:less",
"watch": "npm-run-all clean copy build:less --parallel watch:elm watch:less watch:static",
"start": "npm run watch"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"elm-live": "^2.6.0",
"less": "^2.7.1",
"npm-run-all": "^3.1.1",
"onchange": "^3.2.1",
"tmpl-cli": "^0.1.2"
},
"dependencies": {
"simple-line-icons": "^2.4.1"
}
}