aboutsummaryrefslogtreecommitdiff
path: root/scripts/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package.json')
-rw-r--r--scripts/package.json40
1 files changed, 22 insertions, 18 deletions
diff --git a/scripts/package.json b/scripts/package.json
index 778b5e6..890274e 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -1,20 +1,24 @@
{
- "name": "scripts",
- "version": "1.0.0",
- "description": "javascript for aite",
- "main": "common.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "author": "luxagraf",
- "license": "ISC",
- "devDependencies": {
- "@babel/core": "^7.1.6",
- "@babel/preset-env": "^7.1.6",
- "gulp": "^4.0.0",
- "gulp-babel": "^8.0.0",
- "gulp-concat": "^2.6.1",
- "gulp-rename": "^1.4.0",
- "gulp-uglify": "^3.0.1"
- }
+ "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"
+ }
}