@commercetools-frontend/application-cli 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +9 -0
  3. package/cli/dist/commercetools-frontend-application-cli-cli.cjs.d.ts +2 -0
  4. package/cli/dist/commercetools-frontend-application-cli-cli.cjs.d.ts.map +1 -0
  5. package/cli/dist/commercetools-frontend-application-cli-cli.cjs.dev.js +725 -0
  6. package/cli/dist/commercetools-frontend-application-cli-cli.cjs.js +7 -0
  7. package/cli/dist/commercetools-frontend-application-cli-cli.cjs.prod.js +725 -0
  8. package/cli/dist/commercetools-frontend-application-cli-cli.esm.js +699 -0
  9. package/cli/package.json +4 -0
  10. package/dist/declarations/src/cli.d.ts +2 -0
  11. package/dist/declarations/src/commands/compile-deployments.d.ts +3 -0
  12. package/dist/declarations/src/commands/compile-menu.d.ts +3 -0
  13. package/dist/declarations/src/commands/create-version.d.ts +3 -0
  14. package/dist/declarations/src/commands/validate-menu.d.ts +5 -0
  15. package/dist/declarations/src/schema.d.ts +228 -0
  16. package/dist/declarations/src/types.d.ts +92 -0
  17. package/dist/declarations/src/utils/create-application-assets-upload-script.d.ts +3 -0
  18. package/dist/declarations/src/utils/create-application-index-upload-script.d.ts +3 -0
  19. package/dist/declarations/src/utils/get-application-directory.d.ts +2 -0
  20. package/dist/declarations/src/utils/is-ci.d.ts +2 -0
  21. package/dist/declarations/src/utils/load-dotenv-files.d.ts +5 -0
  22. package/dist/declarations/src/utils/resolve-in-application.d.ts +2 -0
  23. package/package.json +31 -13
  24. package/src/bin/cli.js +0 -100
  25. package/src/commands/compile-deployments.js +0 -283
  26. package/src/commands/compile-menu.js +0 -126
  27. package/src/commands/create-version.js +0 -43
  28. package/src/commands/validate-menu.js +0 -33
  29. package/src/commands/validate-menu.spec.js +0 -43
  30. package/src/schema.js +0 -112
  31. package/src/utils/create-application-assets-upload-script.js +0 -62
  32. package/src/utils/create-application-index-upload-script.js +0 -41
  33. package/src/utils/get-application-directory.js +0 -7
  34. package/src/utils/is-ci.js +0 -5
  35. package/src/utils/load-dotenv-files.js +0 -48
  36. package/src/utils/resolve-in-application.js +0 -8
package/README.md CHANGED
@@ -46,7 +46,7 @@ The above configuration would compile for two environments in `gcp-production-us
46
46
  - upload-assets-merchant-center-asia.sh
47
47
  ```
48
48
 
49
- 1. The `upload-index.sh` and `upload-assets-<bucket>.sh` scripts are generated pre-configured bash scripts for uploading the `application.html` and static assets to the respective storage bucket using `gsutil`.
49
+ 1. The `upload-index.sh` and `upload-assets-<bucket>.sh` scripts are generated pre-configured bash scripts for uploading the `application.html` and static assets to the respective storage bucket using `gcloud storage`.
50
50
  2. The `public` folder contains shared static assets for all environments.
51
51
  3. The `application.html` references the static assets from its respective environment's bucket
52
52
 
package/bin/cli.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // eslint-disable-next-line import/extensions
4
+ const { run } = require('@commercetools-frontend/application-cli/cli');
5
+
6
+ run().catch((error) => {
7
+ console.error(error.message || error.stack || error);
8
+ process.exit(1);
9
+ });
@@ -0,0 +1,2 @@
1
+ export * from "../../dist/declarations/src/cli";
2
+ //# sourceMappingURL=commercetools-frontend-application-cli-cli.cjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commercetools-frontend-application-cli-cli.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/cli.d.ts"],"names":[],"mappings":"AAAA"}