Skip to content

Commit f6e4c43

Browse files
committed
1 parent 91642f4 commit f6e4c43

Some content is hidden

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

42 files changed

+482
-722
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# v1.39.0
2-
3-
## Features
1+
# What's Changed
42

53
- update template dependency

packages/create-monkey/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-monkey",
3-
"version": "1.42.0",
3+
"version": "1.43.0",
44
"description": "create-monkey",
55
"main": "index.js",
66
"type": "module",

packages/create-monkey/template-empty-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"devDependencies": {
1212
"typescript": "^5.9.2",
1313
"vite": "^7.1.3",
14-
"vite-plugin-monkey": "^7.0.0"
14+
"vite-plugin-monkey": "^7.1.1"
1515
}
1616
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/// <reference types="vite/client" />
22
/// <reference types="vite-plugin-monkey/client" />
33
//// <reference types="vite-plugin-monkey/global" />
4+
/// <reference types="vite-plugin-monkey/style" />

packages/create-monkey/template-empty/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
},
1111
"devDependencies": {
1212
"vite": "^7.1.3",
13-
"vite-plugin-monkey": "^7.0.0"
13+
"vite-plugin-monkey": "^7.1.1"
1414
}
1515
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/// <reference types="vite/client" />
22
/// <reference types="vite-plugin-monkey/client" />
33
//// <reference types="vite-plugin-monkey/global" />
4+
/// <reference types="vite-plugin-monkey/style" />

packages/create-monkey/template-preact-ts/dist/vite-preact-ts-starter.user.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
(function (preact) {
1212
'use strict';
1313

14-
const d$1=new Set;const o$1 = async e=>{d$1.has(e)||(d$1.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):document.head.appendChild(document.createElement("style")).append(t);})(e));};
15-
16-
o$1(" #app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} ");
14+
const d$1=new Set;const importCSS = async e=>{d$1.has(e)||(d$1.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):document.head.appendChild(document.createElement("style")).append(t);})(e));};
1715

1816
var f$1 = 0;
1917
function u$1(e2, t2, n, o2, i2, u2) {
@@ -132,30 +130,34 @@
132130
return "function" == typeof t2 ? t2(n) : t2;
133131
}
134132
const preactLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='27.68'%20height='32'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20296'%3e%3cpath%20fill='%23673AB8'%20d='m128%200l128%2073.9v147.8l-128%2073.9L0%20221.7V73.9z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M34.865%20220.478c17.016%2021.78%2071.095%205.185%20122.15-34.704c51.055-39.888%2080.24-88.345%2063.224-110.126c-17.017-21.78-71.095-5.184-122.15%2034.704c-51.055%2039.89-80.24%2088.346-63.224%20110.126Zm7.27-5.68c-5.644-7.222-3.178-21.402%207.573-39.253c11.322-18.797%2030.541-39.548%2054.06-57.923c23.52-18.375%2048.303-32.004%2069.281-38.442c19.922-6.113%2034.277-5.075%2039.92%202.148c5.644%207.223%203.178%2021.403-7.573%2039.254c-11.322%2018.797-30.541%2039.547-54.06%2057.923c-23.52%2018.375-48.304%2032.004-69.281%2038.441c-19.922%206.114-34.277%205.076-39.92-2.147Z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M220.239%20220.478c17.017-21.78-12.169-70.237-63.224-110.126C105.96%2070.464%2051.88%2053.868%2034.865%2075.648c-17.017%2021.78%2012.169%2070.238%2063.224%20110.126c51.055%2039.889%20105.133%2056.485%20122.15%2034.704Zm-7.27-5.68c-5.643%207.224-19.998%208.262-39.92%202.148c-20.978-6.437-45.761-20.066-69.28-38.441c-23.52-18.376-42.74-39.126-54.06-57.923c-10.752-17.851-13.218-32.03-7.575-39.254c5.644-7.223%2019.999-8.261%2039.92-2.148c20.978%206.438%2045.762%2020.067%2069.281%2038.442c23.52%2018.375%2042.739%2039.126%2054.06%2057.923c10.752%2017.85%2013.218%2032.03%207.574%2039.254Z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M127.552%20167.667c10.827%200%2019.603-8.777%2019.603-19.604c0-10.826-8.776-19.603-19.603-19.603c-10.827%200-19.604%208.777-19.604%2019.603c0%2010.827%208.777%2019.604%2019.604%2019.604Z'%3e%3c/path%3e%3c/svg%3e";
133+
const appCss = "#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}";
134+
importCSS(appCss);
135135
function App() {
136136
const [count, setCount] = d(0);
137-
return /* @__PURE__ */ u$1(preact.Fragment, { children: [
138-
/* @__PURE__ */ u$1("div", { children: [
139-
/* @__PURE__ */ u$1("a", { href: "https://vitejs.dev", target: "_blank", children: /* @__PURE__ */ u$1("img", { src: preactLogo, class: "logo", alt: "Vite logo" }) }),
140-
/* @__PURE__ */ u$1("a", { href: "https://preactjs.com", target: "_blank", children: /* @__PURE__ */ u$1("img", { src: preactLogo, class: "logo preact", alt: "Preact logo" }) })
137+
return u$1(preact.Fragment, { children: [
138+
u$1("div", { children: [
139+
u$1("a", { href: "https://vitejs.dev", target: "_blank", children: u$1("img", { src: preactLogo, class: "logo", alt: "Vite logo" }) }),
140+
u$1("a", { href: "https://preactjs.com", target: "_blank", children: u$1("img", { src: preactLogo, class: "logo preact", alt: "Preact logo" }) })
141141
] }),
142-
/* @__PURE__ */ u$1("h1", { children: "Vite + Preact" }),
143-
/* @__PURE__ */ u$1("div", { class: "card", children: [
144-
/* @__PURE__ */ u$1("button", { onClick: () => setCount((count2) => count2 + 1), children: [
142+
u$1("h1", { children: "Vite + Preact" }),
143+
u$1("div", { class: "card", children: [
144+
u$1("button", { onClick: () => setCount((count2) => count2 + 1), children: [
145145
"count is ",
146146
count
147147
] }),
148-
/* @__PURE__ */ u$1("p", { children: [
148+
u$1("p", { children: [
149149
"Edit ",
150-
/* @__PURE__ */ u$1("code", { children: "src/app.tsx" }),
150+
u$1("code", { children: "src/app.tsx" }),
151151
" and save to test HMR"
152152
] })
153153
] }),
154-
/* @__PURE__ */ u$1("p", { class: "read-the-docs", children: "Click on the Vite and Preact logos to learn more" })
154+
u$1("p", { class: "read-the-docs", children: "Click on the Vite and Preact logos to learn more" })
155155
] });
156156
}
157+
const indexCss = ":root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}";
158+
importCSS(indexCss);
157159
preact.render(
158-
/* @__PURE__ */ u$1(App, {}),
160+
u$1(App, {}),
159161
(() => {
160162
const app = document.createElement("div");
161163
document.body.append(app);

packages/create-monkey/template-preact-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"@preact/preset-vite": "^2.10.2",
1616
"typescript": "^5.9.2",
1717
"vite": "^7.1.3",
18-
"vite-plugin-monkey": "^7.0.0"
18+
"vite-plugin-monkey": "^7.1.1"
1919
}
2020
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/// <reference types="vite/client" />
22
/// <reference types="vite-plugin-monkey/client" />
33
//// <reference types="vite-plugin-monkey/global" />
4+
/// <reference types="vite-plugin-monkey/style" />

packages/create-monkey/template-preact/dist/vite-preact-starter.user.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
(function (preact) {
1212
'use strict';
1313

14-
const d$1=new Set;const o$1 = async e=>{d$1.has(e)||(d$1.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):document.head.appendChild(document.createElement("style")).append(t);})(e));};
15-
16-
o$1(" #app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} ");
14+
const d$1=new Set;const importCSS = async e=>{d$1.has(e)||(d$1.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):document.head.appendChild(document.createElement("style")).append(t);})(e));};
1715

1816
var f$1 = 0;
1917
function u$1(e2, t2, n, o2, i2, u2) {
@@ -132,31 +130,35 @@
132130
return "function" == typeof t2 ? t2(n) : t2;
133131
}
134132
const preactLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='27.68'%20height='32'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20296'%3e%3cpath%20fill='%23673AB8'%20d='m128%200l128%2073.9v147.8l-128%2073.9L0%20221.7V73.9z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M34.865%20220.478c17.016%2021.78%2071.095%205.185%20122.15-34.704c51.055-39.888%2080.24-88.345%2063.224-110.126c-17.017-21.78-71.095-5.184-122.15%2034.704c-51.055%2039.89-80.24%2088.346-63.224%20110.126Zm7.27-5.68c-5.644-7.222-3.178-21.402%207.573-39.253c11.322-18.797%2030.541-39.548%2054.06-57.923c23.52-18.375%2048.303-32.004%2069.281-38.442c19.922-6.113%2034.277-5.075%2039.92%202.148c5.644%207.223%203.178%2021.403-7.573%2039.254c-11.322%2018.797-30.541%2039.547-54.06%2057.923c-23.52%2018.375-48.304%2032.004-69.281%2038.441c-19.922%206.114-34.277%205.076-39.92-2.147Z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M220.239%20220.478c17.017-21.78-12.169-70.237-63.224-110.126C105.96%2070.464%2051.88%2053.868%2034.865%2075.648c-17.017%2021.78%2012.169%2070.238%2063.224%20110.126c51.055%2039.889%20105.133%2056.485%20122.15%2034.704Zm-7.27-5.68c-5.643%207.224-19.998%208.262-39.92%202.148c-20.978-6.437-45.761-20.066-69.28-38.441c-23.52-18.376-42.74-39.126-54.06-57.923c-10.752-17.851-13.218-32.03-7.575-39.254c5.644-7.223%2019.999-8.261%2039.92-2.148c20.978%206.438%2045.762%2020.067%2069.281%2038.442c23.52%2018.375%2042.739%2039.126%2054.06%2057.923c10.752%2017.85%2013.218%2032.03%207.574%2039.254Z'%3e%3c/path%3e%3cpath%20fill='%23FFF'%20d='M127.552%20167.667c10.827%200%2019.603-8.777%2019.603-19.604c0-10.826-8.776-19.603-19.603-19.603c-10.827%200-19.604%208.777-19.604%2019.603c0%2010.827%208.777%2019.604%2019.604%2019.604Z'%3e%3c/path%3e%3c/svg%3e";
133+
const appCss = "#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.preact:hover{filter:drop-shadow(0 0 2em #673ab8aa)}.card{padding:2em}.read-the-docs{color:#888}";
134+
importCSS(appCss);
135135
const viteLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='31.88'%20height='32'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20257'%3e%3cdefs%3e%3clinearGradient%20id='IconifyId1813088fe1fbc01fb466'%20x1='-.828%25'%20x2='57.636%25'%20y1='7.652%25'%20y2='78.411%25'%3e%3cstop%20offset='0%25'%20stop-color='%2341D1FF'%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23BD34FE'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='IconifyId1813088fe1fbc01fb467'%20x1='43.376%25'%20x2='50.316%25'%20y1='2.242%25'%20y2='89.03%25'%3e%3cstop%20offset='0%25'%20stop-color='%23FFEA83'%3e%3c/stop%3e%3cstop%20offset='8.333%25'%20stop-color='%23FFDD35'%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23FFA800'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23IconifyId1813088fe1fbc01fb466)'%20d='M255.153%2037.938L134.897%20252.976c-2.483%204.44-8.862%204.466-11.382.048L.875%2037.958c-2.746-4.814%201.371-10.646%206.827-9.67l120.385%2021.517a6.537%206.537%200%200%200%202.322-.004l117.867-21.483c5.438-.991%209.574%204.796%206.877%209.62Z'%3e%3c/path%3e%3cpath%20fill='url(%23IconifyId1813088fe1fbc01fb467)'%20d='M185.432.063L96.44%2017.501a3.268%203.268%200%200%200-2.634%203.014l-5.474%2092.456a3.268%203.268%200%200%200%203.997%203.378l24.777-5.718c2.318-.535%204.413%201.507%203.936%203.838l-7.361%2036.047c-.495%202.426%201.782%204.5%204.151%203.78l15.304-4.649c2.372-.72%204.652%201.36%204.15%203.788l-11.698%2056.621c-.732%203.542%203.979%205.473%205.943%202.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505%204.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z'%3e%3c/path%3e%3c/svg%3e";
136136
function App() {
137137
const [count, setCount] = d(0);
138-
return /* @__PURE__ */ u$1(preact.Fragment, { children: [
139-
/* @__PURE__ */ u$1("div", { children: [
140-
/* @__PURE__ */ u$1("a", { href: "https://vitejs.dev", target: "_blank", children: /* @__PURE__ */ u$1("img", { src: viteLogo, class: "logo", alt: "Vite logo" }) }),
141-
/* @__PURE__ */ u$1("a", { href: "https://preactjs.com", target: "_blank", children: /* @__PURE__ */ u$1("img", { src: preactLogo, class: "logo preact", alt: "Preact logo" }) })
138+
return u$1(preact.Fragment, { children: [
139+
u$1("div", { children: [
140+
u$1("a", { href: "https://vitejs.dev", target: "_blank", children: u$1("img", { src: viteLogo, class: "logo", alt: "Vite logo" }) }),
141+
u$1("a", { href: "https://preactjs.com", target: "_blank", children: u$1("img", { src: preactLogo, class: "logo preact", alt: "Preact logo" }) })
142142
] }),
143-
/* @__PURE__ */ u$1("h1", { children: "Vite + Preact" }),
144-
/* @__PURE__ */ u$1("div", { class: "card", children: [
145-
/* @__PURE__ */ u$1("button", { onClick: () => setCount((count2) => count2 + 1), children: [
143+
u$1("h1", { children: "Vite + Preact" }),
144+
u$1("div", { class: "card", children: [
145+
u$1("button", { onClick: () => setCount((count2) => count2 + 1), children: [
146146
"count is ",
147147
count
148148
] }),
149-
/* @__PURE__ */ u$1("p", { children: [
149+
u$1("p", { children: [
150150
"Edit ",
151-
/* @__PURE__ */ u$1("code", { children: "src/app.jsx" }),
151+
u$1("code", { children: "src/app.jsx" }),
152152
" and save to test HMR"
153153
] })
154154
] }),
155-
/* @__PURE__ */ u$1("p", { class: "read-the-docs", children: "Click on the Vite and Preact logos to learn more" })
155+
u$1("p", { class: "read-the-docs", children: "Click on the Vite and Preact logos to learn more" })
156156
] });
157157
}
158+
const indexCss = ":root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}";
159+
importCSS(indexCss);
158160
preact.render(
159-
/* @__PURE__ */ u$1(App, {}),
161+
u$1(App, {}),
160162
(() => {
161163
const app = document.createElement("div");
162164
document.body.append(app);

0 commit comments

Comments
 (0)