![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-cli-nwjs
Advanced tools
An ember-cli addon for developing Ember.js applications with NW.js (formerly node-webkit).
ember nw
.ember nw:package
command.Sample apps built with this addon:
Table of Contents:
From the root of your Ember CLI project:
ember install ember-cli-nwjs
This will do the following:
npm install --save-dev ember-cli-nwjs
)ember generate ember-cli-nwjs
)
You can execute ember build --watch
then start up NW.js with a single command:
ember nw
As the app gets rebuilt during development, the NW.js window will automatically reload the current page, so you can see the changes that you made without having to stop and restart the entire process.
The following command line options let you specify a target environment or change the directory where the built assets are stored.
--environment
(String) (Default: 'development')
-e <value>, -dev (--environment=development), -prod (--environment=production)
--output-path
(String) (Default: 'dist/')
-o <value>
This addon is configured to install NW.js from NPM and add it to your project as a local dependency.
To use a different NW.js:
nw
dependency from your project (npm uninstall --save-dev nw
)NW_PATH
that points to the desired binary. For instance, you may have downloaded the executable from the NW.js website and wish to use that instead.nw.exe
has been added to your PATH
, then the NW_PATH
environment variable does not need to be set.ember nw:test
Use this command to run tests in NW.js. ember nw:test
will put Testem in CI mode, so the tests will execute once, then exit.
ember nw:test --server
Adding the --server
flag will put Testem in Dev mode, so NW.js will stay running, and test results can be viewed both in the NW.js window and in Testem's terminal-based UI.
You can pass the following command line options:
--environment
(String) (Default: 'test')
-e <value>, -dev (--environment=development), -prod (--environment=production)
--server
(String) (Default: false)
--protocol
(String) (Default: 'http')
--server
--host
(String) (Default: 'localhost')
--server
-H
--port
(Number) (Default: 7357)
--server
-p
--module
(String)
--server
)-m
--filter
(String)
--server
)-f
ember nw:package
This command builds your Ember app, assembles all the assets necessary for NW.js, then generates the final executable using nw-builder
.
You can pass the following command line options:
--environment
(String) (Default: 'production')
-e <value>, -dev (--environment=development), -prod (--environment=production)
--output-path
(String) (Default: 'dist/')
-o <value>
--config-file
(String) (Default: 'config/nw-package.js')
nw-builder
-f <value>
nw-builder
itself comes with a lot of build options. You can customize any of those settings by supplying a configuration file named config/nw-package.js
in your project, or call ember nw:package
with the --config-file
option set to the desired file.
The configuration file must be a node module that exports a plain object with the names of the options you wish to override as keys:
// config/nw-package.js
module.exports = {
appName: 'my-nw-app',
platforms: ['osx64', 'win64'],
buildType: function() {
return this.appVersion;
}
};
ember-cli-nwjs
sets the following options by default:
['package.json', 'dist/**', 'node_modules/<name>/**']
'node_modules/<name>/**'
is listed for every non-dev npm dependency declared in your project.[<current_platform>]
build/app
build/cache
master
To install the addon from master
, run the following:
git clone git@github.com:brzpegasus/ember-cli-nwjs.git
cd ember-cli-nwjs
npm link
Then, in your Ember CLI project:
ember-cli-nwjs
to your package.json
's dev dependencies so that Ember CLI can discover and register the addon:{
"devDependencies": {
"ember-cli-nwjs": "*"
}
}
ember-cli-nwjs
and go through the addon install steps:npm link ember-cli-nwjs
ember g ember-cli-nwjs
To pass the addon code through the linters during development, run ember build --watch
.
To run the addon's test suite:
cd ember-cli-nwjs
npm install
npm test
This addon was created to help Ember.js developers build applications in NW.js. If you find patterns that work well for you, or would like to suggest ideas to make this addon even better, feel free to open new issues or submit pull requests. I'd love to hear your feedback!
FAQs
An addon for building desktop apps with Ember and NW.js
The npm package ember-cli-nwjs receives a total of 1 weekly downloads. As such, ember-cli-nwjs popularity was classified as not popular.
We found that ember-cli-nwjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.