Skip to content

Commit c003e77

Browse files
author
Thorn Walli
committed
feat(alias): remove lib from imports
1 parent 0ab6881 commit c003e77

23 files changed

+51
-139
lines changed

.github/workflows/baqend.yml

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

.github/workflows/beta.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ on:
55
- beta
66

77
jobs:
8-
# install:
9-
# if: "!contains(github.event.head_commit.message, 'skip ci')"
10-
# name: Install
11-
# runs-on: ${{ matrix.os }}
8+
install:
9+
if: "!contains(github.event.head_commit.message, 'skip ci')"
10+
name: Install
11+
runs-on: ${{ matrix.os }}
1212

13-
# strategy:
14-
# matrix:
15-
# os: [ubuntu-latest]
16-
# node: [12]
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
node: [12]
1717

18-
# steps:
19-
# - uses: actions/setup-node@v1
20-
# with:
21-
# node-version: ${{ matrix.node }}
22-
# - name: Checkout Repo
23-
# uses: actions/checkout@v2
24-
# - name: cache node_modules
25-
# uses: actions/cache@v2
26-
# id: cache
27-
# with:
28-
# path: node_modules
29-
# key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
30-
# - name: Install Dependencies
31-
# if: steps.cache.outputs.cache-hit != 'true'
32-
# run: npm ci
33-
# - name: Test
34-
# run: npm run test
18+
steps:
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node }}
22+
- name: Checkout Repo
23+
uses: actions/checkout@v2
24+
- name: cache node_modules
25+
uses: actions/cache@v2
26+
id: cache
27+
with:
28+
path: node_modules
29+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
30+
- name: Install Dependencies
31+
if: steps.cache.outputs.cache-hit != 'true'
32+
run: npm ci
33+
- name: Test
34+
run: npm run test
3535

3636
semantic-version:
3737
name: Semantic Release

example/components/InfoLayer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<script>
1313
14-
import SpeedkitLayer from 'nuxt-speedkit/lib/components/SpeedkitLayer'
14+
import SpeedkitLayer from 'nuxt-speedkit/components/SpeedkitLayer'
1515
export default {
1616
components: {
1717
SpeedkitLayer

example/components/organisms/ImageText.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</template>
1313

1414
<script>
15-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
15+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
1616
export default {
1717
components: {
1818
LazyPicture

example/components/organisms/Stage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script>
17-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
17+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
1818
export default {
1919
components: {
2020
LazyPicture

example/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import InfoLayer from '@/components/InfoLayer'
1515
// import OrganismPageHeader from '@/components/organisms/PageHeader'
1616
export default {
1717
speedkitComponents: {
18-
GoogleLighthouse: () => import(/* webpackMode: "eager" */ 'nuxt-speedkit/lib/components/GoogleLighthouse'),
18+
GoogleLighthouse: () => import(/* webpackMode: "eager" */ 'nuxt-speedkit/components/GoogleLighthouse'),
1919
OrganismPageHeader: () => import(/* webpackMode: "eager" */ '@/components/organisms/PageHeader')
2020
},
2121
components: {

example/nuxt.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
},
3030

3131
alias: {
32-
[pkg.name]: resolve(__dirname, '../')
32+
[pkg.name]: resolve(__dirname, '../lib')
3333
},
3434

3535
build: {

example/pages/both/lazy-iframe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</template>
1313

1414
<script>
15-
import LazyIframe from 'nuxt-speedkit/lib/components/LazyIframe'
15+
import LazyIframe from 'nuxt-speedkit/components/LazyIframe'
1616
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1717
export default {
1818
components: {

example/pages/both/lazy-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</template>
2121

2222
<script>
23-
import LazyImage from 'nuxt-speedkit/lib/components/LazyImage'
23+
import LazyImage from 'nuxt-speedkit/components/LazyImage'
2424
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
2525
export default {
2626
components: {

example/pages/both/lazy-picture.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</template>
2121

2222
<script>
23-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
23+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
2424
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
2525
export default {
2626
components: {

example/pages/critical/lazy-iframe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</template>
1313

1414
<script>
15-
import LazyIframe from 'nuxt-speedkit/lib/components/LazyIframe'
15+
import LazyIframe from 'nuxt-speedkit/components/LazyIframe'
1616
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1717
export default {
1818
components: {

example/pages/critical/lazy-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script>
17-
import LazyImage from 'nuxt-speedkit/lib/components/LazyImage'
17+
import LazyImage from 'nuxt-speedkit/components/LazyImage'
1818
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1919
export default {
2020
components: {

example/pages/critical/lazy-picture.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</template>
1313

1414
<script>
15-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
15+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
1616
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1717
export default {
1818
components: {

example/pages/critical/lazy-video.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
</template>
1313

1414
<script>
15-
import { resizeObserver } from 'nuxt-speedkit/lib/utils/viewport'
15+
import { resizeObserver } from 'nuxt-speedkit/utils/viewport'
1616
17-
import LazyVideo from 'nuxt-speedkit/lib/components/LazyVideo'
17+
import LazyVideo from 'nuxt-speedkit/components/LazyVideo'
1818
export default {
1919
components: {
2020
LazyVideo

example/pages/full-example-without-components.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
export default {
6060
6161
speedkitComponents: {
62-
LazyPicture: () => import('nuxt-speedkit/lib/components/LazyPicture')
62+
LazyPicture: () => import('nuxt-speedkit/components/LazyPicture')
6363
},
6464
6565
data () {

example/pages/lazy/lazy-iframe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</template>
1414

1515
<script>
16-
import LazyIframe from 'nuxt-speedkit/lib/components/LazyIframe'
16+
import LazyIframe from 'nuxt-speedkit/components/LazyIframe'
1717
import OrganismSpacer from '@/components/organisms/Spacer'
1818
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1919
export default {

example/pages/lazy/lazy-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</template>
1414

1515
<script>
16-
import LazyImage from 'nuxt-speedkit/lib/components/LazyImage'
16+
import LazyImage from 'nuxt-speedkit/components/LazyImage'
1717
import OrganismSpacer from '@/components/organisms/Spacer'
1818
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1919
export default {

example/pages/lazy/lazy-picture.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</template>
1414

1515
<script>
16-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
16+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
1717
import OrganismSpacer from '@/components/organisms/Spacer'
1818
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
1919
export default {

example/pages/tests/lazy-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<script>
2323
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
24-
import LazyImage from 'nuxt-speedkit/lib/components/LazyImage'
24+
import LazyImage from 'nuxt-speedkit/components/LazyImage'
2525
export default {
2626
components: {
2727
OrganismPreviewContainer,

example/pages/tests/lazy-picture.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<script>
2323
import OrganismPreviewContainer from '@/components/organisms/PreviewContainer'
24-
import LazyPicture from 'nuxt-speedkit/lib/components/LazyPicture'
24+
import LazyPicture from 'nuxt-speedkit/components/LazyPicture'
2525
export default {
2626
components: {
2727
OrganismPreviewContainer,

lib/plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Vue from 'vue'
22

3-
import vFont from 'nuxt-speedkit/lib/plugins/vFont'
4-
import vImage from 'nuxt-speedkit/lib/plugins/vImagePreload'
5-
import FontList from 'nuxt-speedkit/lib/classes/FontList'
6-
import ImageList from 'nuxt-speedkit/lib/classes/ImageList'
3+
import vFont from 'nuxt-speedkit/plugins/vFont'
4+
import vImage from 'nuxt-speedkit/plugins/vImagePreload'
5+
import FontList from 'nuxt-speedkit/classes/FontList'
6+
import ImageList from 'nuxt-speedkit/classes/ImageList'
77

88

99
Vue.use(vFont)

lib/plugins/vFont.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import directive from 'nuxt-speedkit/lib/plugins/vFont/directive'
2-
import mixin from 'nuxt-speedkit/lib/plugins/vFont/mixin'
1+
import directive from 'nuxt-speedkit/plugins/vFont/directive'
2+
import mixin from 'nuxt-speedkit/plugins/vFont/mixin'
33

44
let _installed = false
55

lib/speedkit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { hasSufficientPerformance } from 'nuxt-speedkit/lib/utils/performance'
1+
import { hasSufficientPerformance } from 'nuxt-speedkit/utils/performance'
22

33
let init = false
44
function initNuxt () {

0 commit comments

Comments
 (0)