@tryghost/signup-form 0.0.1 → 0.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 CHANGED
@@ -9,9 +9,15 @@ Embed a Ghost signup form on any site.
9
9
  - Run `yarn` in Ghost monorepo root
10
10
  - Run `yarn` in this directory
11
11
 
12
- ### Running the development version
12
+ ### Running via Ghost `yarn dev` in root folder
13
13
 
14
- Run `yarn dev` to start the development server to test/develop the form standalone.
14
+ You can automatically start the signup-form dev server when developing Ghost by running Ghost (in root folder) via `yarn dev --all`. This will only build the production build, without the demo site.
15
+
16
+ Running via `yarn dev --all --signup` or `yarn dev --signup` will also serve the demo site on `http://localhost:6173`.
17
+
18
+ ### Running the development version only
19
+
20
+ Run `yarn dev` (in package folder) to start the development server to test/develop the form standalone.
15
21
  - This will generate a demo site on http://localhost:6173
16
22
  - This will build and watch the production build and host it on http://localhost:6174/signup-form.min.js (different port!)
17
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/signup-form",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,15 +18,16 @@
18
18
  },
19
19
  "scripts": {
20
20
  "dev": "concurrently \"vite --port 6173\" \"vite preview -l silent\" \"vite build --watch\"",
21
+ "preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"",
21
22
  "dev:test": "vite build && vite preview --port 6175",
22
23
  "build": "tsc && vite build",
24
+ "prebuild": "yarn workspace @tryghost/i18n build",
23
25
  "lint": "yarn run lint:js",
24
26
  "lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test",
25
27
  "test:unit": "yarn build",
26
28
  "test:e2e": "NODE_OPTIONS='--experimental-specifier-resolution=node --no-warnings' VITE_TEST=true playwright test",
27
29
  "test:slowmo": "TIMEOUT=100000 PLAYWRIGHT_SLOWMO=100 yarn test:e2e --headed",
28
30
  "test:e2e:full": "ALL_BROWSERS=1 yarn test:e2e",
29
- "preview": "vite preview",
30
31
  "storybook": "storybook dev -p 6006",
31
32
  "build-storybook": "storybook build",
32
33
  "preship": "yarn lint",
@@ -40,13 +41,13 @@
40
41
  },
41
42
  "devDependencies": {
42
43
  "@playwright/test": "1.34.3",
43
- "@storybook/addon-essentials": "7.0.15",
44
- "@storybook/addon-interactions": "7.0.15",
45
- "@storybook/addon-links": "7.0.15",
44
+ "@storybook/addon-essentials": "7.0.18",
45
+ "@storybook/addon-interactions": "7.0.18",
46
+ "@storybook/addon-links": "7.0.18",
46
47
  "@storybook/addon-styling": "1.0.6",
47
- "@storybook/blocks": "7.0.15",
48
- "@storybook/react": "7.0.15",
49
- "@storybook/react-vite": "7.0.15",
48
+ "@storybook/blocks": "7.0.18",
49
+ "@storybook/react": "7.0.18",
50
+ "@storybook/react-vite": "7.0.18",
50
51
  "@storybook/testing-library": "0.1.0",
51
52
  "@tailwindcss/line-clamp": "0.4.4",
52
53
  "@types/react": "18.0.28",
@@ -55,24 +56,25 @@
55
56
  "@typescript-eslint/parser": "5.57.1",
56
57
  "@vitejs/plugin-react": "4.0.0",
57
58
  "autoprefixer": "10.4.14",
58
- "concurrently": "8.0.1",
59
+ "concurrently": "8.1.0",
59
60
  "eslint": "8.38.0",
60
61
  "eslint-config-react-app": "7.0.1",
61
- "eslint-plugin-ghost": "2.18.0",
62
+ "eslint-plugin-ghost": "3.1.0",
62
63
  "eslint-plugin-react": "7.32.2",
63
64
  "eslint-plugin-react-hooks": "4.6.0",
64
65
  "eslint-plugin-react-refresh": "0.3.4",
65
66
  "eslint-plugin-tailwindcss": "3.11.0",
66
- "postcss": "8.4.23",
67
+ "postcss": "8.4.24",
67
68
  "postcss-import": "^15.1.0",
68
69
  "prop-types": "15.8.1",
69
70
  "rollup-plugin-node-builtins": "2.1.2",
70
- "storybook": "7.0.15",
71
+ "storybook": "7.0.18",
71
72
  "stylelint": "15.6.1",
72
73
  "tailwindcss": "3.3.2",
73
- "typescript": "5.0.4",
74
- "vite": "4.3.8",
74
+ "typescript": "5.1.3",
75
+ "vite": "4.3.9",
76
+ "vite-plugin-commonjs": "0.7.1",
75
77
  "vite-plugin-svgr": "3.2.0",
76
- "vitest": "0.31.1"
78
+ "vitest": "0.31.4"
77
79
  }
78
80
  }