Skip to content

Commit 0689218

Browse files
committed
fixed am support in export query
2 parents d72c15c + 92baaf2 commit 0689218

369 files changed

Lines changed: 55254 additions & 1532 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/dev-workflow.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ alwaysApply: true
99
## Monorepo Structure
1010

1111
### Package Organization
12-
- **11 plugin packages** under `packages/`
12+
- **12+ plugin packages** under `packages/`
13+
- `contentstack-cli-cm-regex-validate` - Regex validation for Content Type/Global Field fields (`cm:stacks:validate-regex`; npm `@contentstack/cli-cm-regex-validate`; Jest tests)
1314
- **pnpm workspaces** with `workspaces: ["packages/*"]`
1415
- **Shared dependencies**: `@contentstack/cli-command`, `@contentstack/cli-utilities`
1516
- **Build artifacts**: `lib/` directory (compiled from `src/`)

.github/config/release.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"migration": false,
1010
"seed": false,
1111
"bootstrap": false,
12-
"branches": false
12+
"branches": false,
13+
"apps-cli": false,
14+
"tsgen": false,
15+
"content-type": false,
16+
"regex-validate": false,
17+
"migrate-rte": false,
18+
"bulk-operations": false
1319
}
1420
}

.github/workflows/release-v2-beta-plugins.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,53 @@ jobs:
142142
token: ${{ secrets.NPM_TOKEN }}
143143
package: ./packages/contentstack-query-export/package.json
144144
tag: beta
145+
146+
# Content Type
147+
- name: Publishing content-type (Beta)
148+
uses: JS-DevTools/npm-publish@v3
149+
with:
150+
token: ${{ secrets.NPM_TOKEN }}
151+
package: ./packages/contentstack-content-type/package.json
152+
tag: beta
153+
154+
# Apps CLI
155+
- name: Publishing apps-cli (Beta)
156+
uses: JS-DevTools/npm-publish@v3
157+
with:
158+
token: ${{ secrets.NPM_TOKEN }}
159+
package: ./packages/contentstack-apps-cli/package.json
160+
tag: beta
161+
162+
# Tsgen
163+
- name: Publishing tsgen (Beta)
164+
uses: JS-DevTools/npm-publish@v3
165+
with:
166+
token: ${{ secrets.NPM_TOKEN }}
167+
package: ./packages/contentstack-cli-tsgen/package.json
168+
tag: beta
169+
# Regex Validate
170+
- name: Publishing regex-validate (Beta)
171+
uses: JS-DevTools/npm-publish@v3
172+
with:
173+
token: ${{ secrets.NPM_TOKEN }}
174+
package: ./packages/contentstack-cli-cm-regex-validate/package.json
175+
access: public
176+
tag: beta
177+
178+
# Migrate RTE
179+
- name: Publishing migrate-rte (Beta)
180+
uses: JS-DevTools/npm-publish@v3
181+
with:
182+
token: ${{ secrets.NPM_TOKEN }}
183+
package: ./packages/contentstack-migrate-rte/package.json
184+
access: public
185+
tag: beta
186+
187+
# Bulk Operations
188+
- name: Publishing bulk-operations (Beta)
189+
uses: JS-DevTools/npm-publish@v3
190+
with:
191+
token: ${{ secrets.NPM_TOKEN }}
192+
package: ./packages/contentstack-bulk-operations/package.json
193+
access: public
194+
tag: beta
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Tsgen Integration Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
tsgen-integration:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 10.28.0
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '22.x'
23+
cache: 'pnpm'
24+
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Build tsgen plugin
29+
run: pnpm --filter contentstack-cli-tsgen run build
30+
31+
- name: Install Contentstack CLI (v2 beta)
32+
run: npm i -g @contentstack/cli@beta
33+
34+
- name: Configure CLI region
35+
run: csdx config:set:region ${{ secrets.REGION }}
36+
37+
- name: Add delivery token
38+
run: csdx auth:tokens:add -a ${{ secrets.TOKEN_ALIAS }} --delivery -k ${{ secrets.APIKEY }} --token ${{ secrets.DELIVERYKEY }} -e ${{ secrets.ENVIRONMENT }}
39+
40+
- name: Link tsgen plugin
41+
working-directory: ./packages/contentstack-cli-tsgen
42+
run: csdx plugins:link
43+
44+
- name: Run integration tests
45+
run: pnpm --filter contentstack-cli-tsgen run test
46+
env:
47+
TOKEN_ALIAS: ${{ secrets.TOKEN_ALIAS }}
48+
49+
- name: Unlink tsgen plugin
50+
working-directory: ./packages/contentstack-cli-tsgen
51+
run: csdx plugins:unlink
52+
if: always()

.github/workflows/unit-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,23 @@ jobs:
6666
- name: Run tests for Contentstack Query Export
6767
working-directory: ./packages/contentstack-query-export
6868
run: npm run test:unit
69+
70+
- name: Run tests for Contentstack Apps CLI
71+
working-directory: ./packages/contentstack-apps-cli
72+
run: npm run test:unit:report
73+
74+
- name: Run tests for Contentstack Content Type plugin
75+
working-directory: ./packages/contentstack-content-type
76+
run: npm run test:unit
77+
78+
- name: Run tests for Contentstack Regex Validate plugin
79+
working-directory: ./packages/contentstack-cli-cm-regex-validate
80+
run: npm run test:unit
81+
82+
- name: Run tests for Contentstack Migrate RTE
83+
working-directory: ./packages/contentstack-migrate-rte
84+
run: npm test
85+
86+
- name: Run tests for Contentstack Bulk Operations
87+
working-directory: ./packages/contentstack-bulk-operations
88+
run: npm test

0 commit comments

Comments
 (0)