cna-template
Advanced tools
Comparing version 3.7.1 to 4.0.0
{ | ||
"name": "cna-template", | ||
"version": "3.7.1", | ||
"version": "4.0.0", | ||
"description": "Templates for Create Nuxt App.", | ||
@@ -8,3 +8,4 @@ "files": [ | ||
], | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "1ff74117a91f0edeb7255dd21ec978f8f2d38439" | ||
} |
module.exports = { | ||
customSyntax: 'postcss-html', | ||
extends: [ | ||
'stylelint-config-standard', | ||
'stylelint-config-recommended-vue', | ||
<%_ if (prettier) { _%> | ||
@@ -5,0 +7,0 @@ 'stylelint-config-prettier' |
{ | ||
"dependencies": { | ||
"ant-design-vue": "^1.7.6" | ||
"ant-design-vue": "^1.7.8" | ||
} | ||
} |
@@ -8,13 +8,13 @@ { | ||
"devDependencies": { | ||
"@ava/babel": "^1.0.1", | ||
"@vue/test-utils": "^1.2.1", | ||
"@ava/babel": "^2.0.0", | ||
"@vue/test-utils": "^1.3.0", | ||
"ava": "^3.15.0", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"cross-env": "^7.0.3", | ||
"jsdom": "^16.6.0", | ||
"jsdom": "^19.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"require-extension-hooks": "^0.3.3", | ||
"require-extension-hooks-babel": "^1.0.0", | ||
"require-extension-hooks-vue": "^3.0.0" | ||
"require-extension-hooks-vue": "^2.0.0" | ||
} | ||
} |
import { resolve } from 'path' | ||
import test from 'ava' | ||
import test, { before, after } from 'ava' | ||
import { Nuxt, Builder } from 'nuxt' | ||
@@ -11,3 +11,3 @@ import config from '../../nuxt.config' | ||
// Init Nuxt.js and create a server listening on localhost:4000 | ||
test.before(async () => { | ||
before(async () => { | ||
nuxt = new Nuxt({ | ||
@@ -29,4 +29,4 @@ ...config, | ||
// Close server and ask nuxt to stop listening to file changes | ||
test.after('Closing server and nuxt.js', () => { | ||
after('Closing server and nuxt.js', () => { | ||
nuxt.close() | ||
}) |
{ | ||
"dependencies": { | ||
"balm-ui": "^8.40.4" | ||
"balm-ui": "^8.46.6" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"bootstrap-vue": "^2.21.2", | ||
"bootstrap": "^4.6.0" | ||
"bootstrap": "^4.6.1" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"nuxt-buefy": "^0.4.8" | ||
"nuxt-buefy": "^0.4.13" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"@chakra-ui/nuxt": "^0.3.3", | ||
"@chakra-ui/nuxt": "^0.4.2", | ||
"@nuxtjs/emotion": "^0.1.0" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"element-ui": "^2.15.2" | ||
"element-ui": "^2.15.6" | ||
} | ||
} |
@@ -17,3 +17,3 @@ module.exports = { | ||
<%_ if (typescript) { _%> | ||
"^.+\\.ts$": "ts-jest", | ||
'^.+\\.ts$': 'ts-jest', | ||
<%_ } _%> | ||
@@ -20,0 +20,0 @@ '^.+\\.js$': 'babel-jest', |
@@ -6,9 +6,9 @@ { | ||
"devDependencies": { | ||
"@vue/test-utils": "^1.2.1", | ||
"@vue/test-utils": "^1.3.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^27.0.5", | ||
"jest": "^27.0.5", | ||
"ts-jest": "^27.0.3", | ||
"babel-jest": "^27.4.4", | ||
"jest": "^27.4.4", | ||
"ts-jest": "^27.1.1", | ||
"vue-jest": "^3.0.4" | ||
} | ||
} |
@@ -6,5 +6,5 @@ { | ||
"devDependencies": { | ||
"nightwatch": "^1.7.6", | ||
"chromedriver": "^91.0.1" | ||
"nightwatch": "^1.7.12", | ||
"chromedriver": "^96.0.0" | ||
} | ||
} |
@@ -6,8 +6,8 @@ module.exports = { | ||
docButton: { | ||
selector: '.button--green' | ||
selector: '.button--doc' | ||
}, | ||
githubButton: { | ||
selector: '.button--grey' | ||
selector: '.button--github' | ||
} | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"@oruga-ui/oruga": "^0.4.2" | ||
"@oruga-ui/oruga": "^0.4.8" | ||
} | ||
} |
{ | ||
"devDependencies": { | ||
"@nuxtjs/tailwindcss": "^4.2.0", | ||
"postcss": "^8.3.5" | ||
"@nuxtjs/tailwindcss": "^4.2.1", | ||
"postcss": "^8.4.4" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"vant": "^2.12.22" | ||
"vant": "^2.12.36" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"view-design": "^4.6.1" | ||
"view-design": "^4.7.0" | ||
} | ||
} |
{ | ||
"dependencies": { | ||
"vuetify": "^2.5.5" | ||
"vuetify": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/vuetify": "^1.12.1" | ||
"@nuxtjs/vuetify": "^1.12.3" | ||
} | ||
} |
@@ -6,10 +6,10 @@ { | ||
"devDependencies": { | ||
"@wdio/cli": "^7.7.4", | ||
"@wdio/local-runner": "^7.7.4", | ||
"@wdio/mocha-framework": "^7.7.4", | ||
"@wdio/spec-reporter": "^7.7.3", | ||
"@wdio/sync": "^7.7.4", | ||
"@wdio/cli": "^7.16.11", | ||
"@wdio/local-runner": "^7.16.11", | ||
"@wdio/mocha-framework": "^7.16.11", | ||
"@wdio/spec-reporter": "^7.16.11", | ||
"@wdio/sync": "^7.16.11", | ||
"eslint-plugin-wdio": "^7.4.2", | ||
"webdriverio": "^7.7.4" | ||
"webdriverio": "^7.16.11" | ||
} | ||
} |
{ | ||
"devDependencies": { | ||
"nuxt-windicss": "^1.1.1" | ||
"nuxt-windicss": "^2" | ||
} | ||
} |
@@ -31,9 +31,2 @@ <%_ if (ui === 'vuetify') { _%>import colors from 'vuetify/es5/util/colors' | ||
link: [ | ||
<%_ if (ui === 'framevuerk') { _%> | ||
{ | ||
rel: 'stylesheet', | ||
href: | ||
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' | ||
}, | ||
<%_ } _%> | ||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
@@ -55,6 +48,6 @@ ] | ||
'tachyons/css/tachyons.css' | ||
<%_ } else if (ui === 'framevuerk') { _%> | ||
'framevuerk/dist/framevuerk-nuxt.min.css' | ||
<%_ } else if (ui === 'vant') { _%> | ||
'vant/lib/index.css' | ||
<%_ } else if (ui === 'primevue') { _%> | ||
'primeflex/primeflex.css' | ||
<%_ } _%> | ||
@@ -73,4 +66,2 @@ ], | ||
'@/plugins/balm-ui' | ||
<%_ } else if (ui === 'framevuerk') { _%> | ||
'@/plugins/framevuerk' | ||
<%_ } else if (ui === 'vant') { _%> | ||
@@ -99,3 +90,3 @@ '@/plugins/vant' | ||
<%_ if (ui === 'windicss') { _%> | ||
'nuxt-windicss', | ||
'nuxt-windicss', | ||
<%_ } _%> | ||
@@ -127,2 +118,5 @@ <%_ if (ui === 'tailwind') { _%> | ||
'@nuxtjs/emotion', | ||
<%_ } else if (ui === 'primevue') { _%> | ||
// Doc: https://www.primefaces.org/primevue/showcase-v2/#/setup | ||
'primevue/nuxt', | ||
<%_ } _%> | ||
@@ -145,3 +139,6 @@ <%_ if (axios) { _%> | ||
// Axios module configuration: https://go.nuxtjs.dev/config-axios | ||
axios: {}, | ||
axios: { | ||
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308 | ||
baseURL: '/', | ||
}, | ||
<%_ } _%> | ||
@@ -188,4 +185,7 @@ <%_ if (pwa) { _%> | ||
transpile: [/^element-ui/], | ||
<%_ } else if (ui === 'primevue') { _%> | ||
// https://github.com/primefaces/primevue/issues/844 | ||
transpile: ['primevue'], | ||
<%_ } _%> | ||
} | ||
} |
@@ -15,3 +15,3 @@ module.exports = { | ||
const eslint = linter.includes('eslint') | ||
const lintStaged = eslint && linter.includes('lintStaged') | ||
const lintStaged = linter.includes('lintStaged') | ||
const stylelint = linter.includes('stylelint') | ||
@@ -22,7 +22,17 @@ const prettier = linter.includes('prettier') | ||
eslint: '<%= pmRun %> lint:js', | ||
stylelint: '<%= pmRun %> lint:style' | ||
stylelint: '<%= pmRun %> lint:style', | ||
prettier: '<%= pmRun %> lint:prettier' | ||
} | ||
const lintfixScripts = { | ||
// prettier before eslint to avoid conflicting rules like no-return-assign | ||
// without having to use prettier via eslint (plugin:prettier/recommended) | ||
prettier: 'prettier --write --list-different .', | ||
eslint: "<%= pmRun %> lint:js <%= pm === 'npm' ? '-- ' : '' %>--fix", | ||
stylelint: "<%= pmRun %> lint:style <%= pm === 'npm' ? '-- ' : '' %>--fix" | ||
} | ||
if (!eslint) { | ||
lintStaged && delete pkg['lint-staged']["*.{js,<%= typescript ? 'ts,' : '' %>vue}"] | ||
delete lintScripts.eslint | ||
delete lintfixScripts.eslint | ||
delete pkg.scripts['lint:js'] | ||
@@ -41,11 +51,18 @@ delete pkg.devDependencies['@nuxtjs/eslint-config'] | ||
if (!stylelint) { | ||
lintStaged && delete pkg['lint-staged']['*.{css,vue}'] | ||
lintStaged && delete pkg['lint-staged']['*.{css,scss,sass,html,vue}'] | ||
delete lintScripts.stylelint | ||
delete lintfixScripts.stylelint | ||
delete pkg.scripts['lint:style'] | ||
delete pkg.devDependencies['@nuxtjs/stylelint-module'] | ||
delete pkg.devDependencies['postcss-html'] | ||
delete pkg.devDependencies.stylelint | ||
delete pkg.devDependencies['stylelint-config-standard'] | ||
delete pkg.devDependencies['stylelint-config-prettier'] | ||
delete pkg.devDependencies['stylelint-config-recommended-vue'] | ||
} | ||
if (!prettier) { | ||
lintStaged && delete pkg['lint-staged']['*.**'] | ||
delete pkg.scripts['lint:prettier'] | ||
delete lintScripts.prettier | ||
delete lintfixScripts.prettier | ||
delete pkg.devDependencies['eslint-config-prettier'] | ||
@@ -59,6 +76,2 @@ delete pkg.devDependencies['stylelint-config-prettier'] | ||
} | ||
if (!lintStaged && !commitlint) { | ||
delete pkg.devDependencies.husky | ||
delete pkg.scripts.prepare | ||
} | ||
@@ -69,3 +82,17 @@ const lintScript = Object.values(lintScripts).join(' && ') | ||
} | ||
const lintfixScript = Object.values(lintfixScripts).join(' && ') | ||
if (lintfixScript) { | ||
pkg.scripts.lintfix = lintfixScript | ||
} | ||
if (!lintStaged && !commitlint) { | ||
delete pkg.devDependencies.husky | ||
delete pkg.scripts.prepare | ||
} else { | ||
// Move prepare to make it the last script | ||
const prepare = pkg.scripts.prepare | ||
delete pkg.scripts.prepare | ||
pkg.scripts.prepare = prepare | ||
} | ||
// Modules | ||
@@ -72,0 +99,0 @@ if (!features.includes('axios')) { |
@@ -7,38 +7,46 @@ { | ||
"generate": "nuxt generate", | ||
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .", | ||
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore", | ||
"lint:js": "eslint --ext \".js<%= typescript ? ',.ts' : '' %>,.vue\" --ignore-path .gitignore .", | ||
"lint:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore", | ||
"lint:prettier": "prettier --check .", | ||
"prepare": "husky install" | ||
}, | ||
"lint-staged": { | ||
"*.{js,vue}": "eslint", | ||
"*.{css,vue}": "stylelint" | ||
"*.{js,<%= typescript ? 'ts,' : '' %>vue}": "eslint --cache", | ||
"*.{css,scss,sass,html,vue}": "stylelint", | ||
"*.**": "prettier --check --ignore-unknown" | ||
}, | ||
"dependencies": { | ||
"@nuxt/content": "^1.14.0", | ||
"@nuxt/content": "^1.15.1", | ||
"@nuxtjs/axios": "^5.13.6", | ||
"@nuxtjs/pwa": "^3.3.5", | ||
"core-js": "^3.15.1", | ||
"nuxt": "^2.15.7" | ||
"core-js": "^3.19.3", | ||
"nuxt": "^2.15.8", | ||
"vue": "^2.6.14", | ||
"vue-server-renderer": "^2.6.14", | ||
"vue-template-compiler": "^2.6.14", | ||
"webpack": "^4.46.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@commitlint/cli": "^12.1.4", | ||
"@nuxt/types": "^2.15.7", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@commitlint/cli": "^15.0.0", | ||
"@nuxt/types": "^2.15.8", | ||
"@nuxt/typescript-build": "^2.1.0", | ||
"@nuxtjs/eslint-config": "^6.0.1", | ||
"@nuxtjs/eslint-config-typescript": "^6.0.1", | ||
"@nuxtjs/eslint-config": "^8.0.0", | ||
"@nuxtjs/eslint-config-typescript": "^8.0.0", | ||
"@nuxtjs/eslint-module": "^3.0.2", | ||
"@nuxtjs/stylelint-module": "^4.0.0", | ||
"@babel/eslint-parser": "^7.14.7", | ||
"eslint": "^7.29.0", | ||
"@nuxtjs/stylelint-module": "^4.1.0", | ||
"@babel/eslint-parser": "^7.16.3", | ||
"eslint": "^8.4.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-nuxt": "^2.0.0", | ||
"eslint-plugin-vue": "^7.12.1", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.3.2", | ||
"stylelint": "^13.13.1", | ||
"stylelint-config-prettier": "^8.0.2", | ||
"stylelint-config-standard": "^22.0.0" | ||
"eslint-plugin-nuxt": "^3.1.0", | ||
"eslint-plugin-vue": "^8.2.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.1.2", | ||
"postcss-html": "^1.3.0", | ||
"prettier": "^2.5.1", | ||
"stylelint": "^14.1.0", | ||
"stylelint-config-prettier": "^9.0.3", | ||
"stylelint-config-recommended-vue": "^1.1.0", | ||
"stylelint-config-standard": "^24.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1078
162089
90