Skip to content

Commit 78a0837

Browse files
committed
Added default files
1 parent e3fec0a commit 78a0837

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

src/stubs/package.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "app",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"devDependencies": {
12+
"autoprefixer": "^10.4.14",
13+
"codeigniter-vite-plugin": "^0.0.2",
14+
"postcss": "^8.4.31",
15+
"tailwindcss": "^3.3.3",
16+
"vite": "^4.3.2"
17+
}
18+
}

src/stubs/postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

src/stubs/resources/css/app.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

src/stubs/resources/js/app.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/**
2+
* Placeholder File
3+
*/

src/stubs/tailwind.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: [
4+
"./app/Views/**/*.php",
5+
"./resources/**/*.js",
6+
"./resources/**/*.vue",
7+
],
8+
theme: {
9+
extend: {},
10+
},
11+
plugins: [],
12+
};

src/stubs/vite.config.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from "vite";
2+
import vue from "@vitejs/plugin-vue";
3+
import codeigniter from "codeigniter-vite-plugin";
4+
5+
export default defineConfig(() => {
6+
return {
7+
plugins: [
8+
codeigniter({
9+
input: ["resources/css/app.css", "resources/js/app.js"],
10+
refresh: true,
11+
}),
12+
vue({
13+
template: {
14+
transformAssetUrls: {
15+
base: null,
16+
includeAbsolute: false,
17+
},
18+
},
19+
}),
20+
],
21+
};
22+
});

0 commit comments

Comments
 (0)