diff --git a/packages/cozy-dataproxy/.babelrc b/packages/cozy-dataproxy-lib/.babelrc similarity index 100% rename from packages/cozy-dataproxy/.babelrc rename to packages/cozy-dataproxy-lib/.babelrc diff --git a/packages/cozy-dataproxy/.gitignore b/packages/cozy-dataproxy-lib/.gitignore similarity index 100% rename from packages/cozy-dataproxy/.gitignore rename to packages/cozy-dataproxy-lib/.gitignore diff --git a/packages/cozy-dataproxy/.npmignore b/packages/cozy-dataproxy-lib/.npmignore similarity index 100% rename from packages/cozy-dataproxy/.npmignore rename to packages/cozy-dataproxy-lib/.npmignore diff --git a/packages/cozy-dataproxy/CHANGELOG.md b/packages/cozy-dataproxy-lib/CHANGELOG.md similarity index 100% rename from packages/cozy-dataproxy/CHANGELOG.md rename to packages/cozy-dataproxy-lib/CHANGELOG.md diff --git a/packages/cozy-dataproxy/README.md b/packages/cozy-dataproxy-lib/README.md similarity index 92% rename from packages/cozy-dataproxy/README.md rename to packages/cozy-dataproxy-lib/README.md index cc57ccd964..a236e4d6d1 100644 --- a/packages/cozy-dataproxy/README.md +++ b/packages/cozy-dataproxy-lib/README.md @@ -1,4 +1,4 @@ -# Cozy-dataproxy +# Cozy-dataproxy-lib ## Concept @@ -8,7 +8,7 @@ This library is meant to be used by DataProxy apps like [cozy-web-data-proxy](ht Just run -- `yarn add cozy-dataproxy` +- `yarn add cozy-dataproxy-lib` ## API diff --git a/packages/cozy-dataproxy/package.json b/packages/cozy-dataproxy-lib/package.json similarity index 90% rename from packages/cozy-dataproxy/package.json rename to packages/cozy-dataproxy-lib/package.json index 34de6ceedb..3f380c6e83 100644 --- a/packages/cozy-dataproxy/package.json +++ b/packages/cozy-dataproxy-lib/package.json @@ -1,6 +1,6 @@ { - "name": "cozy-dataproxy", - "description": "Event-based library allowing interactions between React-Native and React applications", + "name": "cozy-dataproxy-lib", + "description": "Library meant to be by Cozy Cloud's DataProxy apps for data manipulation", "version": "1.1.0", "author": { "name": "Cozy Cloud", @@ -33,7 +33,7 @@ "files": [ "dist" ], - "homepage": "https://github.com/cozy/cozy-libs/packages/cozy-dataproxy", + "homepage": "https://github.com/cozy/cozy-libs/packages/cozy-dataproxy-lib", "keywords": [ "cozy", "cozy-libs", @@ -53,7 +53,7 @@ "repository": { "type": "git", "url": "https://github.com/cozy/cozy-libs.git", - "directory": "packages/cozy-dataproxy" + "directory": "packages/cozy-dataproxy-lib" }, "scripts": { "build": "yarn build:clean && yarn build:types && babel --extensions .ts,.tsx --ignore '**/*.spec.tsx','**/*.spec.ts','**/*.d.ts' ./src -d ./dist", diff --git a/packages/cozy-dataproxy/src/index.ts b/packages/cozy-dataproxy-lib/src/index.ts similarity index 100% rename from packages/cozy-dataproxy/src/index.ts rename to packages/cozy-dataproxy-lib/src/index.ts diff --git a/packages/cozy-dataproxy/src/search/@types/cozy-client.d.ts b/packages/cozy-dataproxy-lib/src/search/@types/cozy-client.d.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/@types/cozy-client.d.ts rename to packages/cozy-dataproxy-lib/src/search/@types/cozy-client.d.ts diff --git a/packages/cozy-dataproxy/src/search/@types/cozy-realtime.d.ts b/packages/cozy-dataproxy-lib/src/search/@types/cozy-realtime.d.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/@types/cozy-realtime.d.ts rename to packages/cozy-dataproxy-lib/src/search/@types/cozy-realtime.d.ts diff --git a/packages/cozy-dataproxy/src/search/SearchEngine.spec.js b/packages/cozy-dataproxy-lib/src/search/SearchEngine.spec.js similarity index 100% rename from packages/cozy-dataproxy/src/search/SearchEngine.spec.js rename to packages/cozy-dataproxy-lib/src/search/SearchEngine.spec.js diff --git a/packages/cozy-dataproxy/src/search/SearchEngine.ts b/packages/cozy-dataproxy-lib/src/search/SearchEngine.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/SearchEngine.ts rename to packages/cozy-dataproxy-lib/src/search/SearchEngine.ts diff --git a/packages/cozy-dataproxy/src/search/consts.ts b/packages/cozy-dataproxy-lib/src/search/consts.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/consts.ts rename to packages/cozy-dataproxy-lib/src/search/consts.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/client.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/client.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/client.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/client.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/client.ts b/packages/cozy-dataproxy-lib/src/search/helpers/client.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/client.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/client.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/getSearchEncoder.ts b/packages/cozy-dataproxy-lib/src/search/helpers/getSearchEncoder.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/getSearchEncoder.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/getSearchEncoder.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeFile.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeFile.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeFile.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeFile.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.ts diff --git a/packages/cozy-dataproxy/src/search/queries/index.ts b/packages/cozy-dataproxy-lib/src/search/queries/index.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/queries/index.ts rename to packages/cozy-dataproxy-lib/src/search/queries/index.ts diff --git a/packages/cozy-dataproxy/src/search/types.ts b/packages/cozy-dataproxy-lib/src/search/types.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/types.ts rename to packages/cozy-dataproxy-lib/src/search/types.ts diff --git a/packages/cozy-dataproxy/tests/index.ts b/packages/cozy-dataproxy-lib/tests/index.ts similarity index 100% rename from packages/cozy-dataproxy/tests/index.ts rename to packages/cozy-dataproxy-lib/tests/index.ts diff --git a/packages/cozy-dataproxy/tests/jest.config.js b/packages/cozy-dataproxy-lib/tests/jest.config.js similarity index 100% rename from packages/cozy-dataproxy/tests/jest.config.js rename to packages/cozy-dataproxy-lib/tests/jest.config.js diff --git a/packages/cozy-dataproxy/tests/jest.setup.ts b/packages/cozy-dataproxy-lib/tests/jest.setup.ts similarity index 100% rename from packages/cozy-dataproxy/tests/jest.setup.ts rename to packages/cozy-dataproxy-lib/tests/jest.setup.ts diff --git a/packages/cozy-dataproxy/tsconfig-build.json b/packages/cozy-dataproxy-lib/tsconfig-build.json similarity index 100% rename from packages/cozy-dataproxy/tsconfig-build.json rename to packages/cozy-dataproxy-lib/tsconfig-build.json diff --git a/packages/cozy-dataproxy/tsconfig.json b/packages/cozy-dataproxy-lib/tsconfig.json similarity index 100% rename from packages/cozy-dataproxy/tsconfig.json rename to packages/cozy-dataproxy-lib/tsconfig.json