Skip to content

Commit d1896f2

Browse files
authored
build: move to monorepo (#27)
1 parent adb530e commit d1896f2

File tree

32 files changed

+2532
-36093
lines changed

32 files changed

+2532
-36093
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- name: Install Dependencies
1919
uses: ./.github/actions/install-deps
2020

21+
- name: Run Build
22+
run: npm run build
23+
2124
- name: Run Lint
2225
run: npm run lint
2326

.github/workflows/test-actions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
experiments: |-
3939
pages_panel:true
4040
editor_v2:false
41-
e_nested_atomic_repeaters:false
4241
templates: |-
4342
elementor-templates
4443

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tmp/
77
.lighthouseci/
88
.wp-env.json
99
.lighthouserc.json
10+
.turbo
11+
packages/**/dist
1012

1113
*.log
1214
*.map

actions/run-lighthouse-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ inputs:
1919

2020
runs:
2121
using: node20
22-
main: ./dist/index.cjs
22+
main: ./dist/index.js

actions/run-lighthouse-tests/dist/index.cjs renamed to actions/run-lighthouse-tests/dist/index.js

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/run-lighthouse-tests/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
getBooleanInput,
99
getMapInput,
1010
getNumberInput,
11-
} from '../inputs';
12-
import { setOutput } from '../outputs';
11+
setOutput,
12+
} from '@elementor-editor-github-actions/utils';
1313

1414
const LHCI_VERSION = '0.14.x';
1515
const OUTPUT_DIR = path.resolve(process.cwd(), './.lhci');
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "@elementor-editor-github-actions/run-lighthouse-tests",
3+
"author": "Elementor Team",
4+
"license": "GPL-3.0-or-later",
5+
"private": true,
6+
"scripts": {
7+
"build": "tsup --config ./tsup.config.ts",
8+
"dev": "npm run build -- --watch"
9+
},
10+
"dependencies": {
11+
"@elementor-editor-github-actions/utils": "*",
12+
"@actions/core": "^1.11.1",
13+
"@actions/exec": "^1.1.1",
14+
"fs-extra": "^11.3.0",
15+
"zod": "^3.24.2"
16+
},
17+
"devDependencies": {
18+
"tsup": "^8.4.0",
19+
"@types/fs-extra": "^11.0.4"
20+
}
21+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsup';
2+
3+
export default defineConfig({
4+
entry: ['index.ts'],
5+
outDir: 'dist',
6+
format: 'cjs',
7+
noExternal: [/.+/],
8+
platform: 'node',
9+
minify: true,
10+
clean: true,
11+
});

actions/setup-elementor-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ inputs:
1414
description: Elementor experiments to enable or disable, separated by new lines (e.g. `pages_panel:true \n editor_v2:false \n e_nested_atomic_repeaters:false`)
1515
runs:
1616
using: node20
17-
main: ./dist/index.cjs
17+
main: ./dist/index.js

actions/setup-elementor-env/dist/index.cjs renamed to actions/setup-elementor-env/dist/index.js

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)