https://github.com/qddjs/qbundler
A single-file app bundler
https://github.com/qddjs/qbundler
bundler installer nodejs nodejs-modules
Last synced: 30 days ago
JSON representation
A single-file app bundler
- Host: GitHub
- URL: https://github.com/qddjs/qbundler
- Owner: qddjs
- License: mit
- Created: 2018-09-23T20:25:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T20:25:54.000Z (over 7 years ago)
- Last Synced: 2024-04-14T09:10:42.222Z (about 2 years ago)
- Topics: bundler, installer, nodejs, nodejs-modules
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# qbundler
Given a node app (in its fully installed state) with a `package-lock.json`,
**`qbundler`** will create a bundled file containing all the app's JavaScript
files. When the file is run, it will be run with [`qdd`](https://npm.im/qdd)'s
`qdd-node` automatically, with an in-line package-lock, so dependencies will be
installed to and loaded from the `qdd` cache.
[`webpack`](https://npm.im/webpack) is used to create the bundle. At the moment,
only default options are supported (e.g. no support for non-JS files in your
app's directory).
> Note: This is pretty experimental and might break with many apps. It's really
> just at the proof-of-concept stage right now.
Install it globally and pass it a relative path to your entrypoint file. The
`package-lock.json` will be read from the current working directory.
### Example
```
$ npm i -g qdd # qdd must be installed globally for the loader to work
$ npm i # make sure everything is in place for the bundler
$ npx qbundler ./index.js
bundle written to $PWD/index.qbundled.js
$ cp index.qbundled.js /tmp/ # putting it in a completely different place
$ cd /tmp
$ node index.qbundled.js
# app works!
```
## Contributing
See CONTRIBUTING.md.
This project uses the Developer's Certificate of Origin. See DCO.txt.
## Code of Conduct
See CODE_OF_CONDUCT.md.
## License
MIT License. See LICENSE.txt.