-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
41 lines (41 loc) · 1.99 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
35
36
37
38
39
40
41
{
"name": "pre-lottery",
"version": "1.0.0",
"description": "Lottery of lottery for montpellier-jug",
"main": "src/index.js",
"scripts": {
"dev": "npm run dev:init && npm run dev:test && npm run dev:assets && npm run dev:rollup",
"dev:init": "rm -rf dist && mkdir -p dist/tests/jasmine",
"dev:assets": "cp src/index.html dist && cp src/index.css dist && cp -r src/assets dist",
"dev:rollup": "rollup --watch -i src/index.js -o dist/bundle.js -f iife -m inline",
"dev:test": "cp -r tests dist && cp node_modules/jasmine-core/lib/jasmine-core/boot.js dist/tests/jasmine && cp node_modules/jasmine-core/lib/jasmine-core/jasmine.css dist/tests/jasmine && cp node_modules/jasmine-core/lib/jasmine-core/jasmine.js dist/tests/jasmine && cp node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js dist/tests/jasmine && cp node_modules/jasmine-core/images/jasmine_favicon.png dist/tests/jasmine",
"build": "npm run build:init && npm run build:assets && npm run build:rollup && npm run build:uglify && npm run build:clean",
"build:init": "npm run dev:init && npm run dev:test",
"build:assets": "cp -r src/assets dist",
"build:rollup": "rollup -i src/index.js -o dist/bundle.js -f iife",
"build:uglify": "babel dist/bundle.js --presets=es2015 | uglifyjs -cm | indexhtmlify --style src/index.css | metadataify | html-minifier --minify-css > dist/index.html",
"build:clean": "rm dist/bundle.js",
"deploy": "npm run build && gh-pages -d dist/.",
"test": "echo \"Open tests/tests.html in your browser!\""
},
"author": "Romain Maneschi",
"license": "MIT",
"repository": {
"type": "git",
"url": "[email protected]:manland/pre-lottery.git"
},
"dependencies": {
"jasmine-core": "2.5.2"
},
"devDependencies": {
"babel-cli": "6.18.0",
"babel-preset-es2015": "6.18.0",
"gh-pages": "0.11.0",
"html-minifier": "3.1.1",
"indexhtmlify": "1.3.1",
"metadataify": "1.0.2",
"rollup": "0.36.3",
"rollup-watch": "2.5.0",
"uglify-js": "2.7.4"
}
}