Socket
Book a DemoInstallSign in
Socket

@existdb/generator-exist

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@existdb/generator-exist

exist-db app boilerplate

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
4
33.33%
Maintainers
3
Weekly downloads
 
Created
Source

generator-exist NPM version Build Status Dependency Status semantic-release

exist app scaffolding

Let Yeoman take care of creating directory and file scaffolds for different types of exist-db EXpath packages. Just answer the prompts about what you want to build, and a sensible directory structure with fully configured readmes, buildfiles, etc will be set up for you.

No more manual closing of html5 tags, inserting app names into config files, or wondering if you actually increase the version number in all the places.

Installation

First, install Yeoman and generator-exist using npm (we assume you have pre-installed node.js).

From GitHub

To install a pre-release version:

npm i -g yo
npm i -g git://github.com/eXist-db/generator-exist.git

Official release

To install a version published to npm:

npm i -g yo
npm i -g @existdb/generator-exist

From Source

Alternatively, if you have cloned this repo from GitHub. You can symlink your local clone into your global node environment. This is particularly useful during development. From inside the folder with the cloned repo:

npm install -g yo
npm i
npm link

Using the Generator

Then generate your new project: Create a new project folder and navigate to it in you CLI.

mkdir myApp
cd myApp

Then run the generator. If you installed from source or GitHub,

yo exist

or if you installed from npm:

yo @existdb/exist

asciicast

Note: If you told yeoman to use Github for your new project, your project will start initialized with all files added, out of the box.

Some of the answers, such as username will be stored after the initial run of the generator. So you only have to type them once.

Development

If you want to contribute another template or option, please take a look at the issue tracker. Pull request are always welcome. This generator uses mocha for unit testing. Please make sure to add tests when opening a PR.

License

MIT © Duncan Paterson

Keywords

exist

FAQs

Package last updated on 09 Nov 2018

Did you know?

Socket

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.

Install

Related posts