13 Star 123 Fork 54

Gitee 极速下载 / vue-devtools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/vuejs/vue-devtools
克隆/下载
sign-firefox.js 920 Bytes
一键复制 编辑 原始数据 按行查看 历史
/* eslint-disable no-console */
const path = require('node:path')
const fs = require('node:fs')
const execa = require('execa')
const credFile = path.resolve(__dirname, '.amo.env.json')
if (!fs.existsSync(credFile)) {
fs.writeFileSync(credFile, JSON.stringify({
apiKey: '',
apiSecret: '',
}, null, 2), { encoding: 'utf8' })
console.log('Please provide Mozilla API credentials in .amo.env.json\nhttps://addons.mozilla.org/developers/addon/api/key/')
process.exit(1)
}
const creds = JSON.parse(fs.readFileSync(credFile, {
encoding: 'utf8',
}))
const child = execa('web-ext', [
'sign',
'--api-key',
creds.apiKey,
'--api-secret',
creds.apiSecret,
'-s',
'packages/shell-chrome',
'-a',
'dist',
'-i',
'src',
'--id',
'{c087fa6e-b59f-475d-b08d-f03fef34fa7f}',
], {
shell: true,
stdio: ['inherit', 'inherit', 'inherit'],
})
child.on('exit', (code) => {
process.exit(code)
})
JavaScript
1
https://gitee.com/mirrors/vue-devtools.git
git@gitee.com:mirrors/vue-devtools.git
mirrors
vue-devtools
vue-devtools
main

搜索帮助