aboutsummaryrefslogtreecommitdiff
path: root/scripts/package.json
blob: 6edaf7b0f7ec78a3d4b211832cc754c24b589053 (plain)
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
{
    "name": "notes-app",
    "version": "1.0.0",
    "author": "luxagraf",
    "description": "Compile JS for Notes app",
    "main": "src/js/index.js",
    "browserslist": "> 0.25%, not dead",
    "scripts": {
        "eslint": "eslint src/*.js --fix",
        "babel": "mkdir -p tmp && babel src/*.js -d tmp",
        "include": "cp src/lib/*.js tmp/",
        "concat": "mkdir -p ../media/js && uglifyjs tmp/*.js -m -b -o tmp/main.js",
        "browserify": "cd tmp && browserify main.js -o main.pack.js",
        "uglify:local": "uglifyjs tmp/main.pack.js -m -o  ../media/js/main.min.js",
        "uglify:deploy": "mkdir -p ../media/js && uglifyjs tmp/*.js -m -c drop_console=true -o ../media/js/main.min.js",
        "cleanup": "rm -rf tmp",
        "build": "pnpm run babel && pnpm run concat && pnpm run browserify && pnpm run uglify:local && pnpm run cleanup",
        "deploy": "pnpm run babel && pnpm run include && pnpm run uglify && pnpm run cleanup",
        "watch": "watch 'pnpm run build' ."
    },
    "devDependencies": {
        "@babel/cli": "^7.1.5",
        "@babel/core": "^7.1.6",
        "@babel/preset-env": "^7.2.3",
        "@babel/standalone": "^7.2.5",
        "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
        "babel-plugin-transform-runtime": "^6.23.0",
        "babelify": "^10.0.0",
        "browserify": "^16.2.3",
        "core-js": "^2.6.1",
        "eslint": "^5.9.0"
    },
    "dependencies": {
        "babel-polyfill": "^6.26.0",
        "babel-runtime": "^6.26.0"
    }
}