create-coralite 0.43.3 → 0.43.5
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/package.json +7 -1
- package/templates/css/package.json +1 -1
- package/templates/css/src/components/coralite-counter.html +3 -0
- package/templates/css/src/css/styles.css +1 -1
- package/templates/scss/package.json +1 -1
- package/templates/scss/src/components/coralite-counter.html +3 -0
- package/templates/scss/src/scss/_font.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-coralite",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.5",
|
|
4
4
|
"description": "Coralite scaffolding script",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-coralite": "bin/index.js",
|
|
@@ -40,5 +40,11 @@
|
|
|
40
40
|
"@clack/prompts": "^0.11.0",
|
|
41
41
|
"commander": "^13.1.0",
|
|
42
42
|
"kleur": "^4.1.5"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@playwright/test": "^1.61.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test:e2e": "playwright test"
|
|
43
49
|
}
|
|
44
50
|
}
|
|
@@ -44,10 +44,13 @@
|
|
|
44
44
|
const button = refs('count-button')
|
|
45
45
|
|
|
46
46
|
button.addEventListener('click', async () => {
|
|
47
|
+
button.textContent = 'Count is loading....'
|
|
48
|
+
|
|
47
49
|
const { default: confetti } = await import('https://esm.sh/canvas-confetti@latest')
|
|
48
50
|
|
|
49
51
|
// Coralite automatically patches the {{ count }} token in the template.
|
|
50
52
|
state.count += state.step
|
|
53
|
+
button.textContent = `Count is ${state.count}`
|
|
51
54
|
|
|
52
55
|
// Explode confetti :)
|
|
53
56
|
confetti()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Imports */
|
|
2
|
-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=TikTok+Sans:
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=TikTok+Sans:wght@300..900&display=swap');
|
|
3
3
|
|
|
4
4
|
/* Variables */
|
|
5
5
|
:root {
|
|
@@ -44,10 +44,13 @@
|
|
|
44
44
|
const button = refs('count-button')
|
|
45
45
|
|
|
46
46
|
button.addEventListener('click', async () => {
|
|
47
|
+
button.textContent = 'Count is loading....'
|
|
48
|
+
|
|
47
49
|
const { default: confetti } = await import('https://esm.sh/canvas-confetti@latest')
|
|
48
50
|
|
|
49
51
|
// Coralite automatically patches the {{ count }} token in the template.
|
|
50
52
|
state.count += state.step
|
|
53
|
+
button.textContent = `Count is ${state.count}`
|
|
51
54
|
|
|
52
55
|
// Explode confetti :)
|
|
53
56
|
confetti()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=TikTok+Sans:
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=TikTok+Sans:wght@300..900&display=swap');
|