Skip to content

Commit

Permalink
Add default js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Feb 9, 2024
1 parent f63d40a commit eaf50a6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build --watch"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.4.14",
"laravel-vite-plugin": "^0.7.2",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2",
"vite": "^4.0.0"
},
"dependencies": {
"alpinejs": "^3.13.5",
"laravel-precognition-alpine": "^0.5.4",
"swiper": "^5.2.0"
}
}
7 changes: 6 additions & 1 deletion resources/js/site.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import Alpine from 'alpinejs'
import Precognition from 'laravel-precognition-alpine';
import Swiper from 'swiper';
import 'swiper/css/swiper.css';

window.Alpine = Alpine
window.Alpine = Alpine;
window.Swiper = Swiper;

Alpine.plugin(Precognition);
Alpine.start();
1 change: 1 addition & 0 deletions starter-kit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export_paths:
- .env.thoughtco
- .editorconfig
- package.json
- README.md
- content
- app/Caching
Expand Down

0 comments on commit eaf50a6

Please sign in to comment.