mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Changed examples commands
This commit is contained in:
@@ -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 <the-example-you-want-to-execute>.js
|
||||
$ cd passkit-generator;
|
||||
$ npm install;
|
||||
$ npm run example:install && npm run example:build;
|
||||
$ 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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user