2
0
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:
pimlie
2019-08-04 12:23:20 +02:00
parent fac05b54b0
commit 2c46b51549
3 changed files with 13 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"commit-all": true,
"scripts": {
"postbump": "yarn build",
"precommit": "git add -f dist/*"
}
}
-1
View File
@@ -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",
+6 -3
View File
@@ -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',