@plasmicapp/cli 0.1.184 → 0.1.185

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 CHANGED
@@ -1,16 +1,19 @@
1
- Public plasmic cli for syncing designs to local code.
1
+ Plasmic CLI for syncing Plasmic designs down into your local repo as generated React code.
2
2
 
3
- Install
4
- =======
3
+ Plasmic is the visual builder for React. Learn more at <https://plasmic.app>.
5
4
 
6
- `yarn global add @plasmicapp/cli`
5
+ # Install
7
6
 
8
- Usage
9
- =====
7
+ ```bash
8
+ npm install -g @plasmicapp/cli
9
+ ```
10
+
11
+ # Usage
12
+
13
+ See <https://docs.plasmic.app/learn/codegen-guide/> for the full docs to get started with Plasmic codegen.
10
14
 
11
15
  `plasmic init` creates the initial plasmic.json file, pointing to your local dev host.
12
16
 
13
17
  `plasmic sync --projects ...` allows you to sync all components in the specified projects
14
- down as code files to your current folder. Once you've run `plasmic init`, you can run
18
+ down as code files to your current folder. Once you've run `plasmic init`, you can run
15
19
  `plasmic sync` from any subfolder of the folder with the `plasmic.json` file.
16
-
@@ -27,7 +27,7 @@ function detectNextJs() {
27
27
  }
28
28
  exports.detectNextJs = detectNextJs;
29
29
  function detectGatsby() {
30
- return findup_sync_1.default("gatsby-config.js");
30
+ return findup_sync_1.default("gatsby-config.js") || findup_sync_1.default("gatsby-config.ts");
31
31
  }
32
32
  exports.detectGatsby = detectGatsby;
33
33
  function detectCreateReactApp() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/cli",
3
- "version": "0.1.184",
3
+ "version": "0.1.185",
4
4
  "description": "plasmic cli for syncing local code with Plasmic designs",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -16,7 +16,7 @@
16
16
  "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
17
17
  "build": "bash build.sh",
18
18
  "plasmic": "ts-node src/index.ts",
19
- "prepare": "yarn build"
19
+ "prepare": "if-env PREPARE_NO_BUILD=true || yarn build"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@babel/preset-typescript": "^7.12.1",
@@ -26,7 +26,7 @@ export function detectNextJs() {
26
26
  }
27
27
 
28
28
  export function detectGatsby() {
29
- return findupSync("gatsby-config.js");
29
+ return findupSync("gatsby-config.js") || findupSync("gatsby-config.ts");
30
30
  }
31
31
 
32
32
  export function detectCreateReactApp() {