Comments (7)
@rstacruz ahuh, what options are you using? Did you try --production
or --side-by-side
option? Do you know who is occupying most of the space?
from nwjs-builder.
ahh, i'll have to try those! what's side-by-side?
from nwjs-builder.
--side-by-side
means not to combine the application package to the executable (that copy /b nw+app.nw app
step).
From #47, I assume you are running nwjs-builder
directly in your project root, which will no doubt include every file in that directory.
You might want to read Development section which I have explained why there isn't an excluding option.
Most of the time you might be using some compilers/transpilers to transform the source code and have a lot of dependencies only used in development stage, along with tests and scripts. They are not going to be packaged when doing a release.
So my suggestion is filling release files to a directory and using nwjs-builder
to pack that directory. So there is no excluding needed :)
from nwjs-builder.
Ahhh, right. My app uses no transpilation (node.js 6 supports most of es6
anyway), so I was pretty concerned about that!
On Tue, Jul 26, 2016, 4:02 PM Evshiron Magicka [email protected]
wrote:
--side-by-side means not to combine the application package to the
executable (that copy /b nw+app.nw app step).
From #47 #47, I assume
you are running nwjs-builder directly in your project root, which will no
doubt include every file in that directory.
You might want to read Development
https://github.com/evshiron/nwjs-builder#development section which I
have explained why there isn't an excluding option.
Most of the time you might be using some compilers/transpilers to
transform the source code and have a lot of dependencies only used in
development stage, along with tests and scripts. They are not going to be
packaged when doing a release.
So my suggestion is filling release files to a directory and using
nwjs-builder to pack that directory. So there is no excluding needed :)—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEikd6vytCrXzOmnS9mI88nbD3zdg4Gks5qZb8qgaJpZM4JU159
.
from nwjs-builder.
Any hints on how to do that? Will I need 2 package.json's?
On Tue, Jul 26, 2016, 4:12 PM Rico Notifications <
[email protected]> wrote:
Ahhh, right. My app uses no transpilation (node.js 6 supports most of es6
anyway), so I was pretty concerned about that!On Tue, Jul 26, 2016, 4:02 PM Evshiron Magicka [email protected]
wrote:--side-by-side means not to combine the application package to the
executable (that copy /b nw+app.nw app step).
From #47 #47, I assume
you are running nwjs-builder directly in your project root, which will
no doubt include every file in that directory.
You might want to read Development
https://github.com/evshiron/nwjs-builder#development section which I
have explained why there isn't an excluding option.
Most of the time you might be using some compilers/transpilers to
transform the source code and have a lot of dependencies only used in
development stage, along with tests and scripts. They are not going to be
packaged when doing a release.
So my suggestion is filling release files to a directory and using
nwjs-builder to pack that directory. So there is no excluding needed :)—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEikd6vytCrXzOmnS9mI88nbD3zdg4Gks5qZb8qgaJpZM4JU159
.
from nwjs-builder.
node.js 6.x is cool :)
nwjs-builder
used to require extra flags like --harmony-destructuring
to work on node.js 4.x/5.x, and doesn't support legacy versions. But after publishing there were complaints for it and I started to use babel
:)
from nwjs-builder.
@rstacruz No. You can write a build.sh
(or any other task runners) which copies every file you want to include (like package.json
) to a separate directory and call nwjs-builder
to make a bundle of it.
from nwjs-builder.
Related Issues (20)
- Excluding files HOT 2
- native modules stopped working after build HOT 1
- Mirror from cnpmjs HOT 1
- App will not start on OSX Yosemite HOT 16
- Win64 production build : I keep having the default "blank" nwjs page HOT 3
- Generated exe starts slowly on Windows HOT 6
- "AssertionError: undefined == true" HOT 1
- Reading and writing files HOT 2
- ICON missing in .exe when compiling from MAC to WIN HOT 2
- [Feature request] Add a CLI flag to close itself when nw.js starts. HOT 1
- Using `--version` shows an nwjs-builder package version and does nothing (unlike -v). HOT 2
- Dev Tools HOT 1
- Using path which contain binary files for using custom nwjs build HOT 1
- Build a former Chrome Packaged App HOT 3
- TypeError: Incorrect value of args option HOT 1
- Version Phoenix
- nwjs builder not able to build win32 non sdk flavour applications HOT 12
- Not all files get zipped into nw.exe HOT 2
- How to exclude dirs from build HOT 1
- using --with-ffmpeg causes error with version >0.27.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwjs-builder.