From d69e9c2f02a6ab9f9efea8d1d0070118d5680846 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 26 Aug 2020 22:00:58 +0200 Subject: [PATCH] #35 build scripts --- !build.cmd | 3 +++ package.json | 34 +++++++++++++++++++--------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 !build.cmd diff --git a/!build.cmd b/!build.cmd new file mode 100644 index 0000000..a93f22b --- /dev/null +++ b/!build.cmd @@ -0,0 +1,3 @@ +@echo off +call npm run dist:prod +pause \ No newline at end of file diff --git a/package.json b/package.json index b8e6bc6..cfcce45 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,23 @@ "version": "1.0.0", "description": "Ehanced Aniwatch is a browser extension for https://aniwatch.me/", "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "gulp build", + "build:prod": "cross-env NODE_ENV=production gulp build", + "dist": "gulp dist", + "dist:prod": "cross-env NODE_ENV=production gulp dist" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Serraniel/EnhancedAniwatch.git" + }, + "author": "Serraniel", + "license": "MPL-2.0", + "bugs": { + "url": "https://github.com/Serraniel/EnhancedAniwatch/issues" + }, + "homepage": "https://github.com/Serraniel/EnhancedAniwatch#readme", "dependencies": { "regenerator-runtime": "^0.13.7" }, @@ -38,18 +55,5 @@ "sass": "^1.26.10", "vinyl-buffer": "^1.0.1", "vinyl-source-stream": "^2.0.0" - }, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Serraniel/EnhancedAniwatch.git" - }, - "author": "Serraniel", - "license": "MPL-2.0", - "bugs": { - "url": "https://github.com/Serraniel/EnhancedAniwatch/issues" - }, - "homepage": "https://github.com/Serraniel/EnhancedAniwatch#readme" -} + } +} \ No newline at end of file