mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-18 07:58:40 +00:00
node版本说明:about.md
不适用pug
This commit is contained in:
parent
e7adf25ccf
commit
33dcc6251b
BIN
docs/about/098511ee.png
Normal file
BIN
docs/about/098511ee.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/about/6db62665.png
Normal file
BIN
docs/about/6db62665.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
docs/about/7f59e923.png
Normal file
BIN
docs/about/7f59e923.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
BIN
docs/about/bc372062.png
Normal file
BIN
docs/about/bc372062.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -1,3 +1,5 @@
|
||||
core/*.js
|
||||
core/*/*.js
|
||||
core/**/*.js
|
||||
build/*.js
|
||||
|
||||
src/**/*.*
|
||||
|
@ -20,12 +20,13 @@ module.exports = {
|
||||
'html'
|
||||
],
|
||||
// add your custom rules here
|
||||
'rules': {
|
||||
rules: {
|
||||
// allow paren-less arrow functions
|
||||
'arrow-parens': 0,
|
||||
// allow async-await
|
||||
'generator-star-spacing': 0,
|
||||
// allow debugger during development
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
||||
'indent': ['error', 'tab'],
|
||||
}
|
||||
}
|
||||
|
21
template/About.md
Normal file
21
template/About.md
Normal file
@ -0,0 +1,21 @@
|
||||
### 特别注意:
|
||||
项目使用的node版本为8.+,否则会遇到这个问题:
|
||||
|
||||
https://github.com/YuraDev/vue-chrome-extension-template/issues/19
|
||||
|
||||
我使用的是8.4.0
|
||||
## 怎么切换node版本
|
||||
`mac`
|
||||
> 安装`n`扩展包: sudo npm i n -g
|
||||

|
||||
|
||||
> 安装指定版本node: sudo n 8.4.0
|
||||

|
||||
|
||||
> 切换版本: sudo n
|
||||

|
||||
|
||||
> 验证node版本: node -v
|
||||

|
||||
`win`
|
||||
- 补充...
|
4970
template/package-lock.json
generated
4970
template/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,6 +18,7 @@
|
||||
"scripts": {
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"dev": "webpack --config ./core/webpack.dev.js --hide-modules",
|
||||
"dev-info": "webpack --config ./core/webpack.dev.js",
|
||||
"build": "webpack --config ./core/webpack.prod.js -p --progress --hide-modules --colors"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -31,7 +32,7 @@
|
||||
"babel-register": "^6.26.0",
|
||||
"buble": "^0.16.0",
|
||||
"buble-loader": "^0.4.1",
|
||||
"clean-webpack-plugin": "^0.1.17",
|
||||
"clean-webpack-plugin": "^0.1.19",
|
||||
"copy-webpack-plugin": "^4.2.0",
|
||||
"cross-env": "^5.1.0",
|
||||
"css-loader": "^0.28.7",
|
||||
|
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import root from './root.vue'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
|
@ -3,11 +3,12 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
}),
|
||||
data: () => ({}),
|
||||
computed: {},
|
||||
created () { },
|
||||
mounted () { },
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
module.exports = {
|
||||
name: 'Vue Extension',
|
||||
version: '1.0.0',
|
||||
|
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import root from './root.vue'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
|
@ -3,11 +3,12 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
}),
|
||||
data: () => ({}),
|
||||
computed: {},
|
||||
created () { },
|
||||
mounted () { },
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
@ -1,14 +1,17 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
el-button(type="primary" @click="tab") New tab
|
||||
<template>
|
||||
<div>
|
||||
666
|
||||
<el-button type="primary" @click="tab">test</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
}),
|
||||
data: () => ({}),
|
||||
computed: {},
|
||||
created () { },
|
||||
mounted () { },
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
tab() {
|
||||
chrome.tabs.create({url: 'pages/app.html'})
|
||||
|
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import root from './root.vue'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
|
@ -1,13 +1,19 @@
|
||||
<template lang="pug">
|
||||
div tab
|
||||
<div>
|
||||
<button>222</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
}),
|
||||
data: () => ({}),
|
||||
computed: {},
|
||||
created () { },
|
||||
mounted () { },
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user