chore(benchpress): update package.json and add publish script

This commit is contained in:
Tobias Bosch 2016-09-13 09:49:48 -07:00 committed by Evan Martin
parent f8690caa98
commit a2bf334e6e
2 changed files with 19 additions and 5 deletions

View File

@ -1,15 +1,13 @@
{ {
"name": "@angular/benchpress", "name": "@angular/benchpress",
"version": "0.0.0-PLACEHOLDER", "version": "0.1.0",
"description": "Benchpress - a framework for e2e performance tests", "description": "Benchpress - a framework for e2e performance tests",
"main": "index.js", "main": "index.js",
"typings": "index.d.ts", "typings": "index.d.ts",
"dependencies": { "dependencies": {
"@angular/core": "0.0.0-PLACEHOLDER", "@angular/core": "^2.0.0-rc.7",
"reflect-metadata": "^0.1.2", "reflect-metadata": "^0.1.2",
"rxjs": "5.0.0-beta.12" "rxjs": "5.0.0-beta.12",
},
"optionalDependencies": {
"jpm": "1.1.4", "jpm": "1.1.4",
"firefox-profile": "0.4.0", "firefox-profile": "0.4.0",
"selenium-webdriver": "^2.53.3" "selenium-webdriver": "^2.53.3"

View File

@ -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