Skip to content

Commit b7801ea

Browse files
author
dmitriyakkerman
committed
initial
0 parents  commit b7801ea

File tree

16 files changed

+16277
-0
lines changed

16 files changed

+16277
-0
lines changed

.eslintrc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
root: true,
3+
4+
env: {
5+
node: true
6+
},
7+
8+
'extends': [
9+
'plugin:vue/essential',
10+
'eslint:recommended'
11+
],
12+
13+
parserOptions: {
14+
parser: 'babel-eslint'
15+
},
16+
17+
rules: {
18+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
20+
},
21+
22+
overrides: [
23+
{
24+
files: [
25+
'**/__tests__/*.{j,t}s?(x)',
26+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
27+
],
28+
env: {
29+
jest: true
30+
}
31+
}
32+
]
33+
}

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
- run: |
15+
npm ci
16+
npm run build
17+
npm run test

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[![test](https://github.com/dmitriyakkerman/vue-youtube-widget/actions/workflows/test.yml/badge.svg)](https://github.com/dmitriyakkerman/vue-youtube-widget/actions/workflows/test.yml)
2+
# vue-youtube-widget
3+
4+
Simple Vue.js youtube widget for your website using YouTube Api 3.
5+
6+
7+

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
preset: '@vue/cli-plugin-unit-jest'
3+
}

0 commit comments

Comments
 (0)