New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cleverstack-cli

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleverstack-cli - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

templates/frontend/controllers/TemplateController.js

2

lib/generate/paths.js

@@ -46,3 +46,3 @@ var path = require( 'path' )

name = templateName
.replace( 'Template', tcase.snakeCase( i.singularize( name ) ) )
.replace( 'Template', tcase.classCase( i.singularize( name ) ) )
.replace( 'template', tcase.classCase( i.singularize( name ) ) );

@@ -49,0 +49,0 @@

@@ -27,4 +27,4 @@ var path = require( 'path' )

.pipe( es.replace( '{{template-name}}', i.singularize( tcase.paramCase( name ) ) ) )
.pipe( es.replace( '{{_template_}}', i.singularize( tcase.snakeCase( name ) ) ) )
.pipe( es.replace( '{{template_name}}', i.singularize( tcase.snakeCase( name ) ) ) )
.pipe( es.replace( '{{_template_}}', i.singularize( tcase.classCase( name ) ) ) )
.pipe( es.replace( '{{template_name}}', i.singularize( tcase.classCase( name ) ) ) )
.pipe( file );

@@ -84,3 +84,3 @@

var fileName = file.replace( templateHome, '' )
.replace( 'Template', tcase.snakeCase( _fileName ) )
.replace( 'Template', tcase.classCase( _fileName ) )
.replace( 'template', tcase.classCase( _fileName ) )

@@ -87,0 +87,0 @@ , to = path.resolve( path.join( paths.getModulePath( project, name ) , tmpl, fileName ) );

@@ -157,3 +157,3 @@ var Promise = require( 'bluebird' )

function( dep, _next ) {
exec( 'npm install ' + dep + ' --prefix ' + projectFolder, { cwd: moduleDir }, function ( err ) {
exec( 'npm install ' + dep + ' --prefix ' + projectFolder + ' --silent', { cwd: moduleDir }, function ( err ) {
if ( !!err ) {

@@ -160,0 +160,0 @@ return _next( err );

@@ -129,2 +129,8 @@ var path = require( 'path' )

exports.finishProgress = function() {
if ( undefined !== barItems.progress ) {
barItems.progress.val = barItems.progress.max;
}
};
exports.startBar = function( callback ) {

@@ -131,0 +137,0 @@ if ( undefined !== bar && !barRunning ) {

{
"name": "cleverstack-cli",
"description": "Command line interface for CleverStack",
"version": "1.0.7",
"version": "1.0.8",
"main": "./index.js",

@@ -69,4 +69,4 @@ "author": {

"engines": {
"node": ">=0.10.0"
"node": "~0.10.0"
}
}
}
{
"name": "{{Template}}",
"version": "0.0.0",
"version": "0.0.1",
"homepage": "",

@@ -23,2 +23,2 @@ "authors": [

]
}
}

@@ -6,7 +6,8 @@ /**

'./services/{{template_name}}_service',
'./directives/{{template_name}}_directive',
'./factories/{{template_name}}_factory',
'./controllers/{{template_name}}_controller'
'./services/{{template_name}}Service',
'./directives/{{template_name}}Directive',
'./factories/{{template_name}}Factory',
'./controllers/{{template_name}}Controller',
'./models/{{template_name}}Model'
], function() {});
], function() {});
/**
* @file Instantiates and configures angular modules for your module.
*/
define(['angular'], function (ng) {
define( [ 'angular' ], function( ng ) {
'use strict';
ng.module('{{template_name}}.controllers', []);
ng.module('{{template_name}}.providers', []);
ng.module('{{template_name}}.services', []);
ng.module('{{template_name}}.factories', []);
ng.module('{{template_name}}.directives', []);
ng.module( '{{template_name}}.controllers', []);
ng.module( '{{template_name}}.providers', []);
ng.module( '{{template_name}}.services', []);
ng.module( '{{template_name}}.factories', []);
ng.module( '{{template_name}}.directives', []);
var module = ng.module('{{template_name}}', [
var module = ng.module( '{{template_name}}', [
'cs_common',
'{{template_name}}.models',
'{{template_name}}.services',
'{{template_name}}.factories',
'{{template_name}}.controllers',
'{{template_name}}.providers',
'{{template_name}}.services',
'{{template_name}}.factories',
'{{template_name}}.directives'
]);
module.config([
'$routeProvider',
'CSTemplateProvider',
function ($routeProvider, CSTemplate) {
module.config( function( $routeProvider, TemplateProvider ) {
// Set the subfolder of your module that contains all your view templates.
CSTemplate.setPath('/modules/{{template_name}}/views');
// Register any routes you need for your module.
$routeProvider
.when(' /example', {
templateUrl : TemplateProvider.view( '{{template_name}}', '{{template_name}}-view' ),
controller : '{{Template}}Controller',
public : true
});
});
// Register any routes you need for your module.
$routeProvider
.when('/example', {
templateUrl: CSTemplate.view('{{template_name}}-view'),
controller: '{{Template}}Controller',
public: true
});
}
]);
return module;
});
});

Sorry, the diff of this file is not supported yet

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