directus-template-cli 0.3.3 → 0.3.5

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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -3
  3. package/oclif.manifest.json +1 -1
  4. package/package.json +1 -1
  5. package/templates/agencyos/package.json +2 -2
  6. package/templates/agencyos/src/collections.json +346 -232
  7. package/templates/agencyos/src/content/block_button.json +6 -6
  8. package/templates/agencyos/src/content/block_button_group.json +11 -11
  9. package/templates/agencyos/src/content/block_columns_rows.json +6 -6
  10. package/templates/agencyos/src/content/block_cta.json +3 -3
  11. package/templates/agencyos/src/content/block_gallery_files.json +10 -10
  12. package/templates/agencyos/src/content/block_richtext.json +1 -1
  13. package/templates/agencyos/src/content/block_step_items.json +5 -5
  14. package/templates/agencyos/src/content/block_team.json +4 -4
  15. package/templates/agencyos/src/content/help_collections.json +2 -2
  16. package/templates/agencyos/src/content/inbox.json +15 -1
  17. package/templates/agencyos/src/content/navigation_items.json +76 -76
  18. package/templates/agencyos/src/content/organizations.json +2 -2
  19. package/templates/agencyos/src/content/os_activities.json +3 -3
  20. package/templates/agencyos/src/content/os_invoice_items.json +6 -6
  21. package/templates/agencyos/src/content/os_invoices.json +5 -5
  22. package/templates/agencyos/src/content/os_payment_terms.json +2 -2
  23. package/templates/agencyos/src/content/os_payments.json +1 -1
  24. package/templates/agencyos/src/content/os_projects.json +3 -3
  25. package/templates/agencyos/src/content/os_proposal_blocks.json +4 -4
  26. package/templates/agencyos/src/content/os_proposals.json +3 -3
  27. package/templates/agencyos/src/content/os_tasks.json +65 -87
  28. package/templates/agencyos/src/content/os_tax_rates.json +2 -2
  29. package/templates/agencyos/src/content/page_blocks.json +23 -23
  30. package/templates/agencyos/src/content/pages.json +7 -7
  31. package/templates/agencyos/src/content/posts.json +9 -9
  32. package/templates/agencyos/src/content/seo.json +10 -10
  33. package/templates/agencyos/src/content/testimonials.json +4 -4
  34. package/templates/agencyos/src/dashboards.json +3 -3
  35. package/templates/agencyos/src/files.json +49 -49
  36. package/templates/agencyos/src/flows.json +39 -39
  37. package/templates/agencyos/src/operations.json +74 -74
  38. package/templates/agencyos/src/panels.json +136 -132
  39. package/templates/agencyos/src/permissions.json +349 -871
  40. package/templates/agencyos/src/roles.json +4 -4
  41. package/templates/agencyos/src/schema/snapshot.json +246 -97
  42. package/templates/agencyos/src/settings.json +32 -10
  43. package/templates/agencyos/src/users.json +54 -9
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Directus Community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -7,10 +7,12 @@ A CLI tool to make applying or extracting Directus "templates" a little easier..
7
7
  - This is a pre-release. It is recommended for use on POC or demo projects only.
8
8
  - ⚠️ Known issues with using MySQL currently, please use ONLY PostgreSQL or SQLite for your database provider.
9
9
  - Templates are applied / extracted on an all or nothing basis – meaning that all the schema, content, and system settings are extracted or applied. We'd love to support more granular operations in the future. (PRs welcome 🙏)
10
- - If you are extracting or applying from a remote source, the script can take quite a while depedning on the "size" of your instance (how many collections, how many items in each collection, number and size of assets, etc). The script applies a strict rate limit of 10 requests per second using bottleneck.
10
+ - If you are extracting or applying from a remote source, the script can take quite a while depending on the "size" of your instance (how many collections, how many items in each collection, number and size of assets, etc). The script applies a strict rate limit of 10 requests per second using bottleneck.
11
11
 
12
12
  ## Usage
13
13
 
14
+ Using the @latest tag ensures you're receiving the latest version of the packaged templates with the CLI. You can review [the specific versions on NPM](https://www.npmjs.com/package/directus-template-cli) and use @{version} syntax to apply the templates included with that version.
15
+
14
16
  ### Applying a Template
15
17
 
16
18
  **To avoid potential conflicts and bad outcomes, templates can only be applied to a blank instance currently.**
@@ -21,7 +23,7 @@ A CLI tool to make applying or extracting Directus "templates" a little easier..
21
23
  4. Run the following command on the terminal and follow the prompts.
22
24
 
23
25
  ```
24
- $ npx directus-template-cli apply
26
+ $ npx directus-template-cli@latest apply
25
27
  ```
26
28
 
27
29
  You can choose from our templates bundled with the CLI or you can also choose a template from a local directory.
@@ -36,7 +38,7 @@ The CLI can also extract a template from a Directus instance so that it can be a
36
38
  4. Run the following command on the terminal and follow the prompts.
37
39
 
38
40
  ```
39
- $ npx directus-template-cli extract
41
+ $ npx directus-template-cli@latest extract
40
42
  ```
41
43
 
42
44
  ## License
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.3",
2
+ "version": "0.3.5",
3
3
  "commands": {
4
4
  "apply": {
5
5
  "id": "apply",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-template-cli",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "CLI Utility for applying templates to a Directus instance.",
5
5
  "author": "bryantgillespie @bryantgillespie",
6
6
  "bin": {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "directus-template-agencyos",
3
3
  "templateName": "AgencyOS",
4
- "version": "2.0.0",
4
+ "version": "3.0.0",
5
5
  "description": "",
6
- "author": "Bryant Gillespie",
6
+ "author": "",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "src"