Skip to content

Commit 5c8170d

Browse files
committed
chore: sync with 'master' branch
1 parent 60967bb commit 5c8170d

File tree

8 files changed

+60
-47
lines changed

8 files changed

+60
-47
lines changed

.circleci/config.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- uses: actions/cache@v1
13+
id: cache
14+
with:
15+
path: "node_modules"
16+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
17+
18+
- name: Install dependencies
19+
if: steps.cache.outputs.cache-hit != 'true'
20+
run: yarn
21+
22+
- name: Run tests
23+
run: yarn test
24+
25+
- name: Coverage
26+
run: yarn codecov
27+
env:
28+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ Usage example :
7575
$btn-border-radius: 0px;
7676

7777
// If you need to extend Vuetify SASS lists
78+
$material-light: ( cards: blue );
79+
7880
@import '~vuetify/src/styles/styles.sass';
79-
$material-light: map-merge($material-light, ( cards: blue ));
8081
```
8182

8283
```js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"deepmerge": "^4.2.2",
3434
"sass": "^1.24.4",
35-
"sass-loader": "^8.0.0",
35+
"sass-loader": "^8.0.1",
3636
"vuetify": "^2.2.3",
3737
"vuetify-loader": "^1.4.3"
3838
},

src/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface Options {
2222
frameworkOptions?: string | Partial<VuetifyPreset>
2323
globalImports?: GlobalImports
2424
loader?: boolean | VuetifyLoaderOptions
25+
preset?: string
2526
}
2627

2728
export const defaults = {

src/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default function setupPlugin (this: ModuleThis, options: Options) {
2020
src: path.resolve(__dirname, '../templates', 'plugin.js'),
2121
options: {
2222
defaultIconPreset: options.defaultAssets && options.defaultAssets.icons,
23+
preset: options.preset,
2324
treeShake: true
2425
}
2526
})

templates/plugin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import Vue from 'vue'
22
import Vuetify from '<%= options.treeShake ? 'vuetify/lib' : 'vuetify' %>'
3+
<% if (options.preset) { %>
4+
import { preset } from '<%= options.preset %>'
5+
<% } %>
6+
37
<%
48
const libImports = [
59
{ key: 'components', location: 'vuetify/lib'},
@@ -34,6 +38,9 @@ export default (ctx) => {
3438
vuetifyOptions.icons = vuetifyOptions.icons || {}
3539
vuetifyOptions.icons.iconfont = '<%= options.defaultIconPreset %>'
3640
<% } %>
41+
<% if (options.preset) { %>
42+
vuetifyOptions.preset = preset
43+
<% } %>
3744

3845
const vuetify = new Vuetify(vuetifyOptions)
3946

yarn.lock

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9254,16 +9254,16 @@ sane@^4.0.3:
92549254
minimist "^1.1.1"
92559255
walker "~1.0.5"
92569256

9257-
sass-loader@^8.0.0:
9258-
version "8.0.0"
9259-
resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-8.0.0.tgz#e7b07a3e357f965e6b03dd45b016b0a9746af797"
9260-
integrity sha512-+qeMu563PN7rPdit2+n5uuYVR0SSVwm0JsOUsaJXzgYcClWSlmX0iHDnmeOobPkf5kUglVot3QS6SyLyaQoJ4w==
9257+
sass-loader@^8.0.1:
9258+
version "8.0.1"
9259+
resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-8.0.1.tgz#46cc2bc90de9ed0a121d023800a32049215fb57c"
9260+
integrity sha512-ANR2JHuoxzCI+OPDA0hJBv1Y16A2021hucu0S3DOGgpukKzq9W+4vX9jhIqs4qibT5E7RIRsHMMrN0kdF5nUig==
92619261
dependencies:
92629262
clone-deep "^4.0.1"
92639263
loader-utils "^1.2.3"
92649264
neo-async "^2.6.1"
9265-
schema-utils "^2.1.0"
9266-
semver "^6.3.0"
9265+
schema-utils "^2.6.1"
9266+
semver "^7.1.1"
92679267

92689268
sass@^1.24.4:
92699269
version "1.24.4"
@@ -9286,14 +9286,22 @@ schema-utils@^1.0.0:
92869286
ajv-errors "^1.0.0"
92879287
ajv-keywords "^3.1.0"
92889288

9289-
schema-utils@^2.0.0, schema-utils@^2.1.0, schema-utils@^2.4.1, schema-utils@^2.5.0:
9289+
schema-utils@^2.0.0, schema-utils@^2.4.1, schema-utils@^2.5.0:
92909290
version "2.5.0"
92919291
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.5.0.tgz#8f254f618d402cc80257486213c8970edfd7c22f"
92929292
integrity sha512-32ISrwW2scPXHUSusP8qMg5dLUawKkyV+/qIEV9JdXKx+rsM6mi8vZY8khg2M69Qom16rtroWXD3Ybtiws38gQ==
92939293
dependencies:
92949294
ajv "^6.10.2"
92959295
ajv-keywords "^3.4.1"
92969296

9297+
schema-utils@^2.6.1:
9298+
version "2.6.1"
9299+
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.6.1.tgz#eb78f0b945c7bcfa2082b3565e8db3548011dc4f"
9300+
integrity sha512-0WXHDs1VDJyo+Zqs9TKLKyD/h7yDpHUhEFsM2CzkICFdoX1av+GBq/J2xRTFfsQO5kBfhZzANf2VcIm84jqDbg==
9301+
dependencies:
9302+
ajv "^6.10.2"
9303+
ajv-keywords "^3.4.1"
9304+
92979305
scriptjs@^2.5.9:
92989306
version "2.5.9"
92999307
resolved "https://registry.yarnpkg.com/scriptjs/-/scriptjs-2.5.9.tgz#343915cd2ec2ed9bfdde2b9875cd28f59394b35f"
@@ -9324,6 +9332,11 @@ semver@6.3.0, semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.2.0, semver
93249332
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
93259333
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
93269334

9335+
semver@^7.1.1:
9336+
version "7.1.1"
9337+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.1.1.tgz#29104598a197d6cbe4733eeecbe968f7b43a9667"
9338+
integrity sha512-WfuG+fl6eh3eZ2qAf6goB7nhiCd7NPXhmyFxigB/TOkQyeLP8w8GsVehvtGNtnNmyboz4TgeK40B1Kbql/8c5A==
9339+
93279340
send@0.17.1:
93289341
version "0.17.1"
93299342
resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8"

0 commit comments

Comments
 (0)