拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-432
View File
@@ -1,432 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.11.2](https://github.com/nuxt-community/vuetify-module/compare/v1.11.1...v1.11.2) (2020-04-26)
### [1.11.1](https://github.com/nuxt-community/vuetify-module/compare/v1.11.0...v1.11.1) (2020-04-26)
### Bug Fixes
* check if preset is in presetsCDN ([#291](https://github.com/nuxt-community/vuetify-module/issues/291)) ([57a0ceb](https://github.com/nuxt-community/vuetify-module/commit/57a0ceb74551c20ca9fccf53b5083ad805e500a8))
## [1.11.0](https://github.com/nuxt-community/vuetify-module/compare/v1.10.3...v1.11.0) (2020-02-17)
### Features
* allow for list of custom fonts ([#269](https://github.com/nuxt-community/vuetify-module/issues/269)) ([3644437](https://github.com/nuxt-community/vuetify-module/commit/3644437cb01630b43aaa1898bfa352469b8faa91))
### [1.10.3](https://github.com/nuxt-community/vuetify-module/compare/v1.10.2...v1.10.3) (2020-01-30)
### Bug Fixes
* fix VuetifyLoaderOptions match type ([#273](https://github.com/nuxt-community/vuetify-module/issues/273)) ([2923943](https://github.com/nuxt-community/vuetify-module/commit/2923943a05b3940b31277ab64234535eda4c3ceb))
* use minimal vuetify import ([#267](https://github.com/nuxt-community/vuetify-module/issues/267)) ([1dffcbb](https://github.com/nuxt-community/vuetify-module/commit/1dffcbbd4fcce8bae3f9b03d6b83cf0434588790))
### [1.10.2](https://github.com/nuxt-community/vuetify-module/compare/v1.10.1...v1.10.2) (2020-01-17)
### [1.10.1](https://github.com/nuxt-community/vuetify-module/compare/v1.10.0...v1.10.1) (2020-01-15)
### Bug Fixes
* update devDependencies & fix code ([7f37ef6](https://github.com/nuxt-community/vuetify-module/commit/7f37ef64f9fc7d23fcb3a84a9ba7cfe963f3f3ca)), closes [#251](https://github.com/nuxt-community/vuetify-module/issues/251)
## [1.10.0](https://github.com/nuxt-community/vuetify-module/compare/v1.9.1...v1.10.0) (2020-01-13)
### Features
* add preset support ([#247](https://github.com/nuxt-community/vuetify-module/issues/247)) ([25d9813](https://github.com/nuxt-community/vuetify-module/commit/25d98137ded1296d1ddab9a7c4854102021bce66))
### Bug Fixes
* **deps:** bump vuetify version to latest and fix type path ([#237](https://github.com/nuxt-community/vuetify-module/issues/237)) ([b30f5db](https://github.com/nuxt-community/vuetify-module/commit/b30f5db447e74fed1871d59584eb98bbc15dceb6))
### [1.9.1](https://github.com/nuxt-community/vuetify-module/compare/v1.9.0...v1.9.1) (2019-12-05)
## [1.9.0](https://github.com/nuxt-community/vuetify-module/compare/v1.8.6...v1.9.0) (2019-10-02)
### Notes
* **Vuetify** has been bumped to **2.1 (Vanguard)**, check their [**Release notes**](https://togithub.com/vuetifyjs/vuetify/releases/v2.1.0) ! We highly recommend you to check the new [Skeleton Loader](https://vuetifyjs.com/en/components/skeleton-loaders) component 🤩
* **`dart-sass`** has been bumped to **1.23.0**, check their [**Release notes**](https://github.com/sass/dart-sass/releases/1.23.0) ! It includes the new launch of the new **Sass** module system 🤩
### [1.8.6](https://github.com/nuxt-community/vuetify-module/compare/v1.8.5...v1.8.6) (2019-09-28)
### Bug Fixes
* also prepend customVariables in scss files ([75823af](https://github.com/nuxt-community/vuetify-module/commit/75823af))
### [1.8.5](https://github.com/nuxt-community/vuetify-module/compare/v1.8.4...v1.8.5) (2019-09-17)
### [1.8.4](https://github.com/nuxt-community/vuetify-module/compare/v1.8.3...v1.8.4) (2019-09-16)
### [1.8.3](https://github.com/nuxt-community/vuetify-module/compare/v1.8.2...v1.8.3) (2019-09-10)
### Bug Fixes
* fix treeshake types for manual imports ([0b8e274](https://github.com/nuxt-community/vuetify-module/commit/0b8e274)), closes [#160](https://github.com/nuxt-community/vuetify-module/issues/160)
### [1.8.2](https://github.com/nuxt-community/vuetify-module/compare/v1.8.1...v1.8.2) (2019-09-09)
### [1.8.1](https://github.com/nuxt-community/vuetify-module/compare/v1.8.0...v1.8.1) (2019-09-09)
### Bug Fixes
* properly use indentedSyntax for sass files ([d8b7b5a](https://github.com/nuxt-community/vuetify-module/commit/d8b7b5a)), closes [#159](https://github.com/nuxt-community/vuetify-module/issues/159)
## [1.8.0](https://github.com/nuxt-community/vuetify-module/compare/v1.7.3...v1.8.0) (2019-09-08)
### Features
* seamless automatic fonts ([#157](https://github.com/nuxt-community/vuetify-module/issues/157)) ([334a343](https://github.com/nuxt-community/vuetify-module/commit/334a343))
### [1.7.3](https://github.com/nuxt-community/vuetify-module/compare/v1.7.2...v1.7.3) (2019-09-08)
### [1.7.2](https://github.com/nuxt-community/vuetify-module/compare/v1.7.1...v1.7.2) (2019-09-08)
### [1.7.1](https://github.com/nuxt-community/vuetify-module/compare/v1.7.0...v1.7.1) (2019-09-08)
### Bug Fixes
* fix templates location and publish them ([0b930e2](https://github.com/nuxt-community/vuetify-module/commit/0b930e2))
## [1.7.0](https://github.com/nuxt-community/vuetify-module/compare/v1.6.3...v1.7.0) (2019-09-08)
### [1.6.3](https://github.com/nuxt-community/vuetify-module/compare/v1.6.2...v1.6.3) (2019-09-05)
### [1.6.2](https://github.com/nuxt-community/vuetify-module/compare/v1.6.1...v1.6.2) (2019-09-03)
### Bug Fixes
* **types:** vuetify@2.0.12 types update ([#146](https://github.com/nuxt-community/vuetify-module/issues/146)) ([89c59a4](https://github.com/nuxt-community/vuetify-module/commit/89c59a4))
### [1.6.1](https://github.com/nuxt-community/vuetify-module/compare/v1.6.0...v1.6.1) (2019-08-30)
### Bug Fixes
* fix indentedSyntax issue around scss files ([9aaad72](https://github.com/nuxt-community/vuetify-module/commit/9aaad72))
## [1.6.0](https://github.com/nuxt-community/vuetify-module/compare/v1.5.0...v1.6.0) (2019-08-29)
### Notable changes
* update dependency sass-loader to v8 ([#139](https://github.com/nuxt-community/vuetify-module/pull/139)) ([08bff6a](https://github.com/nuxt-community/vuetify-module/commit/08bff6a))
### Bug Fixes
* remove duplicate import of main.sass ([259e0ee](https://github.com/nuxt-community/vuetify-module/commit/259e0ee))
## [1.5.0](https://github.com/nuxt-community/vuetify-module/compare/v1.4.0...v1.5.0) (2019-08-27)
### Bug Fixes
* fix missing comma for manual imports ([#132](https://github.com/nuxt-community/vuetify-module/issues/132)) ([069566b](https://github.com/nuxt-community/vuetify-module/commit/069566b)), closes [#130](https://github.com/nuxt-community/vuetify-module/issues/130) [/github.com/nuxt-community/vuetify-module/pull/132#discussion_r318289697](https://github.com/nuxt-community//github.com/nuxt-community/vuetify-module/pull/132/issues/discussion_r318289697)
### Features
* vuetify-loader options ([#134](https://github.com/nuxt-community/vuetify-module/issues/134)) ([22e82c5](https://github.com/nuxt-community/vuetify-module/commit/22e82c5))
## [1.4.0](https://github.com/nuxt-community/vuetify-module/compare/v1.3.3...v1.4.0) (2019-08-24)
### Features
* manual import of components ([#125](https://github.com/nuxt-community/vuetify-module/issues/125)) ([71c63f5](https://github.com/nuxt-community/vuetify-module/commit/71c63f5)), closes [#110](https://github.com/nuxt-community/vuetify-module/issues/110)
### [1.3.3](https://github.com/nuxt-community/vuetify-module/compare/v1.3.2...v1.3.3) (2019-08-23)
### [1.3.2](https://github.com/nuxt-community/vuetify-module/compare/v1.3.1...v1.3.2) (2019-08-21)
### [1.3.1](https://github.com/nuxt-community/vuetify-module/compare/v1.3.0...v1.3.1) (2019-08-20)
## [1.3.0](https://github.com/nuxt-community/vuetify-module/compare/v1.2.1...v1.3.0) (2019-08-20)
### Features
* **types:** provide nuxt 2.9 compatible types ([#119](https://github.com/nuxt-community/vuetify-module/issues/119)) ([1587e0f](https://github.com/nuxt-community/vuetify-module/commit/1587e0f))
### [1.2.2](https://github.com/nuxt-community/vuetify-module/compare/v1.2.1...v1.2.2) (2019-08-15)
### [1.2.1](https://github.com/nuxt-community/vuetify-module/compare/v1.2.0...v1.2.1) (2019-08-06)
## [1.2.0](https://github.com/nuxt-community/vuetify-module/compare/v1.1.2...v1.2.0) (2019-08-05)
### Features
* optionsPath + function behavior ([#99](https://github.com/nuxt-community/vuetify-module/issues/99)) ([96177a4](https://github.com/nuxt-community/vuetify-module/commit/96177a4))
### [1.1.2](https://github.com/nuxt-community/vuetify-module/compare/v1.1.1...v1.1.2) (2019-08-05)
### Bug Fixes
* fix vuetify transpilation ([#98](https://github.com/nuxt-community/vuetify-module/issues/98)) ([8075afb](https://github.com/nuxt-community/vuetify-module/commit/8075afb))
### [1.1.1](https://github.com/nuxt-community/vuetify-module/compare/v1.1.0...v1.1.1) (2019-08-01)
## [1.1.0](https://github.com/nuxt-community/vuetify-module/compare/v1.0.2...v1.1.0) (2019-07-30)
### Features
* defaultAssets.icons all icons providers support ([#85](https://github.com/nuxt-community/vuetify-module/issues/85)) ([d285b3b](https://github.com/nuxt-community/vuetify-module/commit/d285b3b))
* vuetifyOptions through options file ([#86](https://github.com/nuxt-community/vuetify-module/issues/86)) ([78495a3](https://github.com/nuxt-community/vuetify-module/commit/78495a3))
### [1.0.2](https://github.com/nuxt-community/vuetify-module/compare/v1.0.1...v1.0.2) (2019-07-29)
### [1.0.1](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0...v1.0.1) (2019-07-25)
## [1.0.0](https://github.com/nuxt-community/vuetify-module/compare/v0.5.7...v1.0.0) (2019-07-23)
### Features
- Upgrade to [Vuetify 2](https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0)
- Implements `ctx.$vuetify`
- Custom SASS variables
- TypeScript typings
### BREAKING CHANGES
Nuxt Module for Vuetify 2 brings lot of breaking changes
Overall you'll need to follow [Vuetify 2 Upgrade guide](https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide) to correctly update your layouts, pages & components that were related to Vuetify in your project.
Around the Nuxt module itself, it still passes options to Vuetify, but the custom options that change the behavior of what does the module for you have changed, you can find the new options in the **README** file.
## [1.0.0-beta.8](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2019-07-22)
## [1.0.0-beta.7](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2019-07-18)
## [1.0.0-beta.6](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2019-07-11)
## [1.0.0-beta.5](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2019-07-03)
## [1.0.0-beta.4](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2019-06-26)
## [1.0.0-beta.3](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2019-06-19)
## [1.0.0-beta.2](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2019-06-11)
## [1.0.0-beta.1](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2019-06-06)
## [1.0.0-beta.0](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.6...v1.0.0-beta.0) (2019-06-04)
### Bug Fixes
* apply vuetify vars only for sass files ([#25](https://github.com/nuxt-community/vuetify-module/issues/25)) ([f8f0392](https://github.com/nuxt-community/vuetify-module/commit/f8f0392))
* don't override sassLoader data ([3c1c1e6](https://github.com/nuxt-community/vuetify-module/commit/3c1c1e6))
* fix tooltip activator behavior ([feeacd8](https://github.com/nuxt-community/vuetify-module/commit/feeacd8))
* use theme primary color for toolbar ([3bc02cc](https://github.com/nuxt-community/vuetify-module/commit/3bc02cc))
### Features
* customVariables ([d2b3b8a](https://github.com/nuxt-community/vuetify-module/commit/d2b3b8a))
* roboto font display swap ([feac192](https://github.com/nuxt-community/vuetify-module/commit/feac192))
# [1.0.0-alpha.6](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2019-05-18)
# [1.0.0-alpha.5](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2019-05-02)
# [1.0.0-alpha.4](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2019-04-18)
### Bug Fixes
* always setup sass loader options ([1709f2b](https://github.com/nuxt-community/vuetify-module/commit/1709f2b))
# [1.0.0-alpha.3](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2019-04-18)
### Bug Fixes
* hotfix when module options is not set in config ([4cfa0ab](https://github.com/nuxt-community/vuetify-module/commit/4cfa0ab))
# [1.0.0-alpha.2](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2019-04-18)
# [1.0.0-alpha.1](https://github.com/nuxt-community/vuetify-module/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2019-04-17)
# [1.0.0-alpha.0](https://github.com/nuxt-community/vuetify-module/compare/v0.5.5...v1.0.0-alpha.0) (2019-04-10)
### Features
* upgrade to new vuetify 2 spec ([6ff1910](https://github.com/nuxt-community/vuetify-module/commit/6ff1910))
### BREAKING CHANGES
* Removed `css`, implemented `assets` option
### [0.5.7](https://github.com/nuxt-community/vuetify-module/compare/v0.5.6...v0.5.7) (2019-07-22)
### [0.5.6](https://github.com/nuxt-community/vuetify-module/compare/v0.5.5...v0.5.6) (2019-06-04)
<a name="0.5.5"></a>
## [0.5.5](https://github.com/nuxt-community/vuetify-module/compare/v0.5.4...v0.5.5) (2019-02-14)
<a name="0.0.1"></a>
## 0.0.1 (2019-02-08)
### Bug Fixes
* **readme:** Typo ([5496ade](https://github.com/nuxt-community/vuetify-module/commit/5496ade))
* run module in build:before hook ([4676a34](https://github.com/nuxt-community/vuetify-module/commit/4676a34)), closes [#1](https://github.com/nuxt-community/vuetify-module/issues/1)
<a name="0.5.0"></a>
# [0.5.0](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.4.3...@nuxtjs/vuetify@0.5.0) (2018-12-19)
### Bug Fixes
* **deps:** update all non-major dependencies ([#231](https://github.com/nuxt/modules/issues/231)) ([345418b](https://github.com/nuxt/modules/commit/345418b))
### Features
* **vuetify:** add tree-shaking option ([#242](https://github.com/nuxt/modules/issues/242)) ([3e25477](https://github.com/nuxt/modules/commit/3e25477))
<a name="0.4.3"></a>
## [0.4.3](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.4.2...@nuxtjs/vuetify@0.4.3) (2018-10-01)
**Note:** Version bump only for package @nuxtjs/vuetify
<a name="0.4.2"></a>
## [0.4.2](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.4.1...@nuxtjs/vuetify@0.4.2) (2018-04-27)
**Note:** Version bump only for package @nuxtjs/vuetify
<a name="0.4.1"></a>
## [0.4.1](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.4.0...@nuxtjs/vuetify@0.4.1) (2018-03-05)
**Note:** Version bump only for package @nuxtjs/vuetify
<a name="0.4.0"></a>
# [0.4.0](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.3.1...@nuxtjs/vuetify@0.4.0) (2017-12-07)
### Features
* **vuetify:** bump vuetify version to 1.0.0-alpha ([#175](https://github.com/nuxt/modules/issues/175)) ([f2b948a](https://github.com/nuxt/modules/commit/f2b948a))
<a name="0.3.1"></a>
## [0.3.1](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.3.0...@nuxtjs/vuetify@0.3.1) (2017-11-24)
**Note:** Version bump only for package @nuxtjs/vuetify
<a name="0.3.0"></a>
# [0.3.0](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.2.0...@nuxtjs/vuetify@0.3.0) (2017-11-24)
### Features
* **vuetify:** allow passing options to vuetify plugin ([f0826f1](https://github.com/nuxt/modules/commit/f0826f1))
<a name="0.2.0"></a>
# [0.2.0](https://github.com/nuxt/modules/compare/@nuxtjs/vuetify@0.1.1...@nuxtjs/vuetify@0.2.0) (2017-11-20)
### Features
* upgrade dependencies ([52f3572](https://github.com/nuxt/modules/commit/52f3572))
<a name="0.1.1"></a>
## 0.1.1 (2017-10-05)
<a name="1.0.1"></a>
## 1.0.1 (2017-06-07)
-23
View File
@@ -1,23 +0,0 @@
MIT License
Copyright (c) Nuxt Community
- Pooya Parsa ([@pi0](https://github.com/pi0))
- Kevin Marrec ([@kevinmarrec](https://github.com/kevinmarrec))
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-240
View File
@@ -1,240 +0,0 @@
<p align="center">
<img src="https://user-images.githubusercontent.com/904724/59509947-c14eca80-8eb2-11e9-807c-14e7cc72eecc.png" alt="nuxt-tailwindcss" width="500"/>
</p>
<p align="center">
<a href="https://npmjs.com/package/@nuxtjs/vuetify"><img src="https://img.shields.io/npm/v/@nuxtjs/vuetify.svg?style=flat-square" alt="npm downloads"></a>
<a href="https://npmjs.com/package/@nuxtjs/vuetify"><img src="https://img.shields.io/npm/dt/@nuxtjs/vuetify.svg?style=flat-square" alt="npm version"></a>
<a href="https://circleci.com/gh/nuxt-community/vuetify-module"><img src="https://img.shields.io/circleci/project/github/nuxt-community/vuetify-module.svg?style=flat-square" alt="circle ci"></a>
<a href="https://codecov.io/gh/nuxt-community/vuetify-module"><img src="https://img.shields.io/codecov/c/github/nuxt-community/vuetify-module.svg?style=flat-square" alt="coverage"></a>
<a href="https://www.npmjs.com/package/@nuxtjs/vuetify"><img src="https://img.shields.io/npm/l/@nuxtjs/vuetify.svg?style=flat-square" alt="License"></a>
</p>
> [Vuetify 2](https://vuetifyjs.com) module for [Nuxt.js](https://nuxtjs.org)
## Infos
- [📖 **Release Notes**](./CHANGELOG.md)
- [🏀 **Online playground**](https://codesandbox.io/s/nuxtjs-vuetify-v0k7i)
- [🛠 **Migration guide from Vuetify 1.5.x**](./MIGRATION_GUIDE.md)
- [🏷 **Module for Vuetify 1.5.x**](https://github.com/nuxt-community/vuetify-module/tree/0.x)
## Setup
1. Add `@nuxtjs/vuetify` dependency to your project
```bash
yarn add --dev @nuxtjs/vuetify # or npm install --save-dev @nuxtjs/vuetify
```
2. Add `@nuxtjs/vuetify` to the `buildModules` section of `nuxt.config.js`
:warning: If you are using Nuxt `< 2.9.0`, use `modules` instead.
```js
{
buildModules: [
// Simple usage
'@nuxtjs/vuetify',
// With options
['@nuxtjs/vuetify', { /* module options */ }]
]
}
```
### Using top level options
```js
{
buildModules: [
'@nuxtjs/vuetify'
],
vuetify: {
/* module options */
}
}
```
## Options
### `customVariables`
- Type: `Array`
- Items: `String`
- Default: `[]`
Provide a way to customize Vuetify SASS variables.
**Only works with [tree-shaking](#treeShake).**
Usage example :
```scss
// assets/variables.scss
// Variables you want to modify
$btn-border-radius: 0px;
// If you need to extend Vuetify SASS lists
$material-light: ( cards: blue );
@import '~vuetify/src/styles/styles.sass';
```
```js
// nuxt.config.js
export default {
vuetify: {
customVariables: ['~/assets/variables.scss']
}
}
```
> The list of customizable variables can be found by looking at the files [here](https://github.com/vuetifyjs/vuetify/tree/master/packages/vuetify/src/styles/settings).
### `defaultAssets`
- Type: `Object` or `Boolean`
- Default:
```js
{
font: {
family: 'Roboto'
},
icons: 'mdi'
}
```
By default, automatically handle **Roboto** font & **Material Design Icons**.
These assets are handled automatically by default to provide a zero-configuration which let you play directly with Vuetify.
`defaultAssets.font.family` automatically adds the specified font (default **Roboto**) stylesheet from official google fonts to load the font with `font-display: swap`.
If you have [nuxt-webfontloader](https://github.com/Developmint/nuxt-webfontloader) in your `modules`, it will use it automatically.
`defaultAssets.font.size` allows you to specify the root font size in your application.
:warning: If you choose a custom font family (i.e. not **Roboto**), it will automatically override Vuetify SASS variables (`$body-font-family` & `font-size-root`), but you will need [tree-shaking](#treeShake) to be enabled to have them correctly applied.
`defaultAssets.icons` automatically adds the icons stylesheet from a CDN to load all the icons (**not optimized for production**).
Here are the accepted values for this option :
| Value | Icons |
|-------|-------|
| `'mdi'` (default) | [Material Designs Icons](https://materialdesignicons.com/) ([CDN](https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css))
| `'md'` | [Material Icons](https://material.io/resources/icons/) ([CDN](https://fonts.googleapis.com/css?family=Material+Icons))
| `'fa'` | [Font Awesome 5](https://fontawesome.com/icons) ([CDN](https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@latest/css/all.min.css))
| `'fa4'` | [Font Awesome 4](https://fontawesome.com/v4.7.0/icons/) ([CDN](https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css))
| `false` | Disable auto add of the icons stylesheet
> This option (if not set to `false`) will automatically override `icons.iconfont` Vuetify option so that Vuetify components use these icons.
Please refer to [Vuetify Icons documentation](https://vuetifyjs.com/en/customization/icons) for more information about icons, notably for using only bunch of SVG icons instead of including all icons in your app.
You can also set the whole `defaultAssets` option to `false` to prevent any automatic add of these two assets.
You can read more about adding your own assets in the [Offline applications](https://github.com/nuxt-community/vuetify-module#offline-applications) section.
### `optionsPath`
- Type: `String`
Location of the Vuetify options that will be passed to Vuetify.
This file will be compiled by **webpack**, which means you'll benefit fast hot reload when changing these options, but also be able to use TypeScript without being forced to use TypeScript runtime.
```js
// nuxt.config.js
export default {
vuetify: {
optionsPath: './vuetify.options.js'
}
}
```
> Note that you can also use [Directory Aliases](https://nuxtjs.org/guide/directory-structure#aliases) like `'~/path/to/option.js'`
All vuetify options are supported, it includes :
- [**Breakpoints**](https://vuetifyjs.com/en/customization/breakpoints)
- [**Icons**](https://vuetifyjs.com/en/customization/icons)
- [**Internationalization (i18n)**](https://vuetifyjs.com/en/customization/internationalization)
- [**RTL (bidirectionality)**](https://vuetifyjs.com/en/customization/rtl)
- [**Theme**](https://vuetifyjs.com/en/customization/theme)
```js
// vuetify.options.js
export default {
breakpoint: {},
icons: {},
lang: {},
rtl: true,
theme: {}
}
```
> Notice that passing the Vuetify options directly to Module options is still supported, but it will trigger Nuxt entire rebuild if options are changed.
If you need to access Nuxt context within the options file, you need to export a function instead :
```js
// vuetify.options.js
export default function ({ app }) {
return {
lang: {
t: (key, ...params) => app.i18n.t(key, params)
}
}
}
```
### `treeShake`
- Type: `Boolean`
- Default: `process.env.NODE_ENV === 'production'`
Uses [vuetify-loader](https://github.com/vuetifyjs/vuetify-loader) to enable automatic [tree-shaking](https://vuetifyjs.com/en/customization/a-la-carte).
Enabled only for production by default.
## TypeScript
If you're using TypeScript, you'll need to add `@nuxtjs/vuetify` in your `compilerOptions` of your `tsconfig.json` :
```json
{
"compilerOptions": {
"types": [
"@types/node",
"@nuxt/vue-app",
"@nuxtjs/vuetify"
]
}
}
```
You'll then be able to have autocompletion in Context (`ctx.$vuetify`) and Vue instances (`this.$vuetify`).
## Offline applications
If you're building an application that will need to work offline (more likely a [**PWA**](https://pwa.nuxtjs.org/)), you will need to bundle your fonts and icons in your app instead of using online resources.
It means you must set [`defaultAssets`](#defaultAssets) option to `false`.
For fonts, you may leverage CSS [**@font-face**](https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp) rule with local path of your fonts. You may find the [google webfonts helper](https://google-webfonts-helper.herokuapp.com/fonts/roboto?subsets=latin) site useful for generating **@font-face** rules and sourcing replacement files for the default CDNs.
For icons, you can either use the same way than above, or leverage tree-shaken SVG libraries like [**Material Design Icons SVG**](https://github.com/Templarian/MaterialDesign-JS) or [**Font Awesome 5 SVG**](https://fontawesome.com/how-to-use/on-the-web/advanced/svg-javascript-core).
## Migration Guide from Vuetify 1.5.x
You'll find a step by step guide to upgrade from 1.5.x to 2.x [here](./MIGRATION_GUIDE.md)
## Development
- Clone this repository
- Install dependencies using `yarn install` or `npm install`
- Start development server using `yarn dev` or `npm run dev`
## License
[MIT License](./LICENSE)
Copyright (c) Nuxt Community
-3
View File
@@ -1,3 +0,0 @@
import { ModuleThis } from '@nuxt/types/config/module';
import { Options } from './options';
export default function setupBuild(this: ModuleThis, options: Options): void;
-42
View File
@@ -1,42 +0,0 @@
import path from 'path';
import fs from 'fs';
export default function setupBuild(options) {
if (!options.treeShake) {
this.options.css.push('vuetify/dist/vuetify.css');
}
// Enable tree-shaking with VuetifyLoader (https://github.com/vuetifyjs/vuetify-loader)
if (options.treeShake) {
const VuetifyLoaderPlugin = this.nuxt.resolver.requireModule('vuetify-loader/lib/plugin');
this.options.build.transpile.push('vuetify/lib');
this.extendBuild((config) => {
config.plugins.push(new VuetifyLoaderPlugin(typeof options.treeShake === 'object' ? options.treeShake.loaderOptions : {}));
});
}
// Remove module options
const vuetifyOptions = { ...options };
delete vuetifyOptions.customVariables;
delete vuetifyOptions.defaultAssets;
delete vuetifyOptions.optionsPath;
delete vuetifyOptions.preset;
delete vuetifyOptions.treeShake;
let optionsPath = this.nuxt.resolver.resolveAlias(options.optionsPath ||
path.join(this.options.dir.app || 'app', 'vuetify', 'options.js'));
optionsPath = fs.existsSync(optionsPath) ? optionsPath : null;
// Register options template
this.addTemplate({
fileName: `vuetify/options.${optionsPath && optionsPath.endsWith('ts') ? 'ts' : 'js'}`,
src: optionsPath || path.resolve(__dirname, '../templates', 'options.js'),
options: vuetifyOptions
});
// Register plugin
this.addPlugin({
fileName: 'vuetify/plugin.js',
src: path.resolve(__dirname, '../templates', 'plugin.js'),
options: {
defaultIconPreset: options.defaultAssets && options.defaultAssets.icons,
preset: options.preset,
treeShake: options.treeShake
}
});
}
//# sourceMappingURL=build.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,MAAM,IAAI,CAAA;AAInB,MAAM,CAAC,OAAO,UAAU,UAAU,CAAoB,OAAgB;IACpE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACtB,IAAI,CAAC,OAAO,CAAC,GAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAA;KACnD;IAED,uFAAuF;IACvF,IAAI,OAAO,CAAC,SAAS,EAAE;QACrB,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAExF;QAAC,IAAI,CAAC,OAAO,CAAC,KAAM,CAAC,SAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAEjE,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE;YAC1B,MAAM,CAAC,OAAQ,CAAC,IAAI,CAAC,IAAI,mBAAmB,CAAC,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC7H,CAAC,CAAC,CAAA;KACH;IAED,wBAAwB;IACxB,MAAM,cAAc,GAAG,EAAE,GAAG,OAAO,EAAE,CAAA;IACrC,OAAO,cAAc,CAAC,eAAe,CAAA;IACrC,OAAO,cAAc,CAAC,aAAa,CAAA;IACnC,OAAO,cAAc,CAAC,WAAW,CAAA;IACjC,OAAO,cAAc,CAAC,MAAM,CAAA;IAC5B,OAAO,cAAc,CAAC,SAAS,CAAA;IAE/B,IAAI,WAAW,GAAkB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW;QAChF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAI,CAAC,GAAG,IAAI,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA;IAEvE,WAAW,GAAG,EAAE,CAAC,UAAU,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA;IAE9D,4BAA4B;IAC5B,IAAI,CAAC,WAAW,CAAC;QACf,QAAQ,EAAE,mBAAmB,WAAW,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;QACtF,GAAG,EAAE,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,YAAY,CAAC;QACzE,OAAO,EAAE,cAAc;KACxB,CAAC,CAAA;IAEF,kBAAkB;IAClB,IAAI,CAAC,SAAS,CAAC;QACb,QAAQ,EAAE,mBAAmB;QAC7B,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,WAAW,CAAC;QACzD,OAAO,EAAE;YACP,iBAAiB,EAAE,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,KAAK;YACvE,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B;KACF,CAAC,CAAA;AACJ,CAAC"}
-6
View File
@@ -1,6 +0,0 @@
import { ModuleThis } from '@nuxt/types/config/module';
export interface FontOptions {
family?: string | string[];
size?: number;
}
export default function setupFont(this: ModuleThis, options: FontOptions): void;
-28
View File
@@ -1,28 +0,0 @@
export default function setupFont(options) {
const family = `${options.family}:100,300,400,500,700,900&display=swap`;
if (this.options.modules.some(mod => mod === 'nuxt-webfontloader')) {
this.options.webfontloader = this.options.webfontloader || {};
this.options.webfontloader.google = this.options.webfontloader.google || {};
this.options.webfontloader.google.families = [...this.options.webfontloader.google.families || [], family];
}
else {
this.options.head.link.push({
rel: 'stylesheet',
type: 'text/css',
href: `https://fonts.googleapis.com/css?family=${family}`
});
}
const sass = this.options.build.loaders.sass;
// Add font-family custom variable (only if not Roboto, cause already default in Vuetify styles)
if (options.family !== 'Roboto') {
const userFontFamily = Array.isArray(options.family)
? options.family.map(x => `'${x}'`).join(', ')
: `'${options.family}'`;
sass.prependData = [`$body-font-family: ${userFontFamily}, sans-serif`, sass.prependData].join('\n');
}
// Add font-size custom variable
if (options.size) {
sass.prependData = [`$font-size-root: ${options.size}px`, sass.prependData].join('\n');
}
}
//# sourceMappingURL=font.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"font.js","sourceRoot":"","sources":["../src/font.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoB,OAAoB;IACvE,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,uCAAuC,CAAA;IAEvE,IAAI,IAAI,CAAC,OAAO,CAAC,OAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,oBAAoB,CAAC,EAAE;QACnE,IAAI,CAAC,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAA;QAC7D,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAA;QAC3E,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,EAAE,MAAM,CAAC,CAAA;KAC3G;SAAM;QACL,IAAI,CAAC,OAAO,CAAC,IAAK,CAAC,IAAK,CAAC,IAAI,CAAC;YAC5B,GAAG,EAAE,YAAY;YACjB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,2CAA2C,MAAM,EAAE;SAC1D,CAAC,CAAA;KACH;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAM,CAAC,OAAQ,CAAC,IAAK,CAAA;IAE/C,gGAAgG;IAChG,IAAI,OAAO,CAAC,MAAM,KAAK,QAAQ,EAAE;QAC/B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;YAClD,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAC9C,CAAC,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAA;QACzB,IAAI,CAAC,WAAW,GAAG,CAAC,sBAAsB,cAAc,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACrG;IAED,gCAAgC;IAChC,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,IAAI,CAAC,WAAW,GAAG,CAAC,oBAAoB,OAAO,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACvF;AACH,CAAC"}
-10
View File
@@ -1,10 +0,0 @@
import { ModuleThis } from '@nuxt/types/config/module';
declare const presetsCDN: {
mdi: string;
md: string;
fa: string;
fa4: string;
};
export declare type IconPreset = keyof typeof presetsCDN;
export default function setupIcons(this: ModuleThis, preset: IconPreset): void;
export {};
-17
View File
@@ -1,17 +0,0 @@
const presetsCDN = {
mdi: 'https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css',
md: 'https://fonts.googleapis.com/css?family=Material+Icons',
fa: 'https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@latest/css/all.min.css',
fa4: 'https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css'
};
export default function setupIcons(preset) {
// istanbul ignore else
if (presetsCDN[preset]) {
this.options.head.link.push({
rel: 'stylesheet',
type: 'text/css',
href: presetsCDN[preset]
});
}
}
//# sourceMappingURL=icons.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG;IACjB,GAAG,EAAE,+EAA+E;IACpF,EAAE,EAAE,wDAAwD;IAC5D,EAAE,EAAE,mFAAmF;IACvF,GAAG,EAAE,0EAA0E;CAChF,CAAA;AAID,MAAM,CAAC,OAAO,UAAU,UAAU,CAAoB,MAAkB;IACtE,uBAAuB;IACvB,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE;QACtB,IAAI,CAAC,OAAO,CAAC,IAAK,CAAC,IAAK,CAAC,IAAI,CAAC;YAC5B,GAAG,EAAE,YAAY;YACjB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;SACzB,CAAC,CAAA;KACH;AACH,CAAC"}
-14
View File
@@ -1,14 +0,0 @@
import { Module } from '@nuxt/types';
import { Framework } from 'vuetify';
import { Options, TreeShakeOptions, VuetifyLoaderOptions } from './options';
declare module '@nuxt/types' {
interface Configuration {
vuetify?: Options;
}
interface Context {
$vuetify: Framework;
}
}
declare const vuetifyModule: Module<Options>;
export { Options, TreeShakeOptions, VuetifyLoaderOptions };
export default vuetifyModule;
-18
View File
@@ -1,18 +0,0 @@
import initOptions from './options';
import setupBuild from './build';
import setupFont from './font';
import setupIcons from './icons';
import setupSass from './sass';
const vuetifyModule = function (moduleOptions) {
this.nuxt.hook('build:before', () => {
const options = initOptions.call(this, moduleOptions);
if (typeof options.defaultAssets === 'object') {
options.defaultAssets.font && setupFont.call(this, options.defaultAssets.font);
options.defaultAssets.icons && setupIcons.call(this, options.defaultAssets.icons);
}
setupSass.call(this, options.customVariables);
setupBuild.call(this, options);
});
};
export default vuetifyModule;
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,WAAgE,MAAM,WAAW,CAAA;AACxF,OAAO,UAAU,MAAM,SAAS,CAAA;AAChC,OAAO,SAAS,MAAM,QAAQ,CAAA;AAC9B,OAAO,UAAU,MAAM,SAAS,CAAA;AAChC,OAAO,SAAS,MAAM,QAAQ,CAAA;AAY9B,MAAM,aAAa,GAAoB,UAAU,aAAa;IAC5D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE;QAClC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAErD,IAAI,OAAO,OAAO,CAAC,aAAa,KAAK,QAAQ,EAAE;YAC7C,OAAO,CAAC,aAAa,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;YAC9E,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;SAClF;QAED,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;QAC7C,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAQD,eAAe,aAAa,CAAA"}
-41
View File
@@ -1,41 +0,0 @@
import { SFCDescriptor } from 'vue-template-compiler';
import { VuetifyPreset } from 'vuetify/types/services/presets';
import { ModuleThis } from '@nuxt/types/config/module';
import { FontOptions } from './font';
import { IconPreset } from './icons';
export interface TreeShakeOptions {
components?: string[];
directives?: string[];
loaderOptions?: VuetifyLoaderOptions;
transitions?: string[];
}
export interface VuetifyLoaderOptions {
match?(originalTag: string, context: {
kebabTag: string;
camelTag: string;
path: string;
component: SFCDescriptor;
}): [string, string] | undefined;
}
export interface Options extends Partial<VuetifyPreset> {
customVariables?: string[];
defaultAssets?: {
font?: FontOptions;
icons?: IconPreset | false;
} | false;
optionsPath?: string;
preset?: string;
treeShake?: boolean | TreeShakeOptions;
}
export declare const defaults: {
customVariables: never[];
defaultAssets: {
font: {
family: string;
};
icons: "mdi" | "md" | "fa" | "fa4";
};
optionsPath: undefined;
treeShake: boolean;
};
export default function initOptions(this: ModuleThis, moduleOptions?: Options): Required<Options>;
-21
View File
@@ -1,21 +0,0 @@
import merge from 'deepmerge';
export const defaults = {
customVariables: [],
defaultAssets: {
font: {
family: 'Roboto'
},
icons: 'mdi'
},
optionsPath: undefined,
treeShake: process.env.NODE_ENV === 'production'
};
export default function initOptions(moduleOptions) {
const options = merge.all([
defaults,
this.options.vuetify || {},
moduleOptions || {}
]);
return options;
}
//# sourceMappingURL=options.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,WAAW,CAAA;AAoC7B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE,KAAmB;KAC3B;IACD,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;CACjD,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAoB,aAAuB;IAC5E,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC;QACxB,QAAQ;QACR,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE;QAC1B,aAAa,IAAI,EAAE;KACpB,CAAsB,CAAA;IAEvB,OAAO,OAAO,CAAA;AAChB,CAAC"}
-3
View File
@@ -1,3 +0,0 @@
import { ModuleThis } from '@nuxt/types/config/module';
import { Options } from './options';
export default function setupSass(this: ModuleThis, customVariables: Options['customVariables']): void;
-21
View File
@@ -1,21 +0,0 @@
import dartSass from 'sass';
export default function setupSass(customVariables) {
const { sass, scss } = this.options.build.loaders;
// Use Dart Sass
sass.implementation = scss.implementation = dartSass;
// Ensure compatibility with Nuxt < 2.10 (i.e. before https://github.com/nuxt/nuxt.js/pull/6460)
if (!sass.sassOptions) {
delete sass.indentedSyntax;
sass.sassOptions = {
indentedSyntax: true
};
}
// Custom variables
if (customVariables && customVariables.length > 0) {
const sassImports = customVariables.map(path => `@import '${path}'`).join('\n');
sass.prependData = [sass.prependData, sassImports].join('\n');
const scssImports = customVariables.map(path => `@import '${path}';`).join('\n');
scss.prependData = [scss.prependData, scssImports].join('\n');
}
}
//# sourceMappingURL=sass.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"sass.js","sourceRoot":"","sources":["../src/sass.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,MAAM,CAAA;AAG3B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoB,eAA2C;IAC9F,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,KAAM,CAAC,OAAoE,CAAA;IAE/G,gBAAgB;IAChB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAA;IAEpD,gGAAgG;IAChG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;QACrB,OAAO,IAAI,CAAC,cAAc,CAAA;QAC1B,IAAI,CAAC,WAAW,GAAG;YACjB,cAAc,EAAE,IAAI;SACrB,CAAA;KACF;IAED,mBAAmB;IACnB,IAAI,eAAe,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;QACjD,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC/E,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7D,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAChF,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC9D;AACH,CAAC"}
-95
View File
@@ -1,95 +0,0 @@
{
"_args": [
[
"@nuxtjs/vuetify@1.11.2",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
]
],
"_from": "@nuxtjs/vuetify@1.11.2",
"_id": "@nuxtjs/vuetify@1.11.2",
"_inBundle": false,
"_integrity": "sha512-8+k/PQG37OAoXvXgKE+BkBQXaoBCz9odK8oPYA4lwmxQ0ekHnh4PFrU/6Fr+OeVHbQbynbuMZnkF9aWxDsTqug==",
"_location": "/@nuxtjs/vuetify",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@nuxtjs/vuetify@1.11.2",
"name": "@nuxtjs/vuetify",
"escapedName": "@nuxtjs%2fvuetify",
"scope": "@nuxtjs",
"rawSpec": "1.11.2",
"saveSpec": null,
"fetchSpec": "1.11.2"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.11.2.tgz",
"_spec": "1.11.2",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"bugs": {
"url": "https://github.com/nuxt-community/vuetify-module/issues"
},
"contributors": [
{
"name": "Pooya Parsa",
"url": "@pi0"
},
{
"name": "Kevin Marrec",
"url": "@kevinmarrec"
}
],
"dependencies": {
"deepmerge": "^4.2.2",
"fibers": "^4.0.3",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"vuetify": "^2",
"vuetify-loader": "^1.4.3"
},
"description": "Vuetify Module for Nuxt.js",
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@nuxt/typescript-build": "^0.6.6",
"@nuxt/typescript-runtime": "^0.4.6",
"@nuxtjs/eslint-config-typescript": "^1.0.2",
"@types/jest": "^25.2.1",
"@types/sass": "^1.16.0",
"codecov": "^3.6.5",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"jest": "^25.4.0",
"nuxt-edge": "2.11.1-26375059.fd5fefe",
"nuxt-webfontloader": "^1.1.0",
"standard-version": "^7.1.0",
"ts-jest": "^25.4.0",
"typescript": "~3.8"
},
"files": [
"dist",
"templates"
],
"homepage": "https://github.com/nuxt-community/vuetify-module#readme",
"license": "MIT",
"main": "dist/index.js",
"name": "@nuxtjs/vuetify",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nuxt-community/vuetify-module.git"
},
"scripts": {
"build": "tsc",
"dev": "tsc && nuxt-ts test/fixture",
"lint": "eslint --ext .ts,.js,.vue .",
"release": "yarn test && yarn build && standard-version && git push --follow-tags && npm publish",
"test": "yarn lint && jest"
},
"typings": "dist/index.d.ts",
"version": "1.11.2"
}
-1
View File
@@ -1 +0,0 @@
export default <%= serializeFunction(options) %>
-49
View File
@@ -1,49 +0,0 @@
import Vue from 'vue'
import Vuetify from '<%= options.treeShake ? 'vuetify/lib/framework' : 'vuetify' %>'
<% if (options.preset) { %>
import { preset } from '<%= options.preset %>'
<% } %>
<%
const libImports = [
{ key: 'components', location: 'vuetify/lib'},
{ key: 'transitions', location: 'vuetify/lib'},
{ key: 'directives', location: 'vuetify/lib/directives'}
]
if (options.treeShake) {
for (const lib of libImports) {
if (options.treeShake[lib.key] && options.treeShake[lib.key].length > 0) {
%>
import { <%= options.treeShake[lib.key].join(', ') %> } from '<%= lib.location %>'
<%
}
}
}
%>
import options from './options'
Vue.use(Vuetify, {
<% if (options.treeShake) { %>
<%= libImports.filter(lib => options.treeShake[lib.key] && options.treeShake[lib.key].length > 0)
.map(lib => ` ${lib.key}: { ${options.treeShake[lib.key].join(', ')} }`)
.join(',\n') %>
<% } %>
})
export default (ctx) => {
const vuetifyOptions = typeof options === 'function' ? options(ctx) : options
<% if (options.defaultIconPreset) { %>
vuetifyOptions.icons = vuetifyOptions.icons || {}
vuetifyOptions.icons.iconfont = '<%= options.defaultIconPreset %>'
<% } %>
<% if (options.preset) { %>
vuetifyOptions.preset = preset
<% } %>
const vuetify = new Vuetify(vuetifyOptions)
ctx.app.vuetify = vuetify
ctx.$vuetify = vuetify.framework
}