intlayer-cli 4.0.0 → 4.0.3

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 (2) hide show
  1. package/README.md +31 -54
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,91 +1,68 @@
1
1
  <div align="center">
2
- <a href="https://www.npmjs.com/package/intlayer">
2
+ <a href="https://www.npmjs.com/package/intlayer-cli">
3
3
  <img src="https://raw.githubusercontent.com/aymericzip/intlayer/572ae9c9acafb74307b81530c1931a8e98990aef/docs/assets/logo.png" width="500" alt="intlayer" />
4
4
  </a>
5
5
  </div>
6
6
 
7
7
  <div align="center">
8
- <a href="https://www.npmjs.com/package/intlayer">
8
+ <a href="https://www.npmjs.com/package/intlayer-cli">
9
9
  <img alt="npm" src="https://img.shields.io/npm/v/intlayer.svg?labelColor=49516F&color=8994BC" />
10
10
  </a>
11
- <a href="https://npmjs.org/package/intlayer">
11
+ <a href="https://npmjs.org/package/intlayer-cli">
12
12
  <img alt="downloads" src="https://badgen.net/npm/dm/intlayer?labelColor=49516F&color=8994BC" />
13
13
  </a>
14
- <a href="https://npmjs.org/package/intlayer">
14
+ <a href="https://npmjs.org/package/intlayer-cli">
15
15
  <img alt="types included" src="https://badgen.net/npm/types/intlayer?labelColor=49516F&color=8994BC"
16
16
  />
17
17
  </a>
18
18
  </div>
19
19
 
20
- # Intlayer: Next-Level Content Management in JavaScript
20
+ # intlayer-cli: Use the Intlayer CLI
21
21
 
22
- **Intlayer** is an internationalization library designed specifically for JavaScript developers. It allow the declaration of your content everywhere in your code. It converts declaration of multilingual content into structured dictionaries to integrate easily in your code. Using TypeScript, **Intlayer** make your development stronger and more efficient.
22
+ **Intlayer** is a suite of packages designed specifically for JavaScript developers. It is compatible with frameworks like React, React, and Express.js.
23
23
 
24
- ## Why Choose Intlayer?
24
+ The **`intlayer-cli`** package is a NPM package that consume the `@intlayer/cli` package and make it available to the `intlayer` commands line interfaces.
25
25
 
26
- - **JavaScript-Powered Content Management**: Harness the flexibility of JavaScript to define and manage your content efficiently.
27
- - **Type-Safe Environment**: Leverage TypeScript to ensure all your content definitions are precise and error-free.
28
- - **Integrated Content Files**: Keep your translations close to their respective components, enhancing maintainability and clarity.
29
- - **Simplified Setup**: Get up and running quickly with minimal configuration, especially optimized for Next.js projects.
30
- - **Server Component Support**: Perfectly suited for Next.js server components, ensuring smooth server-side rendering.
31
- - **Enhanced Routing**: Full support for Next.js app routing, adapting seamlessly to complex application structures.
26
+ > Note that this package is not needed if the [`intlayer`](https://github.com/aymericzip/intlayer/tree/main/docs/en/packages/intlayer/index.md) package is installed. In comparison to the `intlayer` package, the `intlayer-cli` package is a lighter package that only contains the CLI tool, without `@intlayer/core` dependencies.
32
27
 
33
- ### Install Package
28
+ ## Installation
34
29
 
35
- Install the necessary packages using npm:
30
+ Install the necessary package using your preferred package manager:
36
31
 
37
- ```bash
32
+ ```bash packageManager="npm"
38
33
  npm install intlayer-cli
39
34
  ```
40
35
 
41
- ```bash
42
- yarn add intlayer-cli
43
- ```
44
-
45
- ```bash
36
+ ```bash packageManager="pnpm"
46
37
  pnpm add intlayer-cli
47
38
  ```
48
39
 
49
- ## intlayer-cli package
50
-
51
- `intlayer-cli` package intend to transpile your [intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/README.md) declarations into dictionaries.
52
-
53
- This package will transpile all intlayer files, such as `src/**/*.content.{ts|js|mjs|cjs|json}`. [See how to declare your Intlayer declaration files](https://github.com/aymericzip/intlayer/blob/main/packages/intlayer/README.md)
54
-
55
- To interpret intlayer dictionaries you can interpreters, such as [react-intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/react-intlayer/README.md) [next-intlayer](https://github.com/aymericzip/intlayer/blob/main/packages/next-intlayer/README.md)
56
-
57
- ## Configuration File Support
58
-
59
- Intlayer accepts multiple configuration file formats:
60
-
61
- - `intlayer.config.ts`
62
- - `intlayer.config.js`
63
- - `intlayer.config.json`
64
- - `intlayer.config.cjs`
65
- - `intlayer.config.mjs`
66
- - `.intlayerrc`
67
-
68
- To see how to configure available locales, or other parameters, refer to the [configuration documentation here](https://github.com/aymericzip/intlayer/blob/main/docs/en/configuration.md)
40
+ ```bash packageManager="yarn"
41
+ yarn add intlayer-cli
42
+ ```
69
43
 
70
- ### Run intlayer commands
44
+ ## Usage
71
45
 
72
- To build your dictionaries, you can run the commands:
46
+ Here an example of how to use the `intlayer-cli` package:
73
47
 
74
48
  ```bash
75
49
  npx intlayer build
76
50
  ```
77
51
 
78
- or in watch mode
52
+ ## CLI commands
79
53
 
80
- ```bash
81
- npx intlayer build --watch
82
- ```
54
+ Intlayer provides a CLI tool to:
83
55
 
84
- ### Use intlayer commands in your `package.json`
56
+ - audit your content declarations and complete missing translations
57
+ - build dictionaries from your content declarations
58
+ - push and pull distant dictionaries from your CMS to your locale project
85
59
 
86
- ```json
87
- "scripts": {
88
- "transpile": "npx intlayer build",
89
- "transpile:watch": "npx intlayer build --watch"
90
- }
91
- ```
60
+ Consult [intlayer-cli](https://github.com/aymericzip/intlayer/blob/main/docs/en/intlayer_cli.md) for more information.
61
+
62
+ ## Read about Intlayer
63
+
64
+ - [Intlayer Website](https://intlayer.org)
65
+ - [Intlayer Documentation](https://intlayer.org/docs)
66
+ - [Intlayer GitHub](https://github.com/aymericzip/intlayer)
67
+
68
+ - [Ask your questions to our smart documentation](https://intlayer.org/docs/chat)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "intlayer-cli",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "private": false,
5
- "description": "IntLayer is a layer of abstraction between the business logic and the data access layer. Manage internationalization in a simple way, through TypeScript, JavaScript or JSON declaration file.",
5
+ "description": "Lightweight CLI tool for Intlayer, enabling content audits, dictionary management, and CMS sync. Ideal for JavaScript developers using React or Express.",
6
6
  "keywords": [
7
7
  "intlayer",
8
8
  "application",
@@ -59,7 +59,7 @@
59
59
  ],
60
60
  "dependencies": {
61
61
  "webpack": "^5.97.1",
62
- "@intlayer/cli": "4.0.0"
62
+ "@intlayer/cli": "4.0.3"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@changesets/changelog-github": "0.5.0",
@@ -75,8 +75,8 @@
75
75
  "typescript": "^5.7.3",
76
76
  "@utils/eslint-config": "1.0.4",
77
77
  "@utils/ts-config": "1.0.4",
78
- "@utils/ts-config-types": "1.0.4",
79
- "@utils/tsup-config": "1.0.4"
78
+ "@utils/tsup-config": "1.0.4",
79
+ "@utils/ts-config-types": "1.0.4"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=14.18"