From 95d762f6cca4fdae0a19cfc37db443abde90b32a Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Mon, 18 Oct 2021 22:20:02 +0200 Subject: [PATCH] Changed examples commands --- examples/README.md | 8 ++++---- package.json | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/README.md b/examples/README.md index e18c4bb..7bfe2d2 100644 --- a/examples/README.md +++ b/examples/README.md @@ -7,10 +7,10 @@ Express.js has been inserted as "example package" dipendency. ```sh $ git clone https://github.com/alexandercerutti/passkit-generator.git; -$ cd passkit-generator && npm install; -$ cd examples && npm install; -$ npm run build; -$ npm run example .js +$ cd passkit-generator; +$ npm install; +$ npm run example:install && npm run example:build; +$ npm run example ; ``` Certificates paths in examples are linked to a folder `certificates` in the root of this project which is not provided. diff --git a/package.json b/package.json index cf11265..8e2ef61 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,12 @@ "build": "npm run build:src", "build:all": "npm run build:src && npm run build:examples && npm run build:spec", "build:src": "rimraf lib && npx tsc -p tsconfig.dist.json", - "build:examples": "cd examples && npm run build", "build:spec": "rimraf \"./spec/*.!(ts)\" && npx tsc -p tsconfig.spec.json", "prepublishOnly": "npm run build", "test": "npm run build:spec && npx jasmine", "example": "npm run build:src && npm --prefix examples run example", + "example:install": "npm --prefix examples install", + "example:build": "npm --prefix examples run build", "example:debug": "npm run build:src && npm --prefix examples run example:debug" }, "author": "Alexander Patrick Cerutti",