@tryghost/signup-form 0.3.12 → 0.3.14
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 +13 -13
- package/package.json +10 -8
- package/umd/signup-form.min.js +20 -24
- package/umd/signup-form.min.js.map +1 -1
package/README.md
CHANGED
|
@@ -6,21 +6,21 @@ Embed a Ghost signup form on any site.
|
|
|
6
6
|
|
|
7
7
|
### Pre-requisites
|
|
8
8
|
|
|
9
|
-
- Run `
|
|
10
|
-
- Run `
|
|
9
|
+
- Run `pnpm` in Ghost monorepo root
|
|
10
|
+
- Run `pnpm` in this directory
|
|
11
11
|
|
|
12
|
-
### Running via Ghost `
|
|
12
|
+
### Running via Ghost `pnpm dev` in root folder
|
|
13
13
|
|
|
14
14
|
Signup Form runs automatically when using Ghost's development command from the monorepo root:
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
pnpm dev
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
This starts all frontend apps (including Signup Form.)
|
|
20
20
|
|
|
21
21
|
### Running the development version only
|
|
22
22
|
|
|
23
|
-
Run `
|
|
23
|
+
Run `pnpm dev` (in package folder) to start the development server to test/develop the form standalone.
|
|
24
24
|
- This will generate a demo site on http://localhost:6173
|
|
25
25
|
- This will build and watch the production build and host it on http://localhost:6174/signup-form.min.js (different port!)
|
|
26
26
|
|
|
@@ -36,15 +36,15 @@ This is a monorepo package.
|
|
|
36
36
|
|
|
37
37
|
Follow the instructions for the top-level repo.
|
|
38
38
|
1. `git clone` this repo & `cd` into it as usual
|
|
39
|
-
2. Run `
|
|
39
|
+
2. Run `pnpm` to install top-level dependencies.
|
|
40
40
|
|
|
41
41
|
## Test
|
|
42
42
|
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
43
|
+
- `pnpm lint` run just eslint
|
|
44
|
+
- `pnpm test` run lint and tests
|
|
45
|
+
- `pnpm test:e2e` run e2e tests on Chromium
|
|
46
|
+
- `pnpm test:slowmo` run e2e tests visually (headed) and slower on Chromium
|
|
47
|
+
- `pnpm test:e2e:full` run e2e tests on all browsers
|
|
48
48
|
|
|
49
49
|
## Release
|
|
50
50
|
|
|
@@ -53,12 +53,12 @@ In either case, you need sufficient permissions to release `@tryghost` packages
|
|
|
53
53
|
|
|
54
54
|
### Patch release
|
|
55
55
|
|
|
56
|
-
1. Run `
|
|
56
|
+
1. Run `pnpm ship` and select a patch version when prompted
|
|
57
57
|
2. Merge the release commit to `main`
|
|
58
58
|
|
|
59
59
|
### Minor / major release
|
|
60
60
|
|
|
61
|
-
1. Run `
|
|
61
|
+
1. Run `pnpm ship` and select a minor or major version when prompted
|
|
62
62
|
2. Merge the release commit to `main`
|
|
63
63
|
3. Wait until a new version of Ghost is released
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/signup-form",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "https://github.com/TryGhost/Ghost",
|
|
6
6
|
"author": "Ghost Foundation",
|
|
@@ -18,19 +18,20 @@
|
|
|
18
18
|
"preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"",
|
|
19
19
|
"dev:test": "vite build && vite preview --port 6175",
|
|
20
20
|
"build": "tsc && vite build",
|
|
21
|
-
"lint": "
|
|
21
|
+
"lint": "pnpm run lint:js",
|
|
22
22
|
"lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test",
|
|
23
|
-
"test:unit": "
|
|
23
|
+
"test:unit": "pnpm build",
|
|
24
24
|
"test:e2e": "NODE_OPTIONS='--experimental-specifier-resolution=node --no-warnings' VITE_TEST=true playwright test",
|
|
25
|
-
"test:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=100
|
|
26
|
-
"test:e2e:full": "ALL_BROWSERS=1
|
|
25
|
+
"test:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=100 pnpm test:e2e --headed",
|
|
26
|
+
"test:e2e:full": "ALL_BROWSERS=1 pnpm test:e2e",
|
|
27
27
|
"storybook": "storybook dev -p 6006",
|
|
28
28
|
"build-storybook": "storybook build",
|
|
29
|
-
"preship": "
|
|
29
|
+
"preship": "pnpm lint",
|
|
30
30
|
"ship": "node ../../.github/scripts/release-apps.js",
|
|
31
|
-
"prepublishOnly": "
|
|
31
|
+
"prepublishOnly": "pnpm build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@tryghost/debug": "0.1.40",
|
|
34
35
|
"react": "18.3.1",
|
|
35
36
|
"react-dom": "18.3.1"
|
|
36
37
|
},
|
|
@@ -45,12 +46,13 @@
|
|
|
45
46
|
"@storybook/react-vite": "8.6.14",
|
|
46
47
|
"@storybook/testing-library": "0.2.2",
|
|
47
48
|
"@tailwindcss/line-clamp": "0.4.4",
|
|
48
|
-
"@tryghost/i18n": "
|
|
49
|
+
"@tryghost/i18n": "workspace:*",
|
|
49
50
|
"@types/react": "18.3.28",
|
|
50
51
|
"@types/react-dom": "18.3.7",
|
|
51
52
|
"@vitejs/plugin-react": "4.7.0",
|
|
52
53
|
"autoprefixer": "10.4.21",
|
|
53
54
|
"concurrently": "8.2.2",
|
|
55
|
+
"eslint": "catalog:",
|
|
54
56
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
55
57
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
56
58
|
"eslint-plugin-tailwindcss": "3.18.2",
|