-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c697585
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up npm | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: push | ||
uses: actions-go/push@master | ||
with: | ||
author-email: [email protected] | ||
author-name: Taromati2 | ||
commit-message: 'file update~' | ||
remote: origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
/node_modules | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "bundle-cdn", | ||
"version": "0.0.0", | ||
"description": "my bundle cdn", | ||
"scripts": { | ||
"build": "rollup -c ./src/rollup.config.mjs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/steve02081504/bundle-cdn.git" | ||
}, | ||
"author": "steve02081504", | ||
"bugs": { | ||
"url": "https://github.com/steve02081504/bundle-cdn/issues" | ||
}, | ||
"homepage": "https://github.com/steve02081504/bundle-cdn#readme", | ||
"dependencies": { | ||
"buffer": "latest", | ||
"node-unrar-js": "latest" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-json": "latest", | ||
"@rollup/plugin-commonjs": "latest", | ||
"@rollup/plugin-node-resolve": "latest", | ||
"@rollup/plugin-terser": "latest", | ||
"rollup": "latest", | ||
"rollup-plugin-polyfill-node": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { Buffer } from 'buffer' | ||
export default Buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import * as exports from 'node-unrar-js' | ||
export default exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { nodeResolve } from '@rollup/plugin-node-resolve' | ||
import terser from '@rollup/plugin-terser' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import json from '@rollup/plugin-json' | ||
import nodePolyfills from 'rollup-plugin-polyfill-node' | ||
|
||
let plugins = [nodeResolve(), commonjs(), nodePolyfills(), json(), terser()] | ||
|
||
export default [ | ||
{ | ||
input: 'packages/buffer.mjs', | ||
output: { | ||
name: 'buffer', | ||
strict: false, | ||
file: 'dist/buffer.js', | ||
format: 'iife', | ||
sourcemap: true | ||
}, | ||
plugins, | ||
}, | ||
{ | ||
input: 'packages/node-unrar-js.mjs', | ||
output: { | ||
name: 'node_unrar_js', | ||
strict: false, | ||
file: 'dist/node-unrar-js.js', | ||
format: 'iife', | ||
sourcemap: true | ||
}, | ||
plugins, | ||
}, | ||
] |