1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{
"name": "notes-app",
"version": "1.0.0",
"author": "luxagraf",
"description": "Compile JS for Notes app",
"main": "src/js/index.js",
"scripts": {
"eslint": "eslint src/*.js --fix",
"babel": "mkdir -p tmp && babel src/*.js -d tmp",
"include": "cp src/lib/*.js tmp/",
"uglify:local": "mkdir -p ../media/js && uglifyjs tmp/*.js -m -c -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 include && 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.1.6",
"eslint": "^5.9.0"
}
}
|