Skip to content

Commit

Permalink
fix(update): prepare 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Apr 23, 2023
1 parent f6f97e9 commit 5632c68
Show file tree
Hide file tree
Showing 15 changed files with 12,808 additions and 18,740 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"extends": [
"@nuxtjs",
"@nuxtjs/eslint-config-typescript",
"plugin:security/recommended",
"plugin:sonarjs/recommended",
"plugin:no-unsanitized/DOM"
Expand Down Expand Up @@ -41,4 +42,4 @@
"sonarjs/no-duplicate-string": 0,
"vue/multi-word-component-names": "off"
}
}
}
30,125 changes: 12,101 additions & 18,024 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 20 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
},
"scripts": {
"build:bundle": "esbuild src/runtime/tmpl/supportedBrowserDetector.mjs --platform=node --bundle --outfile=src/supportedBrowserDetector.mjs --external:browserslist --external:argue-cli --external:easy-table --external:picocolors",
"prepack": "npm run build:bundle && rsync -r --exclude ./src ./src/* .",
"prepack": "npm run build:bundle && nuxt-module-build",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"dev": "npm run build:bundle && nuxt playground",
"build": "npm run build:bundle && nuxt build --config-file playground/nuxt.config.js",
"generate": "npm run build:bundle && nuxt generate --config-file playground/nuxt.config.js --target static",
"nuxi:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"nuxi:dev": "nuxi dev playground",
"nuxi:build": "nuxi build playground",
"nuxi:generate": "nuxi generate playground --target static",
"nuxt:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"nuxt:dev": "nuxt playground",
"nuxt:build": "nuxt build playground",
"nuxt:generate": "nuxt generate playground --target static",
"lint": "npm run lint:css && npm run lint:es",
"lint:es": "eslint --ext .js,.vue .",
"lint:css": "stylelint \"(src|playground)/**/*.vue\"",
Expand All @@ -38,15 +43,16 @@
},
"main": "module.mjs",
"dependencies": {
"@nuxt/image": "0.7.1",
"@nuxt/image-edge": "1.0.0-28020728.5df24eb",
"browserslist-useragent-regexp": "4.0.0",
"deepmerge": "4.3.1",
"defu": "6.1.2",
"dynamic-class-list": "2.0.2",
"pathe": "1.1.0",
"probe-image-size": "7.2.3",
"read-pkg": "^8.0.0",
"serialize-to-js": "3.1.2",
"sort-css-media-queries": "2.1.1",
"sort-css-media-queries": "2.2.0",
"vue-lazy-hydration": "2.0.0-beta.4"
},
"devDependencies": {
Expand All @@ -55,12 +61,12 @@
"@commitlint/config-conventional": "17.6.1",
"@fullhuman/postcss-purgecss": "5.0.0",
"@nuxtjs/eslint-config": "12.0.0",
"@nuxtjs/eslint-config-typescript": "12.0.0",
"@nuxtjs/eslint-module": "3.1.0",
"@nuxtjs/stylelint-module": "4.2.1",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@nuxtjs/eslint-module": "4.0.2",
"@nuxtjs/stylelint-module": "5.0.1",
"commitlint": "17.6.1",
"core-js": "3.30.1",
"esbuild": "0.17.17",
"esbuild": "0.17.18",
"eslint": "8.39.0",
"eslint-formatter-json-relative": "0.1.0",
"eslint-plugin-no-secrets": "0.8.9",
Expand All @@ -73,17 +79,17 @@
"husky": "8.0.3",
"jsdom": "21.1.1",
"lint-staged": "13.2.1",
"nuxt": "2.16.3",
"nuxt": "3.4.2",
"pinst": "3.0.0",
"playwright": "1.32.3",
"postcss-functions": "4.0.2",
"postcss-html": "1.5.0",
"postcss-nesting": "11.2.2",
"postcss-preset-env": "8.3.2",
"serve-static": "1.15.0",
"stylelint": "14.16.1",
"stylelint-config-recess-order": "3.1.0",
"stylelint-config-standard": "29.0.0",
"stylelint": "15.5.0",
"stylelint-config-recess-order": "4.0.0",
"stylelint-config-standard": "33.0.0",
"vite": "4.3.1",
"vitest": "0.30.1",
"vue-headings": "1.0.0",
Expand Down
4 changes: 4 additions & 0 deletions playground/.nuxtignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ pages/**/components/**/*.vue
####
# pages/**/*.vue
# !pages/tests/image/*.vue
pages/**/*.vue
!pages/test.vue
layouts/**/*.vue
!layouts/default.vue
52 changes: 52 additions & 0 deletions playground/_modules/svg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

// import fs from 'fs';
// import yaml from 'js-yaml';

// const svgoConfig = Object.assign({}, yaml.load(fs.readFileSync(process.cwd() + '/.svgorc.yml', 'utf8')));

// module.exports = function () {
// this.extendBuild((config) => {
// config.module.rules = config.module.rules.map((rule) => {
// if (rule.test && rule.test.toString().includes('svg')) {
// const source = rule.test.source.replace(/svg\|?/, '');
// // eslint-disable-next-line security/detect-non-literal-regexp
// return { ...rule, test: new RegExp(source, rule.test.flags) };
// } else {
// return rule;
// }
// });

// config.module.rules.push({
// test: /\.svg$/,
// oneOf: [
// {
// resourceQuery: /vue-template/,
// use: [
// {
// loader: 'babel-loader',
// options: {
// presets: [
// '@babel/preset-env'
// ]
// }
// },
// {
// loader: 'vue-svg-loader',
// options: { svgo: svgoConfig }
// }
// ]
// },
// {
// use: [
// {
// loader: 'url-loader',
// options: {

// }
// }
// ]
// }
// ]
// });
// });
// };
144 changes: 144 additions & 0 deletions playground/layouts/default copy.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<template>
<div>
<organism-page-header v-model="menuOpened" v-bind="pageHeader" />
<nuxt :inert="menuOpened" />
<info-layer v-if="!disableInfoLayer" critical />
<github-corner />
<google-lighthouse />
</div>
</template>

<script>
import 'wicg-inert';
import speedkitHydrate from '#speedkit/hydrate';
import InfoLayer from '@/components/InfoLayer';
export default {
components: {
InfoLayer,
GithubCorner: speedkitHydrate(() => import(/* webpackMode: "eager" */ '@/components/atoms/GithubCorner')),
GoogleLighthouse: speedkitHydrate(() => import(/* webpackMode: "eager" */ 'nuxt-speedkit/components/GoogleLighthouse')),
OrganismPageHeader: speedkitHydrate(() => import(/* webpackMode: "eager" */ '@/components/organisms/PageHeader'))
},
data () {
return {
disableInfoLayer: String(process.env.DISABLE_INFO_LAYER).toLowerCase() === 'true',
menuOpened: false,
pageHeader: {
lists: [
{
links: [
{
title: 'Home',
to: '/'
}
]
},
{
headline: 'Test',
links: [
{
title: 'v-font',
to: '/tests/v-font/'
},
{
title: 'v-font (media)',
to: '/tests/v-font-media/'
},
{
title: 'v-font (scroll)',
to: '/tests/v-font-scroll/'
},
{
title: 'Picture',
to: '/tests/picture/'
},
{
title: 'Image',
to: '/tests/image/'
},
{
title: 'Youtube',
to: '/tests/youtube/'
},
{
title: 'Vimeo',
to: '/tests/vimeo/'
},
{
title: 'Iframe',
to: '/tests/iframe/'
}
]
}
]
}
};
},
head () {
return {
title: `${this.$route.name} | nuxt-speedkit`,
meta: [
{
hid: 'description',
name: 'description',
content: `${this.$route.name} - description`
}
]
};
}
};
</script>

<style lang="postcss">
html {
height: stretch;
}
body {
min-height: 100vh;
min-height: stretch;
margin: 0;
color: #000;
background-color: #fff;
@media (prefers-color-scheme: dark) {
color: #fff;
background-color: #333;
}
@media (width >= 375px) {
font-size: vw(16, 375);
}
@media (width >= 576px) {
font-size: vw(16, 576);
}
@media (width >= 768px) {
font-size: vw(16, 768);
}
@media (width >= 992px) {
font-size: vw(16, 992);
}
@media (width >= 1200px) {
font-size: 16px;
}
}
.page-enter-active,
.page-leave-active {
transition: opacity 0.5s;
}
.page-enter,
.page-leave-to {
opacity: 0;
}
</style>
Loading

0 comments on commit 5632c68

Please sign in to comment.