mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 03:39:38 +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",
|
||||
"prerelease": "git checkout master && git pull -r",
|
||||
"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:e2e-ssr": "jest test/e2e/ssr",
|
||||
"test:e2e-browser": "jest test/e2e/browser",
|
||||
|
||||
@@ -8,8 +8,10 @@ import defaultsDeep from 'lodash/defaultsDeep'
|
||||
|
||||
const pkg = require('../package.json')
|
||||
|
||||
const version = pkg.version
|
||||
|
||||
const banner = `/**
|
||||
* vue-meta v${pkg.version}
|
||||
* vue-meta v${version}
|
||||
* (c) ${new Date().getFullYear()}
|
||||
* - Declan de Wet
|
||||
* - Sébastien Chopin (@Atinux)
|
||||
@@ -43,15 +45,16 @@ function rollupConfig({
|
||||
values: {
|
||||
// replaceConfig needs to have some values
|
||||
'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')) {
|
||||
replaceConfig.values = {
|
||||
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
return defaultsDeep({}, config, {
|
||||
input: 'src/browser.js',
|
||||
|
||||
Reference in New Issue
Block a user