@ynor/ynor 1.0.4 → 1.0.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/bin/ynor.js +9 -6
- package/package.json +1 -1
package/bin/ynor.js
CHANGED
|
@@ -144,14 +144,17 @@ if (import.meta.hot) {
|
|
|
144
144
|
|
|
145
145
|
// Create App.ynor
|
|
146
146
|
console.log(chalk.dim(' 📄 Creating src/App.ynor...'));
|
|
147
|
-
const appYnor =
|
|
148
|
-
|
|
147
|
+
const appYnor = `<!-- src/App.ynor -->
|
|
148
|
+
<script>
|
|
149
|
+
this.count = 0;
|
|
149
150
|
|
|
150
|
-
function
|
|
151
|
-
count++;
|
|
152
|
-
console.log('Count:', count);
|
|
151
|
+
this.increment = function() {
|
|
152
|
+
this.count++;
|
|
153
|
+
console.log('Count:', this.count);
|
|
153
154
|
this._update();
|
|
154
|
-
}
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
console.log('🔧 App.ynor loaded with this.count:', this.count);
|
|
155
158
|
</script>
|
|
156
159
|
|
|
157
160
|
<style>
|