Skip to content

danielrohers/task-scripted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripted

Scripted' application to run JS files once.

Inspired Rails migrations, Scripted was created to run JS scripts only once, based on scripts already saved in the collection scripts in MongoDB.

npm version npm

Example: 1433298714535-for.js

$ scripted -c for
$ scripts/1433298714535-for.js created

Installation

$ npm install -g task-scripted

Configuration

You must configure MongoDB, it can be done using mongoose.json or environment variable MONGO_SCRIPTED.

mongoose.json
$ scripted -m
{
  "url" : "mongodb://localhost:27017/scripted"
}
Environment variable

In your .bash_profile or similar

export MONGO_SCRIPTED=mongodb://localhost:27017/scripted

Command Line Options

Usage: scripted [options]

Options:

-h, --help      output usage information
-V, --version   output the version number
-c, --create    Create script
-e, --execute   Execute scripts
-m, --mongoose  Create mongoose.json (optional)
-s, --scripted  Create scripted-template.js (optional)

Technologies

License

MIT

About

Scripted' application to run JS files once.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published