anonyfox / node-webkit-hipster-seed Goto Github PK
View Code? Open in Web Editor NEWBootstrap a crossplatform Desktop Application using tools you probably never heard of.
License: Other
Bootstrap a crossplatform Desktop Application using tools you probably never heard of.
License: Other
I get the following errors/warnings when I tried the first command from the readme:
brunch new https://github.com/Anonyfox/node-webkit-hipster-seed MyApp
05 Sep 08:28:12 - error: Error: npm WARN deprecated [email protected]: WARNING: This module has been renamed to grunt-nw-builder. Install using grunt-nw-builder instead, grunt-node-webkit-builder will no longer be updated.
npm WARN engine [email protected]: wanted: {"node":"~0.6.10 || 0.8 || 0.9 || 0.10"} (current: {"node":"0.12.2","npm":"2.7.5"})
bower ECONFLICT Unable to find suitable version for angular
npm WARN deprecated [email protected]: WARNING: This module has been renamed to nw-builder. Install using nw-builder instead, node-webkit-builder will no longer be updated.
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.5"})
When using npm run compiler it does not close or kill task once it is completed. This causes issues with certain plugin in IDE's where you can set the shortcuts and speed up compiling and running. Is there a fix for this.
Hi @Anonyfox,
I'm a member of a GitHub organisation called NW Utils (https://github.com/nwutils/). I'm trying to consolidate NW tooling so it's easier to find useful projects and give much needed life to stagnant ones.
Hope to chat soon!
Best Regards
Ayush
Hi,
As my app got bigger and bigger I wanted to change the folder architecture using the following scaffholding:
src
|----app
|-------feature1
|----------feature.controller.js
|----------feature.spec.js
|----------feature.styl
|----------feature.tpl.jade
|-------feature2
|----------feature.controller.js
|----------feature.spec.js
|----------feature.styl
|----------feature.tpl.jade
.........
|----assets
|----common
|----styl
index.jade
This got me a lot of trouble:
first renaming 'app' to 'src':
Changing the folder name in config.coffee doesn't seem to be enough to ensure the build, maybe I don't get how brunch works but is there another file I need to change?
second, putting all my jade templates into each features folder:
What is the correct approach to do this? I am not sure I get this part in config.coffee:
```joinTo:
```'js/dontUseMe' : /^app/ # dirty hack for Jade compiling.
Many thanks for the help
I've been using node canvas module on my application and it crashes on Windows 7 x64. Digging further I've realized the problem is related to native modules. Any help on this ?
That's a task with high priority and incredible important for developers. Planned database types:
With the exception of the leightweight NeDB, all the technology is already built-in. There is just some work to do to improve the ease of use.
Calls to require result in an AssertionError
:
http = require('http')
# => AssertionError: missing path
I'm not sure what's quite going on. Can anyone reproduce this error?
Should nodewebkit also be installed globally for the app to run ?
here is the log
h:\hipster>npm run app
> [email protected] app h:\hipster
> nodewebkit _public
'nodewebkit' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! weird error 1
npm ERR! not ok code 0
node 0.10.22 installed
hipster brunched
on Mac-OS Mavericks
testing the example code without any edit
When I do 'npm run install' it return the next:
[email protected] app /Users/xxxx/xxxx
nodewebkit _public
2014-04-04 12:32:25.605 node-webkit[2048:507] Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
[2048:0404/123225:WARNING:shell_main_delegate.cc(194)] es-ES.pak file not found.
2014-04-04 12:32:25.939 node-webkit Helper[2049:507] Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
[2049:0404/123225:WARNING:shell_main_delegate.cc(194)] es-ES.pak file not found.
2014-04-04 12:32:26.148 node-webkit Helper[2050:507] Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
[2050:0404/123226:WARNING:shell_main_delegate.cc(194)] es-ES.pak file not found.
..And when I do 'npm run deploy' the progress is blocked on 79%:
Running "nodewebkit:src" (nodewebkit) task
Downloading: http://dl.node-webkit.org/v0.8.3/node-webkit-v0.8.3-win-ia32.zip
Downloading: http://dl.node-webkit.org/v0.8.3/node-webkit-v0.8.3-osx-ia32.zip
Downloading: http://dl.node-webkit.org/v0.8.3/node-webkit-v0.8.3-linux-ia32.tar.gz
Downloading: http://dl.node-webkit.org/v0.8.3/node-webkit-v0.8.3-linux-x64.tar.gz
Unzipping: /Users/gangr3na/revolicohipster/revolicohipster/dist/cache/win/0.8.3/node-webkit-v0.8.3-win-ia32.zip
Unzipping: /Users/gangr3na/revolicohipster/revolicohipster/dist/cache/mac/0.8.3/node-webkit-v0.8.3-osx-ia32.zip
#################################################- 97%
Tnx!
This looks really promising. However, I'm used to being able to debug code in my Chrome debugger. But with AngularJS and CoffeeScript, in order to do that, source maps are a critical component. Without source maps, I'd be like the guy in #5 who would rather stick to pure JavaScript. This isn't a "comfort-zone" thing, this is a "I'm a serious developer writing a lot of code and need to be able to debug stuff" kinda thing.
brunch is supposed to be able to create source maps, and from the help section and documentation on their site, it sounds like it's supposed to do this automatically. Is this a node-webkit-seed issue, an issue with brunch, or a CoffeeScript problem?
One thing I'll say in support of JavaScript is it just plain works. These fancy tools are nice and all, until they stop working...
PS D:\Github> brunch new https://github.com/Anonyfox/node-webkit-hipster-seed testapp
14 Nov 08:41:22 - log: Cloning git repo "https://github.com/Anonyfox/node-webkit-hipster-s
14 Nov 08:41:28 - log: Created skeleton directory layout
14 Nov 08:41:28 - log: Installing packages...
> [email protected] install D:\Github\testapp\node_modules\auto-reload-brunch\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
D:\Github\testapp\node_modules\auto-reload-brunch\node_modules\ws>node "C:\Program Files\n
e-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
> [email protected] postinstall D:\Github\testapp\node_modules\nodewebkit
> node scripts/install.js
http://dl.node-webkit.org/v0.8.6/node-webkit-v0.8.6-win-ia32.zip [| ] 16 %
14 Nov 08:42:09 - error: Error: npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: module has been merged into crc32-stream
Since it looks like node-gyp related, I Installed python 2.7 and then it worked.
Not sure if this is an expected behavior, If so maybe we could write python as one of the Prerequisites in readme.md
A version using gulp would be nice, would you accept a pull request with a gulp build?
Use gulp in place of grunt for more hipster.
Followed the instructions, but my install is only partially working:
npm run deploy
works fine (it completes successfully and the resulting binary works great)npm run app
fails with the following error:E:\code\mm3
λ npm run app
> [email protected] app E:\code\mm3
> nodewebkit _public
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
npm ERR! [email protected] app: `nodewebkit _public`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] app script.
npm ERR! This is most likely a problem with the node-webkit-hipster-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodewebkit _public
npm ERR! You can get their info via:
npm ERR! npm owner ls node-webkit-hipster-seed
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "node.exe" "D:\\tools\\nodist\\bin\\node_modules\\npm\\cli.js" "run" "app"
npm ERR! cwd E:\code\mm3
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.6
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! E:\code\mm3\npm-debug.log
npm ERR! not ok code 0
I'm not sure if its related, but if I run npm run compiler
I get the following output:
E:\code\mm3
λ npm run compiler
> [email protected] compiler E:\code\mm3
> brunch watch -P
13 Apr 01:03:01 - error: { [Error: Component must have "E:\code\mm3\bower_components\console-polyfill\bower.json"] code: 'NO_BOWER_JSON' }
13 Apr 01:03:01 - error: Compiling of 'app\styles\app.less' failed. '/bower_components/bootstrap-less/less/reset.less' wasn't found
I tried from powershell/gitbash/cmd, got the same result in all cases. I'm running Windows 8.1 x64
Hi , I am on windows 7 64bit and have installed node-webkit-hipster at h:\hipster
.
But when running
cd hipster
npm run compiler
It tries to find files in h:\
> [email protected] compiler h:\hipster
> brunch watch -P
Error: Current directory is not brunch application root path, as it does not con
tain package.json (Error: Cannot find module 'h:\package.json')
on isolating the issue the brunch command should be brunch watch --server
for windows but that also gives me a couple of errors :
27 Jan 10:53:05 - error: { [Error: Component must have "h:\hipster\bower_compone
nts\jquery\bower.json"] code: 'NO_BOWER_JSON' }
27 Jan 10:53:05 - info: application started on http://localhost:3333/
27 Jan 10:53:06 - error: Compiling of 'app\styles\app.less' failed. '/bower_comp
onents/bootstrap-less/less/reset.less' wasn't found
Looks like I need a karma-node-webkit-launcher.
https://github.com/greenheartgames/greenworks
looks good.
I don't understand why we need to support IE 7 and 8, if the node-webkit is built on the basis of Chromium.
In file app/index.jade
line 12-15.
//if lte IE 7
script(src='http://cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js')
//if lte IE 8
script(src='//html5shiv.googlecode.com/svn/trunk/html5.js')
And before this:
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
Could you explain this line?)
Would it be possible to get python support added to the workflow?
There exists plenty of Python to Javascript compilers.
If not, how can I add it for myself?
PythonJS seems to be most up to date at the moment.
bower's bootstrap-less is for bootstrap v2.3.2, angular-bootstrap's newest versions are for bootstrap 3. The two can do really, really wonky things when combined. (For example, bootstrap 2.3 doesn't define any panel related css classes, as used in the accordion.)
Fortunately, bootstrap 3 is bower-based on its own now, and its only dependency (jquery) is already a dependency here.
Thanks for this project, it was a great starting point for my own node-webkit + brunch project.
However, I found that this project is using out of date packages and code: it's not using the new NW.js (npm: nw
) and auto-reload-brunch doesn't work because of the -P flag and a missing window.brunch.server = 'localhost';
line in index.html.
It's a contentious word with a definition that varies from person to person. It's polarizing, which isn't good for a name of a tool. Just look at the hipster hate out there.
tl;dr: how would I use Backbone and JavaScript instead of Angular and Coffeescript?
First, thanks for putting this project together. I've always been allured by the world of desktop apps, specifically desktop apps for OSX, but as a web developer, I've never been able to make time for learning how to write native desktop apps.
What you've presented here offers me a fantastic opportunity. And I wouldn't mind learning Angular and Coffeescript, but to be able to use the JavaScript language itself and a framework with which I am more familiar would be fantastic. I've always gravitated toward tools that offer less magic and more control.
Most specifically, I want to build a prototype of this, before it can be "Assembly-made."
https://assemblymade.com/raw-box
My wife is a photographer, and having first-hand experience with the challenge of what to do with accumulated RAW files, I'd love to take a whack at this, and sell support for the resulting software through my company Fat Panda. I have all the skills and experience to design the interface and the back-end--more JS and CSS experience than you can shake a stick at!
Your platform is the missing component.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.