lucy-cli 1.0.0 → 1.0.2
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.
- package/README.md +5 -2
- package/dist/gulp/checks.js +2 -1
- package/package.json +1 -1
- package/src/gulp/checks.ts +3 -1
package/README.md
CHANGED
@@ -68,6 +68,9 @@ Lucy-CLI is designed to streamline the setup and management of TypeScript within
|
|
68
68
|
7. **Add git version during production build**
|
69
69
|
- Lucy-CLI can add the git version to the production build.
|
70
70
|
- It adds the git version to the `public/constant/env.ts` file in the public folder under the key gitTag.
|
71
|
+
7. **Use velo-sync to synchronize local collection with wix**
|
72
|
+
- Lucy-CLI can synchronize the local collection with the wix collection.
|
73
|
+
- More information can be found in the [velo-sync](https://www.npmjs.com/package/velo-sync) documentation.
|
71
74
|
|
72
75
|
## Commands & Options
|
73
76
|
|
@@ -79,7 +82,7 @@ Lucy-CLI comes with a range of commands and options to help manage your Wix Velo
|
|
79
82
|
- **`dev`**: Starts the development environment, including setting up any required services for local development.
|
80
83
|
- **`build-prod`**: Builds the project in production mode, optimizing files for deployment.
|
81
84
|
- **`prepare`**: Re-runs initialization commands, useful for setting up a pre-configured environment.
|
82
|
-
- **`sync`**: Synchronizes the
|
85
|
+
- **`velo-sync`**: Synchronizes the collections.
|
83
86
|
- **`install`**: Installs all Wix npm packages listed in the `wixpkgs.json` file in the project directory.
|
84
87
|
- **`fix`**: Runs a fix command to resolve common issues in development or production settings.
|
85
88
|
- **🦮 `docs`**: Generates documentation for the project.
|
@@ -129,7 +132,7 @@ Commands:
|
|
129
132
|
🦮 dev : Starts the development environment. This includes setting up any required services for local development.
|
130
133
|
🦮 build-prod : Builds the project in production mode, optimizing files for deployment.
|
131
134
|
🦮 prepare : Prepares the project by re-running initialization commands. Useful for setting up a pre-configured environment.
|
132
|
-
🦮 sync
|
135
|
+
🦮 velo-sync : Synchronizes the collections.
|
133
136
|
🦮 install : Installs all Wix npm packages listed in the 'wixpkgs.json' file in the project directory.
|
134
137
|
🦮 fix : Runs a fix command to resolve common issues in development or production settings.
|
135
138
|
🦮 docs : Generates documentation for the project.
|
package/dist/gulp/checks.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import * as fs from 'fs';
|
2
|
-
import
|
2
|
+
import globPkg from 'glob';
|
3
3
|
import * as path from 'path';
|
4
4
|
import gulp from 'gulp';
|
5
5
|
import ts from 'gulp-typescript';
|
6
6
|
import { blue, green, magenta, orange, red, yellow } from '../index.js';
|
7
|
+
const { glob } = globPkg;
|
7
8
|
/**
|
8
9
|
* Extracts a match from a file
|
9
10
|
* @param {string} filePath File path
|
package/package.json
CHANGED
package/src/gulp/checks.ts
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
import * as fs from 'fs';
|
2
|
-
import
|
2
|
+
import globPkg from 'glob';
|
3
|
+
|
3
4
|
import * as path from 'path';
|
4
5
|
import gulp from 'gulp';
|
5
6
|
import ts from 'gulp-typescript';
|
6
7
|
import { blue, green, magenta, orange, red, yellow } from '../index.js';
|
7
8
|
import { TaskOptions } from '../Gulpfile.js';
|
9
|
+
const { glob } = globPkg;
|
8
10
|
|
9
11
|
/**
|
10
12
|
* Extracts a match from a file
|