You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logErrors: true, // should only enable this in dev enviroments for debugging
112
123
components: {
113
124
//
114
-
},
115
-
startAlpine: false,
116
-
logErrors: true// should only enable this in dev enviroments for debugging
117
-
}); // pass the Alpine object explicity if you aren't following the default convention
125
+
}
126
+
});
118
127
119
128
window.Alpine.start();
120
129
```
121
-
If you aren't following the default convention of defining `window.Alpine` after importing Alpine
122
-
just pass it after your options object:
130
+
If you aren't following the default convention of defining `window.Alpine` after importing Alpine,
131
+
just pass it as the second argument to the `AlpineComponents.bootstrap()` call:
123
132
```typescript
124
133
importAlpinefrom'alpinejs';
125
134
@@ -129,10 +138,10 @@ import {AlpineComponents} from '@nxtlvlsoftware/alpine-typescript';
129
138
130
139
const isProduction = () =>false; // equivelent would be injected/definied server-side by your framework
131
140
AlpineComponents.bootstrap({
132
-
components: {
133
-
//
134
-
},
135
-
logErrors: !isProduction()
141
+
components: {
142
+
//
143
+
},
144
+
logErrors: !isProduction()
136
145
}, myAlpine);
137
146
138
147
// might break alpine or other packages by defining after init but we support it ¯\_(ツ)_/¯
@@ -469,15 +478,23 @@ The main drawback of using this library is the added compilation step needed to
469
478
Alpine is an elegant library that provides a thin layer on-top of vanilla JavaScript. Using
470
479
Alpine the way it was intended is the way to go until your list of components grows and you
471
480
need a way to organise them. If you're not already using a bundler in your project (webpack,
472
-
Vite, Rollup, etc) then this probably isn't for you.
481
+
Vite, Rollup, etc.) then this probably isn't for you.
473
482
474
483
## Contributing
475
-
476
484
#### Issues
477
-
478
485
Found a problem with this project? Make sure to open an issue on the [issue tracker](https://github.com/NxtLvLSoftware/alpine-typescript/issues)
479
486
and we'll do our best to get it sorted!
480
487
488
+
#### Pull Requests
489
+
Pull requests will be reviewed by maintainers when they are available.
490
+
491
+
Depending on the changes, maintainers might ask you to make changes to the PR to fix problems
492
+
or to improve the code. Do not delete your fork while your pull request remains open, otherwise
493
+
you won't be able to make any requested changes and the PR will end up being declined.
494
+
495
+
By proposing a pull request, you agree to your code being distributed under [this projects license](https://github.com/NxtLvlSoftware/alpine-typescript/blob/dev/LICENSE).
496
+
497
+
481
498
## License Information
482
499
483
500
[`nxtlvlsoftware/alpine-typescript`](https://github.com/NxtLvlSoftware/alpine-typescript) is open-sourced software,
0 commit comments