chore: remove npm ad
parent
4a7fcf95f5
commit
a20b49b808
|
@ -36,14 +36,13 @@
|
|||
"pub": "node antd-tools/cli/run.js pub",
|
||||
"pub-with-ci": "node antd-tools/cli/run.js pub-with-ci",
|
||||
"prepublish": "node antd-tools/cli/run.js guard",
|
||||
"pre-publish": "node ./scripts/prepub",
|
||||
"pre-publish": "node ./scripts/prepub && npm run generator-webtypes",
|
||||
"prettier": "prettier -c --write '**/*'",
|
||||
"pretty-quick": "pretty-quick",
|
||||
"dist": "node --max_old_space_size=6144 antd-tools/cli/run.js dist",
|
||||
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.ts,.tsx ./components",
|
||||
"lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
|
||||
"codecov": "codecov",
|
||||
"postinstall": "node scripts/postinstall || echo \"ignore\""
|
||||
"codecov": "codecov"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
const env = process.env;
|
||||
const ADBLOCK = is(env.ADBLOCK);
|
||||
const CI = is(env.CI);
|
||||
const COLOR = is(env.npm_config_color);
|
||||
const DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE);
|
||||
const SILENT = !!~['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel);
|
||||
|
||||
function is(it) {
|
||||
return !!it && it !== '0' && it !== 'false';
|
||||
}
|
||||
|
||||
function log(it) {
|
||||
// eslint-disable-next-line no-console,no-control-regex
|
||||
console.log(COLOR ? it : it.replace(/\u001B\[\d+m/g, ''));
|
||||
}
|
||||
|
||||
if (!ADBLOCK && !CI && !DISABLE_OPENCOLLECTIVE && !SILENT) {
|
||||
log(
|
||||
'\u001B[96mThank you for using ant-design-vue (\u001B[94m https://github.com/vueComponent/ant-design-vue \u001B[96m)!\u001B[0m\n',
|
||||
);
|
||||
log(
|
||||
'\u001B[96mThe project needs your help! Please consider supporting of ant-design-vue on Open Collective or Patreon: ' +
|
||||
'\u001B[0m',
|
||||
);
|
||||
log('\u001B[96m>\u001B[94m https://opencollective.com/ant-design-vue \u001B[0m');
|
||||
log('\u001B[96m>\u001B[94m https://www.patreon.com/tangjinzhou \u001B[0m\n');
|
||||
log('\u001B[96m更多赞助方式(支付宝、微信、Paypal)请查看如下链接: ' + '\u001B[0m');
|
||||
log('\u001B[96m>\u001B[94m https://www.antdv.com/docs/vue/sponsor-cn \u001B[0m\n');
|
||||
log('\u001B[96mAnt Design Vue 官方网站: \u001B[0m');
|
||||
log('\u001B[96m>\u001B[94m https://www.antdv.com/ \u001B[0m\n');
|
||||
}
|
Loading…
Reference in New Issue