@grizzshutsdown/simpleplayer 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +12 -1
  2. package/package.json +9 -5
package/README.md CHANGED
@@ -124,12 +124,23 @@ npm install
124
124
  npm run dev
125
125
  ```
126
126
 
127
- The dev playground lives in `dev/` and imports `src/simple-player.ts` directly. Use it when changing the player itself. The production site demo is separate and runs with:
127
+ The dev playground lives in `dev/` and imports `src/simple-player.ts` directly. Use it when changing the player itself.
128
+
129
+ The hosted demo is separate from the package source. It has its own consumer install in `site/`, then imports the published package the same way a user would:
128
130
 
129
131
  ```bash
132
+ npm install --prefix site
130
133
  npm run demo
131
134
  ```
132
135
 
136
+ Cloudflare Pages uses:
137
+
138
+ ```bash
139
+ npm run build
140
+ ```
141
+
142
+ with `site-dist` as the output directory.
143
+
133
144
  Before opening a pull request, run:
134
145
 
135
146
  ```bash
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@grizzshutsdown/simpleplayer",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A simple default video player created from Grizz's portfolio for others to use.",
5
5
  "type": "module",
6
6
  "homepage": "https://grizz.fyi",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/grizzshutsdown/simpleplayer.git"
9
+ "url": "git+https://github.com/grizzshutsdown/simpleplayer.git"
10
10
  },
11
11
  "main": "./dist/simple-player.js",
12
12
  "module": "./dist/simple-player.js",
13
13
  "types": "./dist/simple-player.d.ts",
14
14
  "bin": {
15
- "simpleplayer": "./bin/install-skill.js"
15
+ "simpleplayer": "bin/install-skill.js"
16
16
  },
17
17
  "exports": {
18
18
  ".": {
@@ -30,9 +30,13 @@
30
30
  "README.md"
31
31
  ],
32
32
  "scripts": {
33
- "build": "vite build && tsc -p tsconfig.build.json && node scripts/build-site.js",
33
+ "build": "npm run build:package && npm run build:site",
34
+ "build:package": "vite build && tsc -p tsconfig.build.json",
35
+ "prebuild:site": "npm install --prefix site --package-lock=false",
36
+ "build:site": "vite build --config vite.site.config.ts",
34
37
  "dev": "vite dev dev --host 127.0.0.1 --port 5174",
35
- "demo": "vite --host 127.0.0.1"
38
+ "predemo": "npm install --prefix site --package-lock=false",
39
+ "demo": "vite --config vite.site.config.ts --host 127.0.0.1"
36
40
  },
37
41
  "keywords": [
38
42
  "video",