Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anygen

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anygen - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

19

dist/bin/anygen.js

@@ -12,7 +12,8 @@ #!/usr/bin/env node

.errorsStyle('red');
var name = 'anygen';
var ARGS = yargs
.usage(chalk.green("Version:\n") + (" " + version + "\n\n") +
chalk.green("Usage:\n") + " $0 <command> [<args>] [options]")
chalk.green("Usage:\n") + (" " + name + " <command> [<args>] [options]"))
.command('generate <blueprint_name> <new_module_name> [options]', 'creates a new module.', function (yergs) {
return yergs.pkgConf("anygen")
return yergs.pkgConf("anygen", process.cwd())
.options("b", { alias: "blueprints_root" })

@@ -24,4 +25,12 @@ .options("m", { alias: "modules_root" });

})
.command('g <blueprint_name> <new_module_name> [options]', 'generate alias.', function (yergs) {
return yergs.pkgConf("anygen", process.cwd())
.options("b", { alias: "blueprints_root" })
.options("m", { alias: "modules_root" });
}, function (argv) {
command = true;
Commands_1.Generate(argv);
})
.command('list [--blueprints_root]', 'list all available Blueprints in a directory.', function (yergs) {
return yergs.pkgConf("anygen");
return yergs.pkgConf("anygen", process.cwd());
}, function (argv) {

@@ -41,4 +50,4 @@ command = true;

})
.example('$0 generate ng_component my_new_component', 'generates a new my-new-component using the "ng_component" Blueprint.')
.example('$0 list -b ./src/blueprints', "list all the blueprint within the './src/blueprints' directory.")
.example(name + " generate ng_component my_new_component", 'generates a new my-new-component using the "ng_component" Blueprint.')
.example(name + " list -b ./src/blueprints", "list all the blueprint within the './src/blueprints' directory.")
.epilog(chalk.green("Config file:\n") +

@@ -45,0 +54,0 @@ 'package.json is used as config file, All [' + chalk.cyan('options') + '] are read from the object "' + chalk.blue('anygen') + '" within package.json\n'

@@ -19,2 +19,3 @@ "use strict";

var modules_root = argv["modules_root"];
console.log(modules_root);
var blueprints_root = argv["blueprints_root"];

@@ -21,0 +22,0 @@ var blueprint_name = argv["blueprint_name"];

{
"name": "anygen",
"version": "0.0.2",
"description": "Automatic Scaffolding Generator For Any Project",
"main": "dist/lib/Builder.js",
"repository": {
"type": "git",
"url": "git+https://M-jerez@github.com/M-jerez/gulp-cli-generator.git"
},
"keywords": [
"gulp",
"generator",
"cli",
"scallfolding"
],
"author": "Ma-Jerez",
"license": "ISC",
"bugs": {
"url": "https://github.com/M-jerez/gulp-cli-generator/issues"
},
"homepage": "https://github.com/M-jerez/gulp-cli-generator#readme",
"devDependencies": {
"chai": "^1.10.0",
"mocha": "^2.1.0",
"rimraf": "^2.5.4",
"typedoc": "^0.4.5",
"typescript": "^1.8.10",
"typings": "^1.3.2"
},
"bin": {
"anygen": "dist/bin/anygen.js"
},
"scripts": {
"docs": "node node_modules/typedoc/bin/typedoc --out ./docs/ ./src/lib/ ./src/fs-extra/ ./typings/index.d.ts --mode modules && cp ./tools/.nojekyll ./docs/.nojekyll",
"test": "node node_modules/mocha/bin/mocha dist/test/*.spec.js --reporter spec",
"precompile": "npm run clean && npm run docs",
"clean": "rimraf dist/*",
"compile": "npm run compile:ts",
"compile:ts": "tsc"
},
"dependencies": {
"fs-extra": "^0.30.0",
"yargonaut": "^1.1.2",
"yargs": "^5.0.0"
},
"anygen": {
"blueprints_root": "./tools/blueprints/",
"modules_root": "./tools/temp/"
}
"name": "anygen",
"version": "0.0.3",
"description": "!!!Automatic Scaffolding Generator For Any Project!!!",
"main": "dist/lib/Builder.js",
"repository": {
"type": "git",
"url": "git+https://M-jerez@github.com/M-jerez/gulp-cli-generator.git"
},
"keywords": [
"generator",
"cli",
"scallfolding"
],
"author": "Ma-Jerez",
"license": "ISC",
"bugs": {
"url": "https://github.com/M-jerez/gulp-cli-generator/issues"
},
"homepage": "https://github.com/M-jerez/gulp-cli-generator#readme",
"devDependencies": {
"chai": "^1.10.0",
"mocha": "^2.1.0",
"rimraf": "^2.5.4",
"typedoc": "^0.4.5",
"typescript": "^1.8.10",
"typings": "^1.3.2"
},
"bin": {
"anygen": "dist/bin/anygen.js"
},
"scripts": {
"docs": "node node_modules/typedoc/bin/typedoc --out ./docs/ ./src/lib/ ./src/fs-extra/ ./typings/index.d.ts --mode modules && cp ./tools/.nojekyll ./docs/.nojekyll",
"test": "node node_modules/mocha/bin/mocha dist/test/*.spec.js --reporter spec",
"precompile": "npm run clean && npm run docs",
"clean": "rimraf dist/*",
"compile": "npm run compile:ts",
"compile:ts": "tsc"
},
"dependencies": {
"fs-extra": "^0.30.0",
"yargonaut": "^1.1.2",
"yargs": "^5.0.0"
}
}

@@ -1,2 +0,1 @@

# &laquo; Any-Gen &raquo;
[![Travis](https://img.shields.io/travis/M-jerez/any-generator.svg?style=flat-square)]()

@@ -8,3 +7,2 @@ [![npm](https://img.shields.io/npm/v/npm.svg?maxAge=2592000?style=flat-square)]()

> **!!!Automatic Scaffolding Generator For Any Project!!!**
> You declare some directories to use as `blueprints` and then `new modules` are automatically generated based on those blueprints.

@@ -20,3 +18,3 @@

Install locally to use it programtically.
Install locally to use programtically.

@@ -23,0 +21,0 @@ ```

@@ -24,2 +24,4 @@ #!/usr/bin/env node

const name = 'anygen';
let ARGS =

@@ -29,3 +31,3 @@ yargs

chalk.green("Version:\n") + ` ${version}\n\n` +
chalk.green("Usage:\n") + ` $0 <command> [<args>] [options]`)
chalk.green("Usage:\n") + ` ${name} <command> [<args>] [options]`)
.command(

@@ -35,3 +37,3 @@ 'generate <blueprint_name> <new_module_name> [options]',

function (yergs) {
return yergs.pkgConf("anygen")
return yergs.pkgConf("anygen",process.cwd())
.options("b",{alias:"blueprints_root"})

@@ -46,6 +48,19 @@ .options("m",{alias:"modules_root"});

.command(
'g <blueprint_name> <new_module_name> [options]',
'generate alias.',
function (yergs) {
return yergs.pkgConf("anygen",process.cwd())
.options("b",{alias:"blueprints_root"})
.options("m",{alias:"modules_root"});
},
function(argv){
command = true;
Generate(argv);
}
)
.command(
'list [--blueprints_root]',
'list all available Blueprints in a directory.',
function (yergs) {
return yergs.pkgConf("anygen");
return yergs.pkgConf("anygen",process.cwd();
},

@@ -66,4 +81,4 @@ function(argv){

})
.example('$0 generate ng_component my_new_component', 'generates a new my-new-component using the "ng_component" Blueprint.')
.example('$0 list -b ./src/blueprints', `list all the blueprint within the './src/blueprints' directory.`)
.example(`${name} generate ng_component my_new_component`, 'generates a new my-new-component using the "ng_component" Blueprint.')
.example(`${name} list -b ./src/blueprints`, `list all the blueprint within the './src/blueprints' directory.`)
.epilog(

@@ -70,0 +85,0 @@ chalk.green("Config file:\n") +

@@ -24,2 +24,3 @@ /**

let modules_root = argv["modules_root"];
console.log(modules_root);
let blueprints_root = argv["blueprints_root"];

@@ -26,0 +27,0 @@ let blueprint_name = argv["blueprint_name"];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc