logicalparadox / electron Goto Github PK
View Code? Open in Web Editor NEWDEPRECIATED: A simple command-line interface framework for node.js.
DEPRECIATED: A simple command-line interface framework for node.js.
It seems that http://alogicalparadox.com/electron is down.
It's pretty annoying since the full documentation of electron was only hosted here.
Would it be possible to copy the documentation on the wiki or maybe on https://pages.github.com/ ?
I've created a sample node-gyp project that returns boolean true/false values. It works as expected running under node, but when run under electron-prebuilt the values are incorrectly interpreted.
A sample project can be found here: https://bitbucket.org/kwaaioak/electron-test
Here's the substance of what I'm doing...
In C++:
attributes->Set(Nan::New("should_be_true").ToLocalChecked(), Nan::Newv8::Boolean(true));
attributes->Set(Nan::New("should_be_false").ToLocalChecked(), Nan::Newv8::Boolean(false));
When run under node:
should_be_true = (boolean)true
should_be_false = (boolean)false
When run under electron:
should_be_true = (boolean)false
should_be_false = (string)
This doesn't seem like it should be an Electron issue, but starting here anyway.
$ node -v
v6.2.0
$ node-gyp -v
v3.3.1
$ ./node_modules/.bin/electron -v
v1.2.5
The results are the same whether I'm using electron or electron-prebuilt
argv.param('f', 'formatters')
/cc @vesln
program.showHelp()
/cc @vesln
What's the new package name after electron
has been given to atom-shell?
Hello,
I would just like to highlight the fact that this package has a name conflict with https://github.com/atom/electron, and that it might be a good thing to advertise the fact that a name-conflict exists. (executable file is called electron
in both packages)
Thanks
Approaching the second quarter of 2016 and the documentation site appears to have been down for about 6 months, judging from the dates of the other two reported issues about the site being down.
I was hoping to find out more about this project because it's a core dependency in nightmareJS. I'm running nightmareJS on a linux ec2 server and electron doesn't appear to be compatible with linux.
I'm going to try to follow the instructions here and see if I get anywhere.
If I find a fix I'll post what I did, here.
Just a kind ask if you could add a warning when installing the package. Its very common to end up with the wrong package.
Your documentation site is down
Hello, for some reason when I installed electron package (I'm calling electron from the UI with web pack because I need to execute an ipcRendered event) now I'm getting this error when I run web pack.
ERROR in ./~/electron/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./lib-cov/electron in /Users/gonzalo/Documents/Bitbucket/Desktop/node_modules/electron
@ ./~/electron/index.js 4:4-33
ERROR in ./~/electron/~/drip/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./lib-cov/drip in /Users/gonzalo/Documents/Bitbucket/Desktop/node_modules/electron/node_modules/drip
@ ./~/electron/~/drip/index.js 2:4-29
ERROR in ./~/electron/~/drip/~/tea-concat/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./lib-cov/concat in /Users/gonzalo/Documents/Bitbucket/Desktop/node_modules/electron/node_modules/drip/node_modules/tea-concat
@ ./~/electron/~/drip/~/tea-concat/index.js 2:4-31
This is because for some reason process.env.ELECTRON_COV is true...
Thanks
program = require('electron')('triton')
program
.name('Triton')
.version('1.0.0')
program
.command('server')
.desc('Start Web Server')
.option('-p, --port [8888]', "HTTP Port")
.option("-d, --directory [/var/www]", "Root Directory")
.action (argv) ->
console.log
port: argv.param('p', 'port')
directory: argv.param('d', 'directory')
program.parse()
$ coffee triton.coffee server
{ port: 8888, directory: '/var/www' }
$ coffee triton.coffee server
{ port: null, directory: null }
I see that lib/electron/command.js does parse the default value, however it doesn't appear to be exposed anywhere.
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.