Fixed package.json formatter script (#571)
* Fixed package.json formatter script Didn't work on Windows, maybe other platforms too * Added example for custom one-click-app repository
This commit is contained in:
parent
7efb5cbf2f
commit
cbab4af66b
|
|
@ -75,3 +75,5 @@ To create your own repository:
|
|||
- Run `npm run validate_apps`
|
||||
- Run `npm run build`
|
||||
- Now you can host the static content placed in `./dist` directory anywhere you want, the official repo uses github pages to publish the content. Make sure to update [CNAME](https://github.com/caprover/one-click-apps/blob/master/public/CNAME) to your own URL if you decide to do so.
|
||||
|
||||
Here is a good example: [Skayo's CapRover One-Click-Apps](https://github.com/Skayo/CapRover-One-Click-Apps)
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
"version": "1.0.0",
|
||||
"description": "One Click App Repository for CapRover",
|
||||
"scripts": {
|
||||
"formatter": "prettier --check './public/**/*.(json|yml)'",
|
||||
"formatter-write": "prettier --write './public/**/*.(json|yml)'",
|
||||
"formatter": "prettier --check \"./public/**/*.(json|yml)\"",
|
||||
"formatter-write": "prettier --write \"./public/**/*.(json|yml)\"",
|
||||
"build": "rm -rf ./dist/ && mkdir -p dist && node ./scripts/build_one_click_apps.js && node ./scripts/build_one_click_apps_from_v4.js",
|
||||
"validate_apps": "node ./scripts/validate_apps.js",
|
||||
"publish": "npm run build && ./scripts/publish-from-actions.sh"
|
||||
|
|
|
|||
Loading…
Reference in New Issue