initial commit
This commit is contained in:
23
.changelog_template.hbs
Normal file
23
.changelog_template.hbs
Normal file
@@ -0,0 +1,23 @@
|
||||
### Changelog
|
||||
|
||||
{{#each releases}}
|
||||
{{#if href}}
|
||||
{{#if major}}
|
||||
### [{{title}}]({{href}}) ({{niceDate}})
|
||||
{{else}}
|
||||
#### [{{title}}]({{href}}) ({{niceDate}})
|
||||
{{/if}}
|
||||
{{else}}
|
||||
#### {{title}} ({{niceDate}})
|
||||
{{/if}}
|
||||
{{#each merges}}
|
||||
- {{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
|
||||
{{/each}}
|
||||
{{#each fixes}}
|
||||
- {{commit.subject}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
|
||||
{{/each}}
|
||||
{{#each commits}}
|
||||
- {{#matches message "BREAKING CHANGE"}}**Breaking:** {{/matches}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{/each}}
|
||||
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@@ -0,0 +1,9 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
.env
|
||||
.vscode
|
||||
coverage
|
||||
.nyc_output
|
||||
coverage.lcov
|
||||
.env
|
||||
40
.eslintrc
Normal file
40
.eslintrc
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 8,
|
||||
"sourceType": "script"
|
||||
},
|
||||
"extends": [
|
||||
"airbnb-base",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": [
|
||||
"prettier",
|
||||
"import"
|
||||
],
|
||||
"rules": {
|
||||
"prettier/prettier": "error",
|
||||
"import/no-extraneous-dependencies": [
|
||||
"error", {
|
||||
"devDependencies": [
|
||||
"test/**",
|
||||
"packages/**/test/**",
|
||||
"packages/**/*.test.js"
|
||||
],
|
||||
"optionalDependencies": false,
|
||||
"peerDependencies": false
|
||||
}
|
||||
],
|
||||
"import/order": [
|
||||
"error", {
|
||||
"groups": [
|
||||
"builtin",
|
||||
"external",
|
||||
"internal",
|
||||
"parent",
|
||||
"sibling",
|
||||
"index"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
.DS_Store
|
||||
.*.swp
|
||||
.vscode
|
||||
.env
|
||||
coverage
|
||||
.nyc_output
|
||||
coverage.lcov
|
||||
/lib
|
||||
18
.travis.yml
Normal file
18
.travis.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "12"
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
on_failure: change
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^v[0-9].*$/
|
||||
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM node:12-alpine
|
||||
|
||||
# install/build node modules, with full c build chain
|
||||
WORKDIR /app
|
||||
|
||||
# install youtube-dl
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache ca-certificates \
|
||||
ffmpeg \
|
||||
openssl \
|
||||
python3 \
|
||||
&& pip3 install youtube-dl
|
||||
|
||||
# install app dependencies
|
||||
RUN npm install -g yarn
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install
|
||||
|
||||
WORKDIR /app
|
||||
VOLUME /app/data
|
||||
COPY --from=0 /build .
|
||||
COPY . .
|
||||
ENTRYPOINT ["yarn", "start"]
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2019 Joe Fleming (https://github.com/w33ble)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
11
README.md
Normal file
11
README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# youtube-dl-web
|
||||
|
||||
youtube-dl wrapped in a simple web server.
|
||||
|
||||
[](https://raw.githubusercontent.com/w33ble/youtube-dl-web/master/LICENSE)
|
||||
[](https://www.npmjs.com/package/youtube-dl-web)
|
||||
[](https://nodejs.org/api/documentation.html#documentation_stability_index)
|
||||
|
||||
#### License
|
||||
|
||||
MIT © [w33ble](https://github.com/w33ble)
|
||||
3
lint-staged.config.js
Normal file
3
lint-staged.config.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'*.{js,ts}': ['eslint --fix', 'git add'],
|
||||
};
|
||||
51
package.json
Normal file
51
package.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "youtube-dl-web",
|
||||
"version": "0.0.0",
|
||||
"description": "youtube-dl wrapped in a simple web server",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint '*.{js,ts}' 'src/**/*.{js,ts}'",
|
||||
"test": "npm run lint",
|
||||
"version": "npm-auto-version",
|
||||
"start": "node ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/w33ble/youtube-dl-web.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"files": [
|
||||
"src/",
|
||||
"index.js",
|
||||
"CHANGELOG.md",
|
||||
"AUTHORS.md"
|
||||
],
|
||||
"author": "Joe Fleming (https://github.com/w33ble)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/w33ble/youtube-dl-web/issues"
|
||||
},
|
||||
"homepage": "https://github.com/w33ble/youtube-dl-web",
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"prettier": {
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@w33ble/npm-auto-tools": "*",
|
||||
"eslint": "^6.4.0",
|
||||
"eslint-config-airbnb-base": "^14.0.0",
|
||||
"eslint-config-prettier": "^6.3.0",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"eslint-plugin-prettier": "^3.0.1",
|
||||
"husky": "^3.0.5",
|
||||
"lint-staged": "^9.4.0",
|
||||
"prettier": "^1.16.4"
|
||||
}
|
||||
}
|
||||
3
src/server.js
Normal file
3
src/server.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = function server() {
|
||||
console.log('Server...');
|
||||
};
|
||||
Reference in New Issue
Block a user