From 36b589c2db9e787d067039b44232e34b1e604048 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Fri, 28 Oct 2016 11:44:11 +0200 Subject: [PATCH] chore(package): various updates --- packages/xen-api/README.md | 19 ++++++++----------- packages/xen-api/package.json | 13 ++++--------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/packages/xen-api/README.md b/packages/xen-api/README.md index 7766f0bf0..94177851c 100644 --- a/packages/xen-api/README.md +++ b/packages/xen-api/README.md @@ -92,24 +92,21 @@ root@xen1.company.net> findAll({ $type: 'vm' }).length ## Development -### Installing dependencies - ``` +# Install dependencies > npm install -``` -### Compilation +# Run the tests +> npm test -The sources files are watched and automatically recompiled on changes. - -``` +# Continuously compile > npm run dev -``` -### Tests +# Continuously run the tests +> npm run dev-test -``` -> npm run test-dev +# Build for production (automatically called by npm install) +> npm run build ``` ## Contributions diff --git a/packages/xen-api/package.json b/packages/xen-api/package.json index 10cc6e099..a8d9c05f6 100644 --- a/packages/xen-api/package.json +++ b/packages/xen-api/package.json @@ -52,32 +52,27 @@ "babel-cli": "^6.8.0", "babel-eslint": "^7.0.0", "babel-plugin-lodash": "^3.2.9", - "babel-preset-babili": "^0.0.5", "babel-preset-latest": "^6.16.0", "babel-preset-stage-0": "^6.5.0", "cross-env": "^3.1.2", "dependency-check": "^2.5.1", "ghooks": "^1.2.1", + "rimraf": "^2.5.4", "standard": "^8.0.0" }, "scripts": { "build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/", + "clean": "rimraf dist/", "depcheck": "dependency-check ./package.json", "dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/", "lint": "standard", "plot": "gnuplot -p memory-test.gnu", "posttest": "npm run lint && npm run depcheck", + "prebuild": "npm run clean", + "predev": "npm run clean", "prepublish": "npm run build" }, "babel": { - "env": { - "production": { - "comments": false, - "presets": [ - "babili" - ] - } - }, "plugins": [ "lodash" ],