Skip to content

Commit

Permalink
Merge pull request #12 from AtidaTech/release-0.2.1
Browse files Browse the repository at this point in the history
Release 0.2.1
  • Loading branch information
fciacchi authored Oct 15, 2023
2 parents b9f5c38 + 2a175dd commit 7bded8b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This tool simplifies exporting data from Contentful to a local json file. It's e

<hr />

[✨ Features](#-features) · [💡 Installation](#-installation) · [📟 Example](#-example) · [🎹 Usage](#-usage) · [📅 ToDo](#-todo) · [👾 Contributors](#-contributors) · [🎩 Acknowledgments](#-acknowledgements) · [📄 License](#-license)
[✨ Features](#-features) · [💡 Installation](#-installation) · [📟 Example](#-example) · [🎹 Usage](#-usage) · [📅 ToDo](#-todo) · [👾 Contributors](#-contributors) · [🎩 Acknowledgments](#-acknowledgements)· [📚 Collection](#-other-scripts-in-the-same-collection) · [📄 License](#-license)

<hr />

Expand Down Expand Up @@ -128,5 +128,17 @@ I would like to express my gratitude to the following parties:
Thank you to everyone involved!
## 📚 Other Scripts in the same collection
We produce a bunch of interesting packages for Contentful. You might want to check them out:
* **Contentful Lib Helpers** ([GitHub](https://github.com/AtidaTech/contentful-lib-helpers/) and [NpmJS](https://www.npmjs.com/package/contentful-lib-helpers)): Utility Library for Contentful CMS.
* **Contentful CLI Export** ([GitHub](https://github.com/AtidaTech/contentful-cli-export/) and [NpmJS](https://www.npmjs.com/package/contentful-cli-export)): Simplifies making Backup of your Environment.
* **Contentful CLI Migrations** ([GitHub](https://github.com/AtidaTech/contentful-cli-migrations/) and [NpmJS](https://www.npmjs.com/package/contentful-cli-migrations)): Automating Contentful Migrations.
[//]: # (* **Contentful CLI Release** &#40;[GitHub]&#40;https://github.com/AtidaTech/contentful-cli-release/&#41; and [NpmJS]&#40;https://www.npmjs.com/package/contentful-cli-release&#41;&#41;: Easy Environments sync at deployment.)
[//]: # (* **Contentful CLI Sync** &#40;[GitHub]&#40;https://github.com/AtidaTech/contentful-cli-sync/&#41; and [NpmJS]&#40;https://www.npmjs.com/package/contentful-cli-sync&#41;&#41;: Contentful tool to sync data across Spaces and Environments.)
## 📄 License
This project is licensed under the [MIT License](LICENSE)
6 changes: 3 additions & 3 deletions contentful-cli-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const DEFAULT_EXPORT_DIR = 'export/'

;(async function main() {
try {
const localeWorkingDir = process.cwd()
const localWorkingDir = process.cwd()
const scriptDirectory = await getDirNamePath()

const envValues = await getEnvValues(localeWorkingDir, scriptDirectory)
const envValues = await getEnvValues(localWorkingDir, scriptDirectory)

const cmsManagementToken =
envValues?.CMS_MANAGEMENT_TOKEN ?? PLACEHOLDER_MANAGEMENT_TOKEN
Expand All @@ -21,7 +21,7 @@ const DEFAULT_EXPORT_DIR = 'export/'
const cmsExportDir = envValues?.CMS_EXPORT_DIR ?? DEFAULT_EXPORT_DIR

const initialSettings = await parseArguments(
localeWorkingDir,
localWorkingDir,
cmsExportDir,
cmsManagementToken,
cmsSpaceId,
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentful-cli-export",
"version": "0.2.0",
"version": "0.2.1",
"type": "module",
"description": "Contentful CLI Export Environment",
"homepage": "https://github.com/AtidaTech/contentful-cli-export",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"adm-zip": "^0.5.9",
"contentful-export": ">=7.18.7",
"contentful-lib-helpers": ">=0.1.10",
"contentful-lib-helpers": ">=0.2.1",
"contentful-management": ">7.50.0",
"dateformat": "^4.6.3",
"dotenv": ">=10.0.0",
Expand Down

0 comments on commit 7bded8b

Please sign in to comment.