From 9353449515ff6881a54ce6887297b7eab2855186 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 30 Apr 2016 11:17:50 +0200 Subject: Use scripty instead of writing shell commands in package.json --- package.json | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index a9d053f6e..32c0d31f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube", - "description": "Prototype of a decentralized video streaming platform using P2P (bittorent) directly in the web browser with webtorrent.", + "description": "Prototype of a decentralized video streaming platform using P2P (bittorent) directly in the web browser with WebTorrent and Angular 2.", "version": "0.0.1", "private": true, "licence": "GPLv3", @@ -17,24 +17,26 @@ "url": "git://github.com/Chocobozzz/PeerTube.git" }, "scripts": { - "build": "concurrently \"npm run client:sass\" \"npm run client:tsc\"", - "client:clean": "concurrently \"npm run client:tsc:clean\" \"npm run client:sass:clean\"", - "client:sass:index": "npm run client:sass:index:clean && cd client && node-sass --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css", - "client:sass:index:watch": "cd client && node-sass -w --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css client/angular/**/ client/angular/**/**", - "client:sass:index:clean": "cd client && rm -f stylesheets/index.css", - "client:sass:angular": "cd client && node-sass angular/ --output angular/", - "client:sass:angular:watch": "cd client && node-sass -w angular/ --output angular/", - "client:sass:angular:clean": "cd client && rm -f angular/**/*.css", - "client:sass": "concurrently \"npm run client:sass:index\" \"npm run client:sass:angular\"", - "client:sass:watch": "concurrently \"npm run client:sass:index:watch\" \"npm run client:sass:angular:watch\"", - "client:sass:clean": "concurrently \"npm run client:sass:index:clean\" \"npm run client:sass:angular:clean\"", - "client:tsc": "cd client && npm run tsc", - "client:tsc:watch": "cd client && npm run tsc:w", - "client:tsc:clean": "cd client && find angular -regextype posix-egrep -regex \".*\\.(js|map)$\" -exec rm -f {} \\;", - "dev": "npm run build && NODE_ENV=test concurrently \"npm run livereload\" \"npm run client:tsc:watch\" \"npm run client:sass:watch\" \"npm start\"", + "build": "npm run build:client", + "build:client": "SCRIPTY_PARALLEL=true scripty", + "build:client:sass": "scripty", + "build:client:tsc": "scripty", + "clean": "SCRIPTY_PARALLEL=true scripty", + "clean:client": "SCRIPTY_PARALLEL=true scripty", + "clean:client:sass": "scripty", + "clean:client:tsc": "scripty", + "clean:server:test": "scripty", + "watch:client": "SCRIPTY_PARALLEL=true scripty", + "watch:client:sass": "scripty", + "watch:client:tsc": "scripty", + "danger:clean:server": "scripty", + "danger:clean:modules": "scripty", + "play": "scripty", + "dev": "scripty", "livereload": "livereload ./client", "start": "node server", - "test": "cd client && npm test && cd .. && standard && mocha server/tests", + "test": "scripty", + "help": "scripty", "postinstall": "cd client && npm install" }, "dependencies": { @@ -73,6 +75,7 @@ "mocha": "^2.3.3", "node-livereload": "^0.6.0", "node-sass": "^3.4.2", + "scripty": "^1.5.0", "standard": "^6.0.1", "supertest": "^1.1.0" }, -- cgit v1.2.3