Eve is a super simple command line tool for create HTML5 applications. It compiles into a single bundle JS library and module with Browseryfy.
http://blog.dekstroza.io/ulimit-shenanigans-on-osx-el-capitan/
$ npm install -g node-eve
Usage: eve [options] [command]
Commands:
init [name] Initialize an application structure
build [options] [type] [config] Build app width type
start [options] [config] Build an app in develop mode and start webserver
test [options] <unit> Build and start webserver for test
extract [options] Extract all strings for translation
Options:
-h, --help output usage information
-V, --version output the version number
$ eve init myapp
Initialize an application structure.
$ eve build // Alias of ...
$ eve build dev // Compile application of type development. Also provide source map file.
$ eve build dist // Compile application of type production. The code is minified.
$ eve build pub // Compile application of type production. The code is minified and, optionally, obfuscated with jScramble.
// Specify a custom configuration file
$ eve build pub --config config-custom.json
$ eve start
This comand compile the application each time a file is changed. Eve is listening folders:
templates
locales
lib
test
styles
Also it starts a web server, so as to allow the application display in browser. The default port is 5000
but if you change it run the command
$ eve start -p 5001
// Specify a custom configuration file
$ eve start --config config-custom.json
$ eve test ModuleName
$ eve extract -d ./myapp/ -o ./myapp/file.json
Generate file for translations strings. File oupts are po
, json
or txt
. More informations read the documentation of [ets] (https://github.com/vash15/extract-translate-string).
{
"name": "{{APP_NAME}}",
"version": "1.0.0",
"description": "",
"author": "",
"license": "",
"main": "./lib/app.js",
"scripts": {
"start": "eve start",
"dist": "eve build dist"
"pub": "eve build pub",
"pre": "eve build pub --config config-pre-production.json"
},
"eve-language": "es6",
"eve-version": "2.3.0",
"eve-build-date": "2017-4-26"
}
Identify the language of the source code. Possible values: js
, es6
(default is js
). Babelify is used.
Check the version of eve required by the project.
The configuration for watchify. For more information see watchify. Defaults:
{
delay: 500,
ignoreWatch: [ 'bundle.js', 'styles.css', 'package.json', '**/styles/**', '**/node_modules/**' ],
poll: false
}
Punt into object the variables for developement mode.
Punt into object the variables for production mode.
The object is generated based on the compilation mode (development
or production
). Into your app require this object for read the variables.
This is a file configuration for eve.
Params:
editor
: this field indicates the editor that will open when the user clicks on the notification.
{
"editor": "atom"
}
If EMFILE
file error is triggered use the command ulimit -n 2048
to fix it.