sindresorhus / generator-electron Goto Github PK
View Code? Open in Web Editor NEWScaffold out an Electron app boilerplate
Home Page: https://github.com/sindresorhus/electron-boilerplate
License: MIT License
Scaffold out an Electron app boilerplate
Home Page: https://github.com/sindresorhus/electron-boilerplate
License: MIT License
Do you have a script or process to commit/push on electron-boilerplate foreach success Travis build on master branch ?
Or you do that manually ?
When i installed generator-electron and run command yo electron i bash says:
yo: command not found
Just wondering where in the generator does it add the ES6 support or if it just comes natively in Electron?
I get this when i try npm start
companyName is now a required option to crashReporter.start
Is this generator intended for the boilerplate only? No build process? I've tried npm build
but nothing happens, unlike npm test
and npm start
which works just fine. I'm using latest version
Spent some hours debugging a problem with my build. The problem turned out to be with gulp-vinyl-zip, caused by this package having a folder named "dist". Some of the files in the library were ignored.
It would be great to integrate chokidar to watch files and automatically restart an electron app on any changes. So, we don't need to manually restart the app while developing it.
I wrongly pressed Enter when asked for website URL, and the generator crashed. Would it be like asking for GitHub usernames, which warns user of the empty value?
? What is the URL of your website?
/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:77
throw e;
^
Error: Invalid URL
at module.exports (/usr/local/lib/node_modules/generator-electron/node_modules/normalize-url/index.js:56:9)
at Object.prompt.filter (/usr/local/lib/node_modules/generator-electron/app/index.js:34:12)
at /usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/run-async/index.js:26:25
at /usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/run-async/index.js:25:19
at /usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/prompts/base.js:88:12
at tryCatcher (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:63:31)
at InnerObserver.Rx.FlatMapObservable.InnerObserver.next (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:2140:43)
at InnerObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:1762:31)
at InnerObserver.tryCatcher (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:63:31)
at AutoDetachObserverPrototype.next (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:5883:51)
It's only used in three places: package.json
, license
, and readme.md
.
These locations could easily be edited in by the user later, if they don't want to immediately provide a website url.
http://yeoman.io/blog/release-0.18.html
Help welcome :)
Fatal error: Unable to parse version string when packaging app for platform win32 ia32 using electron on Windows 10. And I find the problem occurs in the package.json
"scripts": {
"test": "xo",
"start": "electron .",
"build": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --all"
},
the generator-electron should use %npm_package_version% instead of $npm_package_version in windows
generator-electron/app/index.js
Lines 48 to 58 in 7fcfd9f
I see that there is a gitignore file in the source for this project, but one is not created when the yo generator is run.
Are you against that ?
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.