Ether
Status
Description
Ether is a simple tool to make scaffolding easy, and fun in a programmatic way.
Installation
[sudo] npm i ether
Ether file
Example
'use strict';var path = ;var ether = ;var nodeModule = ; nodeModule; nodeModule; nodeModule; nodeModule; moduleexports = exports = nodeModule;
Install the cli
[sudo] npm i -g ether
Use the cli tool, to run scaffolding, to generate new applications.
Use the '--install' option
ether -i etherfile.js
The install option use the etherfile.js
or and module installed.
To run make tasks registered in the etherfile use
ether -u [etherfile] -m [task-name]
Global scaffolding
[sudo] npm i -g ether-node-module
and
ether -i ether-node-module or ether -i node_modules/ether-node-module
Or using this way to install one scaffolding from npm, and run this scaffolding app.
API
Instance
var app = ;
Instantiation of the scaffolding.
Get and Set
app;
and
app;
Get and Set, modify the context of the instance.
Task
app;
using the task
method you can create new methods to reuse in the instance,
of the current scaffolding app.
Default tasks
Mkdir
app;
On the destiny dir, this task create an new directory
Copy
app;
That task make a copy of an file
Template
app;
This task make a copy and replace variables from context of the instance of the scaffolding, to another new file.
Prompt
app;
To put variables using the interactive mode in the context of the instance, use this method.
Download
app;
To make download of an file and put in the project replacing, variables.
Run
app;
This method run tasks previously defined.
Make
app;
The make
method can register a bunch of tasks.
Make run
app;
And run a bunch of tasks.
Note
[WIP]
Created by Kaique da Silva kaique.developer@gmail.com