A Vue Tailwind Laravel UI Preset inspired by VueCLI
techrino/vue-tailwind-laravel-ui-preset is a Laravel package for a vue tailwind laravel ui preset inspired by vuecli.
It currently has 0 GitHub stars and 7 downloads on Packagist (latest version 1.0.0).
Install it with composer require techrino/vue-tailwind-laravel-ui-preset.
Discover more Laravel packages by techrino
or browse all Laravel packages to compare alternatives.
Last updated
What's inside this presets?
vue-tailwind-presetThis preset exclude any eslint configuration
vue-tailwind-eslint-presetThis preset contains eslint configuration with Vue recommended code style rule enforced.
vue-tailwind-airbnb-eslint-presetThis preset contains eslint configuration with Vue + Airbnb JavaScript code style rule enforced.
$ composer require techrino/vue-tailwind-laravel-ui-preset
⚠️ Warning
Please the command below will overwrite some configuration that are listed in
$ ▶ artisan ui vue-tailwind
Select a frontend stack:
[vue-tailwind-preset ] Vue + Tailwind CSS
[vue-tailwind-eslint-preset ] Vue + Tailwind CSS + ESLint
[vue-tailwind-airbnb-eslint-preset] Vue + Tailwind CSS + airbnb ESLint
>
# Using directional key select a choice
Once the command above is executed, these configurations file will be placed to your projects.
./tailwind.config.js
./postcss.config.js
./webpack.config.js
./webpack.mix.js
./.eslintrc.json
./.eslintignore
./resources/views
./cypress <- E2E Testing Scripts for preset
./resources/views/presets/vue-tailwind-preset
./resources/presets/vue-tailwind-preset
./public/presets <- image assets
An extra route /vue-tailwind-laravel-ui-preset will be added to routes/web.php for testing out the preset.
$ npm install
# or
$ yarn install
$ npm run dev
A webpack alias also get preconfigured in this preset, by default these alias can be used in any .vue or .js file
| Alias | Path | |:----|:---| | @ | resources/presets/vue-tailwind-preset/vue | | @css | resources/presets/vue-tailwind-preset/css |
All the alias are pre-configured in webpack.config.js you can modify it based on your usage.
module.exports =
{
resolve: {
roots: [
path.resolve(__dirname, 'resources/presets/vue-tailwind-preset/vue/'),
],
extensions: [ '.js', '.vue', '.scss', '.css'],
alias: {
"@": `${__dirname}/resources/presets/vue-tailwind-preset/vue`,
"@css": `${__dirname}/resources/presets/vue-tailwind-preset/css`,
},
modules: [
'node_modules',
]
}
};
If you are using vue-tailwind-eslint-preset don't forget to update the alias in .eslintrc.json at settings section
{
"settings": {
"import/resolver": {
"alias": {
"map": [
["@", "./resources/presets/vue-tailwind-preset/vue"],
["@css", "./resources/presets/vue-tailwind-preset/css"]
],
"extensions": [".js", ".vue"]
}
}
}
}