Changed examples commands

This commit is contained in:
Alexander Cerutti
2021-10-18 22:20:02 +02:00
parent 2fc0bdffe9
commit 95d762f6cc
2 changed files with 6 additions and 5 deletions

View File

@@ -7,10 +7,10 @@ Express.js has been inserted as "example package" dipendency.
```sh ```sh
$ git clone https://github.com/alexandercerutti/passkit-generator.git; $ git clone https://github.com/alexandercerutti/passkit-generator.git;
$ cd passkit-generator && npm install; $ cd passkit-generator;
$ cd examples && npm install; $ npm install;
$ npm run build; $ npm run example:install && npm run example:build;
$ npm run example <the-example-you-want-to-execute>.js $ npm run example <the-example-you-want-to-execute>;
``` ```
Certificates paths in examples are linked to a folder `certificates` in the root of this project which is not provided. Certificates paths in examples are linked to a folder `certificates` in the root of this project which is not provided.

View File

@@ -7,11 +7,12 @@
"build": "npm run build:src", "build": "npm run build:src",
"build:all": "npm run build:src && npm run build:examples && npm run build:spec", "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: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", "build:spec": "rimraf \"./spec/*.!(ts)\" && npx tsc -p tsconfig.spec.json",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"test": "npm run build:spec && npx jasmine", "test": "npm run build:spec && npx jasmine",
"example": "npm run build:src && npm --prefix examples run example", "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" "example:debug": "npm run build:src && npm --prefix examples run example:debug"
}, },
"author": "Alexander Patrick Cerutti", "author": "Alexander Patrick Cerutti",