Skip to content

Commit a93c6f0

Browse files
authored
Merge pull request #152 from GrabarzUndPartner/feature/testtt
fix(release): revert config for latest npm
2 parents d8f4ee1 + 5bc51aa commit a93c6f0

File tree

20 files changed

+421
-299
lines changed

20 files changed

+421
-299
lines changed

.branchlintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"hotfix",
66
"release",
77
"renovate",
8-
"beta"
8+
"beta",
9+
"next"
910
],
1011
"suggestions": {
1112
"features": "feature",
@@ -32,4 +33,4 @@
3233
"msgPrefixSuggestion": "Instead of \"%s\" try \"%s\".",
3334
"msgSeperatorRequired": "Branch \"%s\" must contain a seperator \"%s\"."
3435
}
35-
}
36+
}

.github/workflows/main.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ jobs:
2727
with:
2828
path: |
2929
node_modules
30-
'~/.cache/ms-playwright/'
30+
~/.cache/ms-playwright/
3131
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
3232
- name: Install Dependencies (Example)
3333
if: steps.cache.outputs.cache-hit != 'true'
3434
run: npm ci
35+
# - name: setup playwright
36+
# uses: microsoft/playwright-github-action@v1
3537
- name: Test
3638
run: npm run test
3739
- name: cache node_modules (Docs)
3840
uses: actions/cache@v2
3941
id: cacheDocs
4042
with:
41-
path: |
42-
docs/node_modules
43-
'~/.cache/ms-playwright/'
44-
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/docs/package-lock.json')) }}
43+
path: docs/node_modules
44+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/docs/package-lock.json')) }}-docs
4545
- name: Install Dependencies (Docs)
4646
if: steps.cacheDocs.outputs.cache-hit != 'true'
4747
run: cd docs && npm ci
@@ -92,7 +92,7 @@ jobs:
9292
with:
9393
path: |
9494
node_modules
95-
'~/.cache/ms-playwright/'
95+
~/.cache/ms-playwright/
9696
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
9797
- name: Build
9898
run: |
@@ -124,14 +124,12 @@ jobs:
124124
node-version: ${{ matrix.node }}
125125
- name: Checkout Repo
126126
uses: actions/checkout@v2
127-
- name: cache node_modules
127+
- name: cache docs/node_modules
128128
uses: actions/cache@v2
129129
id: cacheDocs
130130
with:
131-
path: |
132-
docs/node_modules
133-
'~/.cache/ms-playwright/'
134-
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/docs/package-lock.json')) }}
131+
path: docs/node_modules
132+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/docs/package-lock.json')) }}-docs
135133
- name: Build
136134
run: |
137135
cd ./docs

.github/workflows/next.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Next
2+
on:
3+
push:
4+
branches:
5+
- next
6+
7+
jobs:
8+
semantic-version:
9+
name: Semantic Release
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node: [12]
16+
17+
steps:
18+
- uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node }}
21+
- name: Checkout Repo
22+
uses: actions/checkout@v2
23+
- name: Versioning
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
run: |
28+
rm -rf ./publish && rsync -r --exclude publish ./* ./publish
29+
npx -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p semantic-release-github semantic-release --provider=github --debug=true

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ jobs:
2828
with:
2929
path: |
3030
node_modules
31-
'~/.cache/ms-playwright/'
31+
~/.cache/ms-playwright/
3232
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
3333

3434
- name: Install Dependencies
3535
if: steps.cache.outputs.cache-hit != 'true'
3636
run: npm ci
3737

38+
# - name: setup playwright
39+
# uses: microsoft/playwright-github-action@v1
40+
3841
- name: Test
3942
run: npm run test

.releaserc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"branches": [
33
"+([0-9])?(.{+([0-9]),x}).x",
44
"master",
5-
"next",
6-
"next-major",
75
{
86
"name": "main",
97
"channel": "latest",
108
"prerelease": false
119
},
10+
"next",
11+
"next-major",
1212
{
1313
"name": "beta",
1414
"prerelease": true

CHANGELOG.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,74 @@
11
# Project Changelog
22

3+
## [1.1.1](https://github.com/GrabarzUndPartner/nuxt-speedkit/compare/v1.1.0...v1.1.1) (2021-02-01)
4+
5+
6+
### Bug Fixes
7+
8+
* **speedkit-picture:** add placeholder property; fix speedkit-youtube ([4a145ea](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/4a145ea20ff02e73fd2bd6495b7f81c0a6c7953b))
9+
10+
# [1.1.0](https://github.com/GrabarzUndPartner/nuxt-speedkit/compare/v1.0.11...v1.1.0) (2021-01-31)
11+
12+
13+
### Bug Fixes
14+
15+
* **browser:** configurable browser matrix by nuxt.config ([d89cd21](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/d89cd219605094ce38686fa1b61f70c29a6fbd7a))
16+
* **cleanup:** code cleanup (useless normalized-style-inject) and refactored functions (cache, preloads) ([5a7b8e0](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/5a7b8e02898843286344e92e8ac14ad1d1d064f2))
17+
* **cleanup:** remove unused deps & code cleanup ([cc5943a](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/cc5943ae0987b9fcd6ec2858edddeaa3b48bcfa6))
18+
* **components:** fix import path ([39f6371](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/39f63713f983cd041cec91421bd03cb93c768121))
19+
* **crossorigin:** default crossorigin defined by nuxt.config ([4ebba80](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/4ebba807682d5547191201ab9fdc4c06838fcb8d))
20+
* **description:** removed crossorigin fallback ([4ecf887](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/4ecf887843b0b0349df11441a3eea258c560fe5b))
21+
* **examples:** add more examples ([4c1b8c0](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/4c1b8c09cf49517e698aa99839d0a69c72c941b5))
22+
* **head:** centralized head description generator ([d7933e6](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/d7933e6a6b55476a1bfd88d652b4b2d3350e77c1))
23+
* **header:** removed critical flag ([9369417](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/93694170c6f8879b2f0e04420e4e0e8b0395c4c5))
24+
* **info-layer:** added font load if the user declined the full experience ([c58e7c8](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/c58e7c860e884acc1fbefd424343f254f96a8fc6))
25+
* **info-layer:** fixed click in blurred background of opened menu ([fbd9f28](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/fbd9f285aad32dd231ef59e44e1e7350574978a4))
26+
* **info-layer:** supported browsers are configurable by nuxt.config ([3ea7469](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/3ea7469b67b359a3a6dc6aa2578474f5e3e18096))
27+
* **init:** initial base picture ([65c9eb9](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/65c9eb9e4357f66d9fc1c656bd913e8a23de4b3b))
28+
* **layer:** js free layer functions ([d168397](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/d168397aa1b0a5a9de9e420da1976d594f102be4))
29+
* **lazy-hydrate:** removed fallback initialization ([b3ee8ee](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/b3ee8eef0e0d91f03fa57e23a855588e52769e33))
30+
* **lazy-hydrate:** removed fallback initialization ([9c04c0f](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/9c04c0f02fb18c4c0a8bff30aea2d1e610d12e18))
31+
* **link-preload:** fix safari ([862453a](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/862453a5df4f3707295a534b89a6725fa08a3fdf))
32+
* **mixin:** simplification of head description ([be51b8c](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/be51b8c488b644add10d2173865aed0b94af3d9f))
33+
* **picture:** added figcaption ([23c2479](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/23c24793d42f2e1bcd2372dce685b3df0fbbdc06))
34+
* **picture:** added png support ([33a1d76](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/33a1d7657d3ac55b8795dd4f914d8503960cd04a))
35+
* **picture:** bug fix mimeTypes ([afb742a](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/afb742ac53803d7b6492601a1cc0f14f38c3dbb5))
36+
* **picture:** cleanup ([c373f73](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/c373f73f5058095a5a72ea5ab1572716be55b417))
37+
* **picture:** cleanup ([8e2cc32](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/8e2cc32e504530adaad45f4b30aaded9d6ceab80))
38+
* **picture:** cleanup & restructuring ([e1c8ba7](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/e1c8ba7721926172009d326e8e95e5cc38f931c0))
39+
* **picture:** cleanup & restructuring ([760b45b](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/760b45bcff8f688a71e3e046be90b6196d178301))
40+
* **picture:** cleanup & restructuring ([1a430c7](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/1a430c7b5c5b5c6bc2f391d06729158b47544024))
41+
* **picture:** feature detection - webp-/preload-support and added noscript block ([9afcfd0](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/9afcfd072ed57851b18a6ddb191ffae91b38fdab))
42+
* **picture:** fixed noscript fallback ([1fb4e2b](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/1fb4e2bfc4df31617de863309cc0ed7b9b22d4af))
43+
* **picture:** fixed preload cache - make it sync ([6bafcd8](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/6bafcd8c6dda4bd0a495597bfa8d274db5bd0b8d))
44+
* **picture:** fixed preload on page change ([73e0ce6](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/73e0ce6d786d65893d472caffbeb58c3d6e027b2))
45+
* **picture:** optimized blur ([e2eaaa6](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/e2eaaa62871c6fdfe8fa090cb2b9b85a86341649))
46+
* **picture:** placeholder first draft ([b6402ce](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/b6402ced18f760e9f4999d484e5a02a12687a94f))
47+
* **picture:** refactored custom-picture and experimental-picture ([370cfb4](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/370cfb4ae519ca068e5bac1e6dfc8ec4437ab7ad))
48+
* **picture:** removed uneccessary css and added hids to noscript head option ([d531aa3](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/d531aa3d8203d6380f1dd41011da7b7be653c753))
49+
* **picture:** separated custom picture template to use the same template in lazy-picture and experimental picture ([6cbffd2](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/6cbffd2b0be547e8609b370f0aea42c49eca4701))
50+
* **picture:** small fixes ([7bc89dc](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/7bc89dc8d109b90c1fa8beac840f74e257acfd8a))
51+
* **picture:** updated draft - working preloads and dom updates ([2cc2d86](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/2cc2d869ebe14114c93e2fd719aac8e8162ea4ec))
52+
* **picture:** updated placeholder mapping by page change ([d10effa](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/d10effa4194680375af62d921bf9d362b55c8472))
53+
* **placeholder:** correct placeholder transition ([e564573](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/e564573a3084c9792fa0b30e8e8b81c5b9c267b8))
54+
* **placeholder:** first draft ([40a46af](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/40a46aff2f2e2b1e0426a766b617a92daf05c936))
55+
* **placeholder:** removed SVG wrapper ([2e4a85f](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/2e4a85f794eed600c91465e1b90c3f424d67429b))
56+
* **readme:** update readme ([b35eb5b](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/b35eb5b2a05e86bdac3b3ebbac69119e3fe2990f))
57+
* **speedkit-pictiure:** remove async from default speedkit-picture ([ab5d66c](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/ab5d66c0cae2323d349c34f868c706168f83fef8))
58+
* **speedkit-picture:** add speedkit-picture without nuxt-image ([4e2e8e5](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/4e2e8e5af41d745b78ce7611cee657bcbe2c99a4))
59+
* **v-font:** add class font-active correctly ([823fe86](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/823fe860efc1001046dbea4045fc0601e1cb680a))
60+
* **v-font:** optimized directive ([0e78199](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/0e78199d3322e8eb048c2ce4f9c36fbe94de65ef))
61+
* **v-font:** performance update ([de3fdef](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/de3fdefd749fa8acef4504137d9b68788148af4f))
62+
* **v-font:** use el instead of vnode.elm ([7bb4fa1](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/7bb4fa101e6a827967f73cb498ff7fd088d0f82c))
63+
* **youtube:** correct loading of poster image and added blur animation ([7b98807](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/7b988078416532f6d60acea4a879c31a031f66b1))
64+
65+
66+
### Features
67+
68+
* **font:** noscript font declaration ([69d2c7a](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/69d2c7ad70f7e6b957ccf0e58bab2abf0d7cb669))
69+
* **info-layer:** added detailed info about unsupported browser, slow connection, outdated device or disabled javascript ([acecd50](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/acecd5097a9deb253bc1e81dab8fd449fb6c9d25))
70+
* **youtube:** works with nuxt-image ([a91c665](https://github.com/GrabarzUndPartner/nuxt-speedkit/commit/a91c66595357cd72e26e1df216bf30559a8b44a2))
71+
372
# [1.1.0-beta.2](https://github.com/GrabarzUndPartner/nuxt-speedkit/compare/v1.1.0-beta.1...v1.1.0-beta.2) (2021-01-31)
473

574

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ or look here
9494
[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt-speedkit.svg?style=flat-square
9595
[npm-downloads-href]: https://npmjs.com/package/nuxt-speedkit
9696

97+
98+

example/pages/experimental/index.vue

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,7 @@ export default {
3333
},
3434
3535
youtubePlayer: {
36-
id: 'cLKvbhfVBUU',
37-
poster: {
38-
alt: 'Youtube Alt Text',
39-
title: 'Youtube Title Text',
40-
sources: [
41-
{
42-
placeholder: {
43-
// eslint-disable-next-line no-secrets/no-secrets
44-
url: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wgARCAARAB4DAREAAhEBAxEB/8QAGgAAAQUBAAAAAAAAAAAAAAAACQMEBQYIB//EABoBAAIDAQEAAAAAAAAAAAAAAAUGAwcIAgT/2gAMAwEAAhADEAAAAL/mlzd2cDRdodE5AZQ02iErjZJzyz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xAArEQEAAgAGAQIDCQAAAAAAAAABAhEAAwQSITEFE0EGFFEyNDVxcpGxsvH/2gAIAQMBAT8AzPR+YnAgKNvPPP1r2eeHGvz/AEs5yCVbYx920b7rh6eSMcePzdPLV+m5pFbO15euD6/ud48Vp5afV5kvUJnISN22XIEjcRlSFm6MZU0h1jWePI+Rnm6pZlu3bxfuD2m0Yl07q6MeQ0Of5CfrQkzE5ZBJojXKrb7WF8Xa4loDL1Uc6NwJfbqgOW9hwhtSjlu6THw/qZkJZAFHTxYClVb3d3/r5b8Qn+UP6GDrE+nHg/vsv0v8mP/Z'
45-
},
46-
sizes: [
47-
// jpg
48-
{ width: 414, media: '', url: '/img/youtube/jpg/414.jpg', format: 'jpg' },
49-
{ width: 576, media: '(min-width: 576px)', url: '/img/youtube/jpg//576.jpg', format: 'jpg' },
50-
{ width: 768, media: '(min-width: 768px)', url: '/img/youtube/jpg//768.jpg', format: 'jpg' },
51-
{ width: 1024, media: '(min-width: 1024px)', url: '/img/youtube/jpg//1024.jpg', format: 'jpg' },
52-
{ width: 1280, media: '(min-width: 1200px)', url: '/img/youtube/jpg//1280.jpg', format: 'jpg' },
53-
// webp
54-
{ width: 414, media: '', url: '/img/youtube/webp/414.webp', format: 'webp' },
55-
{ width: 576, media: '(min-width: 576px)', url: '/img/youtube/webp/576.webp', format: 'webp' },
56-
{ width: 768, media: '(min-width: 768px)', url: '/img/youtube/webp/768.webp', format: 'webp' },
57-
{ width: 1024, media: '(min-width: 1024px)', url: '/img/youtube/webp/1024.webp', format: 'webp' },
58-
{ width: 1280, media: '(min-width: 1200px)', url: '/img/youtube/webp/1280.webp', format: 'webp' }
59-
]
60-
}
61-
]
62-
}
36+
id: 'cLKvbhfVBUU'
6337
},
6438
6539
textA: {

0 commit comments

Comments
 (0)