npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-eve

v3.2.0

Published

Eve command line tools for browserify projects

Downloads

71

Readme

EVE - Command line tool

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/

Install

$ npm install -g node-eve

Usage

	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 [name]

$ eve init myapp

Initialize an application structure.

eve build [type] [config]

$ 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 [options] [config]

$ 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

$ eve test ModuleName

eve extract

$ 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).

Packege.json of your app

{
	"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"
}

eve-language

Identify the language of the source code. Possible values: js, es6 (default is js). Babelify is used.

eve-version (not implemented yet)

Check the version of eve required by the project.

eve-watchify

The configuration for watchify. For more information see watchify. Defaults:

	{
		delay: 500,
		ignoreWatch: [ 'bundle.js', 'styles.css', 'package.json', '**/styles/**', '**/node_modules/**' ],
		poll: false
	}

config-developement.json file

Punt into object the variables for developement mode.

config-production.json file

Punt into object the variables for production mode.

config.json file

The object is generated based on the compilation mode (development or production). Into your app require this object for read the variables.

.everc file

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"
}

Tips & Tricks

File limit

If EMFILE file error is triggered use the command ulimit -n 2048 to fix it.