create-coralite 0.43.2 → 0.43.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-coralite",
3
- "version": "0.43.2",
3
+ "version": "0.43.4",
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
  }
@@ -9,7 +9,7 @@
9
9
  "build": "coralite-scripts build"
10
10
  },
11
11
  "devDependencies": {
12
- "coralite-scripts": "^0.43.1",
12
+ "coralite-scripts": "^0.43.2",
13
13
  "cross-env": "^10.1.0"
14
14
  }
15
15
  }
@@ -0,0 +1,3 @@
1
+ allowBuilds:
2
+ '@parcel/watcher': true
3
+ esbuild: true
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
 
37
- async data () {
37
+ server () {
38
38
  return {
39
39
  count: 0
40
40
  }
@@ -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:opsz,wght@12..36,300..900&display=swap');
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 {
@@ -9,7 +9,7 @@
9
9
  "build": "coralite-scripts build"
10
10
  },
11
11
  "devDependencies": {
12
- "coralite-scripts": "^0.43.1",
12
+ "coralite-scripts": "^0.43.2",
13
13
  "cross-env": "^10.1.0"
14
14
  }
15
15
  }
@@ -0,0 +1,3 @@
1
+ allowBuilds:
2
+ '@parcel/watcher': true
3
+ esbuild: true
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
 
37
- async data () {
37
+ server () {
38
38
  return {
39
39
  count: 0
40
40
  }
@@ -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:opsz,wght@12..36,300..900&display=swap');
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');