Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 2, 2023
1 parent da5a1d1 commit 4bf64c2
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 126 deletions.
2 changes: 1 addition & 1 deletion packages/create-monkey/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-monkey",
"version": "1.34.0",
"version": "1.35.0",
"description": "create-monkey",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-monkey/template-empty-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-empty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"devDependencies": {
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
10 changes: 5 additions & 5 deletions packages/create-monkey/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^4.0.2",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
10 changes: 5 additions & 5 deletions packages/create-monkey/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^4.0.2",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
6 changes: 3 additions & 3 deletions packages/create-monkey/template-solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},
"devDependencies": {
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0",
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0",
"vite-plugin-solid": "^2.7.0"
},
"dependencies": {
"solid-js": "^1.7.7"
"solid-js": "^1.7.8"
}
}
6 changes: 3 additions & 3 deletions packages/create-monkey/template-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"preview": "vite preview"
},
"devDependencies": {
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0",
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0",
"vite-plugin-solid": "^2.7.0"
},
"dependencies": {
"solid-js": "^1.7.7"
"solid-js": "^1.7.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
}
let src_url_equal_anchor;
function src_url_equal(element_src, url) {
if (element_src === url)
return true;
if (!src_url_equal_anchor) {
src_url_equal_anchor = document.createElement("a");
}
src_url_equal_anchor.href = url;
return element_src === src_url_equal_anchor.href;
}
function is_empty(obj) {
return Object.keys(obj).length === 0;
}
Expand Down Expand Up @@ -405,13 +395,6 @@
function create_fragment(ctx) {
let main;
let div0;
let a0;
let img0;
let img0_src_value;
let t0;
let a1;
let img1;
let img1_src_value;
let t1;
let h1;
let t3;
Expand All @@ -427,11 +410,7 @@
c() {
main = element("main");
div0 = element("div");
a0 = element("a");
img0 = element("img");
t0 = space();
a1 = element("a");
img1 = element("img");
div0.innerHTML = `<a href="https://vitejs.dev" target="_blank" rel="noreferrer"><img src="${viteLogo}" class="logo svelte-c9fbf7" alt="Vite Logo"/></a> <a href="https://svelte.dev" target="_blank" rel="noreferrer"><img src="${svelteLogo}" class="logo svelte svelte-c9fbf7" alt="Svelte Logo"/></a>`;
t1 = space();
h1 = element("h1");
h1.textContent = "Vite + Svelte";
Expand All @@ -444,31 +423,12 @@
t8 = space();
p1 = element("p");
p1.textContent = "Click on the Vite and Svelte logos to learn more";
if (!src_url_equal(img0.src, img0_src_value = viteLogo))
attr(img0, "src", img0_src_value);
attr(img0, "class", "logo svelte-c9fbf7");
attr(img0, "alt", "Vite Logo");
attr(a0, "href", "https://vitejs.dev");
attr(a0, "target", "_blank");
attr(a0, "rel", "noreferrer");
if (!src_url_equal(img1.src, img1_src_value = svelteLogo))
attr(img1, "src", img1_src_value);
attr(img1, "class", "logo svelte svelte-c9fbf7");
attr(img1, "alt", "Svelte Logo");
attr(a1, "href", "https://svelte.dev");
attr(a1, "target", "_blank");
attr(a1, "rel", "noreferrer");
attr(div1, "class", "card");
attr(p1, "class", "read-the-docs svelte-c9fbf7");
},
m(target, anchor) {
insert(target, main, anchor);
append(main, div0);
append(div0, a0);
append(a0, img0);
append(div0, t0);
append(div0, a1);
append(a1, img1);
append(main, t1);
append(main, h1);
append(main, t3);
Expand Down
12 changes: 6 additions & 6 deletions packages/create-monkey/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@sveltejs/vite-plugin-svelte": "^2.4.3",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
"svelte": "^4.1.2",
"svelte-check": "^3.4.6",
"svelte-preprocess": "^5.0.4",
"tslib": "^2.6.0",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
}
let src_url_equal_anchor;
function src_url_equal(element_src, url) {
if (element_src === url)
return true;
if (!src_url_equal_anchor) {
src_url_equal_anchor = document.createElement("a");
}
src_url_equal_anchor.href = url;
return element_src === src_url_equal_anchor.href;
}
function is_empty(obj) {
return Object.keys(obj).length === 0;
}
Expand Down Expand Up @@ -405,13 +395,6 @@
function create_fragment(ctx) {
let main;
let div0;
let a0;
let img0;
let img0_src_value;
let t0;
let a1;
let img1;
let img1_src_value;
let t1;
let h1;
let t3;
Expand All @@ -427,11 +410,7 @@
c() {
main = element("main");
div0 = element("div");
a0 = element("a");
img0 = element("img");
t0 = space();
a1 = element("a");
img1 = element("img");
div0.innerHTML = `<a href="https://vitejs.dev" target="_blank" rel="noreferrer"><img src="${viteLogo}" class="logo svelte-c9fbf7" alt="Vite Logo"/></a> <a href="https://svelte.dev" target="_blank" rel="noreferrer"><img src="${svelteLogo}" class="logo svelte svelte-c9fbf7" alt="Svelte Logo"/></a>`;
t1 = space();
h1 = element("h1");
h1.textContent = "Vite + Svelte";
Expand All @@ -444,31 +423,12 @@
t8 = space();
p1 = element("p");
p1.textContent = "Click on the Vite and Svelte logos to learn more";
if (!src_url_equal(img0.src, img0_src_value = viteLogo))
attr(img0, "src", img0_src_value);
attr(img0, "class", "logo svelte-c9fbf7");
attr(img0, "alt", "Vite Logo");
attr(a0, "href", "https://vitejs.dev");
attr(a0, "target", "_blank");
attr(a0, "rel", "noreferrer");
if (!src_url_equal(img1.src, img1_src_value = svelteLogo))
attr(img1, "src", img1_src_value);
attr(img1, "class", "logo svelte svelte-c9fbf7");
attr(img1, "alt", "Svelte Logo");
attr(a1, "href", "https://svelte.dev");
attr(a1, "target", "_blank");
attr(a1, "rel", "noreferrer");
attr(div1, "class", "card");
attr(p1, "class", "read-the-docs svelte-c9fbf7");
},
m(target, anchor) {
insert(target, main, anchor);
append(main, div0);
append(div0, a0);
append(a0, img0);
append(div0, t0);
append(div0, a1);
append(a1, img1);
append(main, t1);
append(main, h1);
append(main, t3);
Expand Down
8 changes: 4 additions & 4 deletions packages/create-monkey/template-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "2.4.2",
"svelte": "^4.0.5",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"@sveltejs/vite-plugin-svelte": "2.4.3",
"svelte": "^4.1.2",
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"devDependencies": {
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}
6 changes: 3 additions & 3 deletions packages/create-monkey/template-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0",
"vue-tsc": "^1.8.4"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0",
"vue-tsc": "^1.8.8"
}
}
4 changes: 2 additions & 2 deletions packages/create-monkey/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"vite": "^4.4.2",
"vite-plugin-monkey": "^3.3.0"
"vite": "^4.4.8",
"vite-plugin-monkey": "^3.4.0"
}
}

0 comments on commit 4bf64c2

Please sign in to comment.