Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmiras/next-pkg
Extended Next.js server with pkg support
https://github.com/fmiras/next-pkg
binary next nextjs pkg react server-side-rendering
Last synced: 12 days ago
JSON representation
Extended Next.js server with pkg support
- Host: GitHub
- URL: https://github.com/fmiras/next-pkg
- Owner: fmiras
- License: mit
- Archived: true
- Created: 2018-02-08T18:58:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-05T14:36:57.000Z (about 2 years ago)
- Last Synced: 2024-08-02T08:06:52.480Z (3 months ago)
- Topics: binary, next, nextjs, pkg, react, server-side-rendering
- Language: JavaScript
- Size: 425 KB
- Stars: 66
- Watchers: 5
- Forks: 11
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![img](https://imgur.com/tsfURMV.png)
[![NPM version](https://img.shields.io/npm/v/next-pkg.svg)](https://www.npmjs.com/package/next-pkg)
[![Build Status](https://travis-ci.org/fmiras/next-pkg.svg?branch=master)](https://travis-ci.org/fmiras/next-pkg)
[![Build status](https://ci.appveyor.com/api/projects/status/mnexxl2i3fpkevpw?svg=true)](https://ci.appveyor.com/project/fmiras/next-pkg)
[![Dependabot](https://badgen.net/badge/Dependabot/enabled/green?icon=dependabot)](https://dependabot.com/)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standard/standard)
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/next-js)Next-Pkg is a package for compiling your [Next.js](https://github.com/zeit/next.js) project with [pkg](https://github.com/zeit/pkg). This is how you can deploy your Next.js apps on enviroments without node installed! (And take advantage of all the other pkg features)
## Usage
```bash
cd my-next-js-project/
npm install --save next-pkg pkg
```and add a script to your package.json like this:
```json
{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"dist":"next-pkg"
}
}
```then just run `npm run dist` and you will find on `dist` folder your next.js binary compiled project.
## Contributing
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Link the package to the global module directory: `npm link`
3. Within the module you want to test your local development instance of next-pkg, just link it to the dependencies: `npm link next-pkg`. Instead of the default one from npm, node will now use your clone of Next-Pkg!## Credits
Thanks to [ZEIT](https://zeit.co) Team for giving us this two amazing tools to make our life easier!