mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 01:30:33 +03:00
chore: use std-ver hooks
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"commit-all": true,
|
||||||
|
"scripts": {
|
||||||
|
"postbump": "yarn build",
|
||||||
|
"precommit": "git add -f dist/*"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -52,7 +52,6 @@
|
|||||||
"lint": "eslint src test",
|
"lint": "eslint src test",
|
||||||
"prerelease": "git checkout master && git pull -r",
|
"prerelease": "git checkout master && git pull -r",
|
||||||
"release": "yarn lint && yarn test && yarn build && standard-version",
|
"release": "yarn lint && yarn test && yarn build && standard-version",
|
||||||
"postrelease": "yarn build && git add -f dist/* && git commit --amend",
|
|
||||||
"test": "yarn test:unit && yarn test:e2e-ssr && yarn test:e2e-browser",
|
"test": "yarn test:unit && yarn test:e2e-ssr && yarn test:e2e-browser",
|
||||||
"test:e2e-ssr": "jest test/e2e/ssr",
|
"test:e2e-ssr": "jest test/e2e/ssr",
|
||||||
"test:e2e-browser": "jest test/e2e/browser",
|
"test:e2e-browser": "jest test/e2e/browser",
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ import defaultsDeep from 'lodash/defaultsDeep'
|
|||||||
|
|
||||||
const pkg = require('../package.json')
|
const pkg = require('../package.json')
|
||||||
|
|
||||||
|
const version = pkg.version
|
||||||
|
|
||||||
const banner = `/**
|
const banner = `/**
|
||||||
* vue-meta v${pkg.version}
|
* vue-meta v${version}
|
||||||
* (c) ${new Date().getFullYear()}
|
* (c) ${new Date().getFullYear()}
|
||||||
* - Declan de Wet
|
* - Declan de Wet
|
||||||
* - Sébastien Chopin (@Atinux)
|
* - Sébastien Chopin (@Atinux)
|
||||||
@@ -43,15 +45,16 @@ function rollupConfig({
|
|||||||
values: {
|
values: {
|
||||||
// replaceConfig needs to have some values
|
// replaceConfig needs to have some values
|
||||||
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
|
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
|
||||||
|
'process.env.VERSION': `"${version}"`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep simple polyfills when babel plugin is used for build
|
/* / keep simple polyfills when babel plugin is used for build
|
||||||
if (plugins && plugins.some(p => p.name === 'babel')) {
|
if (plugins && plugins.some(p => p.name === 'babel')) {
|
||||||
replaceConfig.values = {
|
replaceConfig.values = {
|
||||||
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
|
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return defaultsDeep({}, config, {
|
return defaultsDeep({}, config, {
|
||||||
input: 'src/browser.js',
|
input: 'src/browser.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user