elm-spa/package.json

48 lines
1.8 KiB
JSON
Raw Normal View History

2020-07-14 06:39:10 +03:00
{
"name": "elm-spa",
"version": "5.0.1",
"description": "single page apps made easy",
"main": "index.js",
"bin": "./index.js",
"directories": {
"test": "tests"
},
"scripts": {
"build": "npm run build:elm && npm run build:minify",
"build:elm": "elm make src/Main.elm --optimize --output dist/elm.js",
"build:minify": "uglifyjs dist/elm.js --compress 'pure_funcs=\"F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9\",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle > dist/elm.worker.js",
"test:ci": "npm run test && npm run test:cli",
"test": "elm-test",
"test:watch": "elm-test --watch",
"test:cli": "(npm run build && cd tests && npm run test:cli:init && npm run test:cli:add && npm run test:cli:build && npm run test:cli:cleanup)",
"test:cli:init": "./index.js init elm-ui tests/demo && cd tests/demo && npm install && npm run build",
"test:cli:add": "cd tests/demo && ../../index.js add static Top && ../../index.js add sandbox Posts.Top && ../../index.js add element Posts.Id_Int && ../../index.js add application Authors.Name_String.Posts.Id_Int && npm run build",
"test:cli:build": "cd tests/demo && ../../index.js build",
"test:cli:cleanup": "cd tests && rm -rf demo",
"dev": "chokidar src -c \"(npm run build || true)\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ryannhg/elm-spa.git"
},
"keywords": [
"elm",
"spa",
"web",
"framework"
],
"author": "Ryan Haskell-Glatz",
"license": "ISC",
"bugs": {
"url": "https://github.com/ryannhg/elm-spa/issues"
},
"homepage": "https://github.com/ryannhg/elm-spa#readme",
"dependencies": {
"prompts": "2.3.2"
},
"devDependencies": {
"elm": "0.19.1-3",
"elm-test": "0.19.1-revision2"
}
}