Skip to content

Commit

Permalink
Fix #10 Change files provider for testing
Browse files Browse the repository at this point in the history
Feat #12 Refactor NodeDownloader and upgrade node-downloader package
  • Loading branch information
leohubert committed Jun 14, 2022
1 parent aab0381 commit 6f9fc11
Show file tree
Hide file tree
Showing 31 changed files with 21,112 additions and 10,070 deletions.
34 changes: 0 additions & 34 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm version $GITHUB_REF_NAME --no-git-tag-version --allow-same-version
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: echo "Creating release... $GITHUB_REF_NAME"
- name: 'Deploy pre-release'
if: contains(github.ref_name, '-RC') == true
run: hub release create -m "Release $GITHUB_REF_NAME" $GITHUB_REF_NAME --prerelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Deploy release"
if: contains(github.ref_name, '-RC') == false
run: hub release create -m "Release $GITHUB_REF_NAME" $GITHUB_REF_NAME
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
os: [ macos-latest, ubuntu-latest, windows-latest ]

steps:
Expand Down
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
.idea/*
.nyc_output
build
node_modules
test
src/**.js
coverage
*.log
yarn.lock
\dist
\node_modules
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/NodeDownloader.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/conventionalCommit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

15 changes: 0 additions & 15 deletions .vscode/launch.json

This file was deleted.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# NodeDowloader
![Tests](https://github.com/emodyz/NodeDownloader/workflows/Tests/badge.svg)

File Downloader
![NodeDownloader](./assets/NodeDownloader.ts.png)

![Tests](https://github.com/emodyz/NodeDownloader/workflows/Tests/badge.svg)

Multiple Files NodeDownloader

This project was built for emodyz/LauncherMultigaming.
He provide a multiple files download system.
Expand All @@ -15,9 +17,12 @@ He provide a multiple files download system.
- [X] Retries on fail
- [ ] Sync option to delete local extra files


## Documentation

[Documentation](https://emodyz.github.io/NodeDownloader)
[NodeDownloader Documentation](https://emodyz.github.io/NodeDownloader)

## Installing NodeDownloader

COMING SOON
```
npm install @emodyz/node-downloader
```
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
Loading

0 comments on commit 6f9fc11

Please sign in to comment.