From a2bf334e6ee9f6a8ee6982d091bcb4e40a9b8418 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Tue, 13 Sep 2016 09:49:48 -0700 Subject: [PATCH] chore(benchpress): update package.json and add publish script --- modules/@angular/benchpress/package.json | 8 +++----- modules/@angular/benchpress/publish.sh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100755 modules/@angular/benchpress/publish.sh diff --git a/modules/@angular/benchpress/package.json b/modules/@angular/benchpress/package.json index c5c46e6600..3dda814d10 100644 --- a/modules/@angular/benchpress/package.json +++ b/modules/@angular/benchpress/package.json @@ -1,15 +1,13 @@ { "name": "@angular/benchpress", - "version": "0.0.0-PLACEHOLDER", + "version": "0.1.0", "description": "Benchpress - a framework for e2e performance tests", "main": "index.js", "typings": "index.d.ts", "dependencies": { - "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/core": "^2.0.0-rc.7", "reflect-metadata": "^0.1.2", - "rxjs": "5.0.0-beta.12" - }, - "optionalDependencies": { + "rxjs": "5.0.0-beta.12", "jpm": "1.1.4", "firefox-profile": "0.4.0", "selenium-webdriver": "^2.53.3" diff --git a/modules/@angular/benchpress/publish.sh b/modules/@angular/benchpress/publish.sh new file mode 100755 index 0000000000..be33c0034f --- /dev/null +++ b/modules/@angular/benchpress/publish.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -ex + +cd $(dirname $0)/../../.. +ROOTDIR=$(pwd) +SRCDIR=${ROOTDIR}/modules/@angular/benchpress +DESTDIR=${ROOTDIR}/dist/packages-dist/benchpress + +rm -fr ${DESTDIR} + +echo "====== BUILDING... =====" +./build.sh --packages=core,benchpress --bundle=false + +echo "====== PUBLISHING: ${DESTDIR} =====" +npm publish ${DESTDIR} --access public