GithubHelp home page GithubHelp logo

cleverstack / cleverstack-cli Goto Github PK

View Code? Open in Web Editor NEW
196.0 16.0 33.0 716 KB

CLI for CleverStack

Home Page: http://youtube.com/watch?v=-4ArURHExhQ

License: MIT License

Makefile 0.52% JavaScript 99.00% CSS 0.01% HTML 0.47%

cleverstack-cli's Introduction

CleverStack CLI

NPM version GitHub version Dependency Status devDependency Status Code Climate Build Status NPM downloads Coverage Join the chat at https://gitter.im/CleverStack/cleverstack-cli

CleverStack CLI

A command line interface (CLI) for the CleverStack ecosystem.

Installation

npm install cleverstack-cli -g

Prerequisites

cleverstack-cli depends on NPM, GruntJS and Bower and for "npm", "grunt" and "bower" to be located in your $PATH

npm install bower -g

npm install grunt-cli -g

Table of Contents

Quick Setup Tutorial

  1. Initialize a new project
  2. Installing a module
  3. Removing a module
  4. Running tests

Quick Tutorial for Building a New Module

  1. generate
  2. scaffold
  3. new
  4. repl

Commands

  1. help
  2. downgrade
  3. generate (g)
  4. init
  5. list
  6. new
  7. remove
  8. repl
  9. scaffold (s)
  10. search
  11. setup
  12. server (serve)
  13. test (tests)
  14. upgrade

Help & Resources

  1. CleverStack Website
  2. CleverStack Documentation
  3. Official CleverStack Backend Seed
  4. Official CleverStack Frontend Seed Running Tests Contributors License

Quick Setup Tutorial

Initialize a new project

Initializing a new project will download and grab CleverStack's angular-seed and node-seed seeds. After initializing the project, cleverstack-cli will automatically install any depedencies that are required through NPM and Bower.

$: clever init my-new-project

You will be asked for database credentials, this is due to the fact that we currently run grunt db after the initialization. This will soon change, and your database credentials will only be asked for when you install a module that requires it.

This will create a new directory called my-new-project with two folders: backend and frontend.

$: cd my-new-project && tree -d -L 1

.
├── backend
└── frontend

2 directories

Installing a module

When installing a module, CleverStack will automatically detect:

  1. If the module exists
  2. If the module is for the frontend or the backend based on it's package.json's keywords.

The command is:

$: clever install <modules>

For a list of modules, visit CleverStack's module page

$: clever install clever-background-tasks

This will install clever-background-tasks within the backend/modules folder.

Removing a module

When removing a module, CleverStack will:

  1. Check to see which directory that you're in. If it detects both a backend and a frontend directory then it'll try to remove the module from both seeds.
  2. Remain quiet / do nothing if the module does not exist within the module folders (unless there's absolutely nothing to remove).

$: clever remove clever-background-tasks

Running tests

Aliases tests

To ensure that everything is working correctly, you can run tests with:

$: clever test unit

CleverStack will run grunt test within each seed.

Running the server

Aliases: serve

$: clever server

Quick Tutorial for Building a New Module

There are three commands to be aware of when building a module:

  1. generate (or g)
  2. scaffold (or s)
  3. new

generate

Generate will create a template of a specific component (controller, services, model, tasks, or tests) within module's name that's residing in your current working directory.

$: tree -d -L 1

.

0 directories

$: clever g model my-new-model

$: tree . -d -L 1

.
└── my-new-model

1 directory

$: cd my-new-model && tree . -L 1

.
└── models

1 directory, 0 files

$: tree ./models

./models
└── MyNewModelModel.js

2 directories, 2 files

scaffold

Scaffolding is similar to generate except it'll generate every component's template for you.

Note: These files will be generated within your current working directory.

$: tree -d -L 1

.

0 directories

$: clever s my-new-module

$: tree . -d -L 1

.
└── my-new-module

$: tree ./my-new-module -L 3

./my-new-module
├── config
│   └── default.json
├── controllers
│   └── MyNewModuleController.js
├── models
│   └── MyNewModuleModel.js
├── schema
│   └── seedData.json
├── services
│   └── MyNewModuleService.js
├── tasks
│   └── MyNewModuleTask.js
└── tests
    ├── integration
    │   └── MyNewModuleTest.js
    └── unit
        └── MyNewModuleTest.js

11 directories, 9 files

new

The new command is similar to scaffold except it'll create the module within the application's module folder.

$: tree ./modules -d -L 1

./modules
└── my-new-module

1 directory

$: tree ./modules/my-new-module -L 3

./modules/my-new-module
├── config
│   └── default.json
├── controllers
│   └── MyNewModuleController.js
├── models
│   └── MyNewModuleModel.js
├── schema
│   └── seedData.json
├── services
│   └── MyNewModuleService.js
├── tasks
│   └── MyNewModuleTask.js
└── tests
    ├── integration
    │   └── MyNewModuleTest.js
    └── unit
        └── MyNewModuleTest.js

11 directories, 9 files

repl

In order to interact with your environment's models directly, simply type in:

$: clever repl

Commands

help

$: clever help

  Usage: clever <command> [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Commands:

    build - Builds production-ready code for the frontend seed
    downgrade - Downgrades a CleverStack implementation
    help - Displays this help message
    init <project> [backend|frontend] - Initialized a new project
    install <modules> - Installs a module within CleverStack
    generate <option> <name> - Generates a controller, service, model, etc. individually
    list - Lists all of the available CleverStack modules
    new <name> - Scaffolds into a specific directory called <name>
    remove <modules> - Removes a module within CleverStack
    repl - Starts the CleverStack REPL
    routes - Displays your project's routes
    scaffold <name> - Generates a controller, service, model, etc.
    search [query] - Searches for a cleverstack module
    setup - Installs NPM & Bower packages for each module and adds modules to bundleDependencies
    server - Starts the CleverStack server
    test - Runs tests within your CleverStack environment
    upgrade - Upgrades a CleverStack implementation

downgrade

Downgrades to the next version (or specified version) of the seed/module (depending on what directory that you're currently in).

Note: This command must run under project's root directory (where frontend and backend are).

$: clever downgrade -h

  Usage: clever-downgrade [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Examples:

    clever downgrade clever-orm
    clever downgrade [email protected] [email protected]
    clever downgrade backend
    clever downgrade frontend

generate (g)

$: clever generate -h

  Usage: clever-generate [options] [command]

  Commands:

    service <name>           Generates a service as <name> within /Users/richardgustin/Documents/Projects/CleverStack/services
    services <names>         Generates services specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/services
    controller <name>        Generates a controller as <name> within /Users/richardgustin/Documents/Projects/CleverStack/controllers
    controllers <names>      Generates controllers specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/controllers
    model <name>             Generates a model as <name> within /Users/richardgustin/Documents/Projects/CleverStack/models
    models <names>           Generates models specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/models
    task <name>              Generates a task as <name> within /Users/richardgustin/Documents/Projects/CleverStack/tasks
    tasks <names>            Generates tasks specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/tasks
    view <name>              Generates a view as <name> within /Users/richardgustin/Documents/Projects/CleverStack/views
    views <names>            Generates views specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/views
    factory <name>           Generates a factory as <name> within /Users/richardgustin/Documents/Projects/CleverStack/factories
    factories <names>        Generates factories specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/factories
    service <name>           Generates a service as <name> within /Users/richardgustin/Documents/Projects/CleverStack/services
    services <names>         Generates services specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/services
    directive <name>         Generates a directive as <name> within /Users/richardgustin/Documents/Projects/CleverStack/directives
    directives <names>       Generates directives specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/directives
    test [options] <name>    Generates a test t as <name> within /Users/richardgustin/Documents/Projects/CleverStack/tests
    tests [options] <names>  Generates test specified with <name ...> within /Users/richardgustin/Documents/Projects/CleverStack/tests

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Example:

    clever generate model users
    clever generate controller users
    clever g controller users
    clever g controllers users auth email

init

$: clever init -h

  Usage: clever-init [options] [command]

  Commands:

    <project>   creates a new project named <project>

  Options:

    -h, --help             output usage information
    -f, --force            delete existing projects in your current directory /Users/richardgustin/Documents/Projects/CleverStack
    -v, --verbose          verbose output useful for debugging
    -A, --allow-root       allow root for bower
    -S, --skip-protractor  skips installing protractor (Frontend only)
    -B, --bootstrap        will run `grunt bootstrap build` as part of the setup
    -V, --version          output the version number

  Examples:

    clever init my-project                      install the backend and frontend
    clever init my-project clever-auth          with the clever-auth module
    clever init my-project backend frontend     verbose way of running "clever init my-project"
    clever init my-project frontend             only install the frontend
    clever init my-project backend clever-auth  install the clever-auth module after installing the backend and frontend seeds

    Installing specific versions:

      clever init my-project backend@<version>
      clever init my-project clever-auth@<version>

list

Lists all modules available for CleverStack.

$: clever list -h

  Usage: clever-list [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Example:
    clever list

new

$: clever new -h

  Usage: clever-new [options] <name>

  Options:

    -h, --help       output usage information
    -V, --version    output the version number
    --no-service     Disables generating a service.
    --no-controller  Disables generating a controller.
    --no-model       Disables generating a model.
    --no-task        Disables generating a task.
    --no-test        Disables generating a test.

  Example:
    clever new my_module
    clever new myModule

remove

Removes a module from the project.

$: clever remove -h

  Usage: clever-remove [options] [modules ...]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Examples:
    clever remove clever-background-tasks
    clever remove auth clever-background-tasks

repl

Creates a REPL instance within your project's environment. Useful for executing ORM/Model commands.

Note: You must set the NODE_ENV environment variable.

$: NODE_ENV=local clever repl

richards-mbp:test-jan-2015 richardgustin$ clever repl
✔  Welcome to CleverStack  using seed version 1.2.0-rc-2
✔  Type .commands or .help for a list of commands

cleverstack::local> .commands

.commands   Lists all of the REPL commands
.help       Alias for .commands
.h          Alias for .commands
.modules    List all of the modules within this project
.models     Lists all models
.services   Lists all services
.exit       Exits the CleverStack REPL
.quit       Alias for .exit
.q          Alias for .exit
.history    Show command history

cleverstack::local> .quit

scaffold (s)

$: clever scaffold -h

  Usage: clever-scaffold [options] <name>

  Options:

    -h, --help       output usage information
    -V, --version    output the version number
    --no-service     Disables generating a service.
    --no-controller  Disables generating a controller.
    --no-model       Disables generating a model.
    --no-task        Disables generating a task.
    --no-test        Disables generating a test.

  Note:
    Scaffold will generate templates within $PWD
    If you wish to generate an entire model use clever new <name>

  Example:
    clever scaffold my_component
    clever scaffold myComponent

search

$: clever search -h

  Usage: clever-search [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Examples:
    clever search users
    clever search users auth email

setup

$: clever setup -h

  Usage: clever-setup [options]

  Options:

    -h, --help             output usage information
    -A, --allow-root       allow root for bower
    -S, --skip-protractor  skips installing protractor (Frontend only)
    -B, --bootstrap        will run `grunt bootstrap build` as part of the setup
    -v, --verbose          verbose output useful for debugging
    -V, --version          output the version number

  Description:

    Installs all NPM and Bower components for each module as well as building bundleDependencies.
    This command will also install Protractor unless explicitly skipping.

  Examples:

    clever setup

server (serve)

$: clever server -h

  Usage: clever-server [options]

  Options:

    -h, --help         output usage information
    -V, --version      output the version number
    -x, --host [host]  Set the host for grunt server
    -p, --port [port]  Set the port for grunt server

  Example:
    clever server
    clever --host 10.0.0.0 server
    clever --port 7777 server

test (tests)

$: clever test -h

  Usage: clever-test [options] [command]

  Commands:

    e2e                    Runs e2e tests
    unit                   Runs unit tests
    coverage               Generates unit test coverage reports.

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Examples:

    clever test coverage
    clever test e2e
    clever test unit

upgrade

$: clever upgrade -h

  Usage: clever-upgrade [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Examples:

    clever upgrade clever-orm
    clever upgrade [email protected] [email protected]
    clever upgrade backend
    clever upgrade frontend

Help & Resources

CleverStack Website

http://cleverstack.io

CleverStack Documentation

Online Documentation which can provide support for install, configurations and troubleshooting.

https://github.com/CleverStack/cleverstack-cli/wiki

Official CleverStack Backend Seed

node-seed

Official CleverStack Frontend Seed

angular-seed

Communication

Running Tests

To run the test suite, first invoke the following command within the repo, installing the development dependencies:

$ npm install

Then run the tests:

$ make test

Contributors

https://github.com/CleverStack/cleverstack-cli/graphs/contributors

License

See our LICENSE

cleverstack-cli's People

Contributors

combatcode avatar durango avatar pilsy avatar sdeering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cleverstack-cli's Issues

1.0.1 - Compatibility issues. Error: Couldn't find a backend or frontend directory

OS X 10.8.6
This is with a fresh global install of Cleverstack 1.0.1.

When setting up an existing project, I received the error "CleverStack couldn't find a backend or frontend directory" when trying to execute clever commands. From within backend/frontend, I received "Could not find seed directory".

Downgrading to 0.0.47 resolved this issue.

Problem seems to exist in backwards compatibility for the method used to detect a Cleverstack installation within cleverstack-cli 1.0.1.

Problem with running tests

~/workspace/tmp/my-app$ clever test
Scanning folders for Gruntfiles...
Warning: Task "db" not found. Use --force to continue.

Aborted due to warnings.

'clever init' not working

Hi Richard,

I tried a fresh install of cleverstack yesterday to check out the new releases of the node-seed and angular seed, but it seems that 'clever init' falls over the moment that the grunt tasks for clever orm are executed. See the error message below:

Possibly unhandled TypeError: Cannot read property 'promise' of undefined
at PromiseResolver$reject (/usr/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise_resolver.js:117:23)
From previous event:
at Function.Promise$Defer (/usr/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:296:13)
at download (/usr/lib/node_modules/cleverstack-cli/lib/packages.js:76:28)
at Object.exports.get (/usr/lib/node_modules/cleverstack-cli/lib/packages.js:63:12)
at backendProjectDirReady (/usr/lib/node_modules/cleverstack-cli/bin/clever-init:354:14)
at /usr/lib/node_modules/cleverstack-cli/node_modules/mkdirp/index.js:29:20
at Object.oncomplete (fs.js:107:15)

Hope this is an easy fix.

Bower cannot be run with sudo

If I run $ clever init my-app from my server (I'm root), I get the infamous bower error that would require me to run $ bower --allow-root

It would be nice to have this option on the CLI, so that I could just run $ clever --allow-root init my-app or something like it to pass on that argument to bower and not get that annoying "error".

Clever Backend with custom token authentication

Hi Richard,

I'm experiencing issues with my backend, works perfect with my frontend, but now I created a extra controller and service to serve as multi-domain service to supply my help content to requesting domain via an http.get with custom where, example:

$http.get( http://some_ip/help?domain=WIMS, {headers : {<some custom headers with token key>}} 

When executing get function from Chrome DHC, the api provides me with correct feedback, but when executing get from service of web application not built with clever-cli, i get a 204 No Content error, not sending the correct key however sends me the correct 'Not Authenticated' message as it should. Can you by any chance assist with correct solution?

Here is my controller code, left route as generated by generator:

//  Controller
var jwt = require('jsonwebtoken');

module.exports = function( app, Controller, HelpService ) {
    var allowOrigin = '*';

    return Controller.extend(
        /** @Class **/
        {
            autoRouting: [ 'authenticateToken' ],

            service: HelpService,

            authenticateToken: function ( req, res, next ) {
                app.set('tokenSecret', <some_secret>);
                app.set('tokenKey', <some_token_key>);

                var token = (req.body && req.body.access_token) || (req.query && req.query.access_token) || req.headers['x-access-token'];

                if (token) {
                    jwt.verify(token, app.get('tokenSecret'), function(err, decoded) {
                        if (err) {
                            res.send( 401 );
                        } else {
                            if ( decoded.token === app.get('tokenKey') ) {
                                return next();
                            } else {
                                res.send( 401 );
                            }
                        }
                    });
                } else {
                    res.send( 401 );
                }
            }, //tested
        },
        /** @Prototype **/
        {

        });
}

Kind regrards,
Mauritz Kruger (member of ITE {Integrity Engineering})

init command failed on windows 7 pro 64 bits.

My node is v0.10.22
My npm is v1.3.14

npm install -g cleverstack-cli 

command executed successfully.

However when I ran

clever init my-app

I got this error.

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)

clever init not working?

Hi,

I just installed cleverstack as instructed on my Mac Air, OS 7, then ran the

$ clever init my-app

The status bars pop up at the bottom of the console, but it just stalls and nothing happens. After waiting 10 minutes or so, I had to break execution. Any dependencies or something else I'm missing? Thanks. My Internet connection 10 Mbit is working just fine...

CleverSetup not installing modules correctly

bin/clever-setup calls lib.project.installModule with moduleDir as 'backend/modules',

The npm modules are installed to backend/modules/node_modules instead of backend/node_modules.

Error message on missing grunt CLI

Hi,

I was trying to run "clever init my-app" and got the following error message:
Grunt-CLI is required before using CleverStack-CLI please type: npm install -g grunt

which I could only resolve by running npm install -g grunt-cli

Cheers.

clever repl command throws an error on Win7 64

D:\PROJECTS\friend-around\backend>clever repl
Finding seeds to target...
Found CleverStack Backend (node-seed)...
ModuleLoader Loading modules... +0ms
Welcome to CleverStack using seed version 1.0.5
Type .commands or .help for a list of commands
cleverstack::local>
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
TypeError: path must be a string
at Object.fs.openSync (fs.js:427:18)
at addHistory (C:\npm\node_modules\cleverstack-cli\lib\repl.js:37:11)
at Object. (C:\npm\node_modules\cleverstack-cli\lib\repl.js:141:1
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

clever setup not working

Hi Richard,

As of the latest version of cleverstack-cli today, clever setup doesn't work anymore. I get the following error:

clever setup
Found CleverStack Backend (node-seed) in /home/{PATH}...
Found CleverStack Frontend (angular-seed) in /home/{PATH}: 1s ┊
Installing NPM modules for backend...
Status @ 3s | Installation Progress: [▒---------] 13 % ┊ Installing: Modules ┊ Step: Installing NPM modules for backend... ┊ Step Time: 1s ┊

module.js:340
throw err;
^
Error: Cannot find module '/home/{PATH}/modules/node_modules/package.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/lib/node_modules/cleverstack-cli/bin/clever-setup:122:70
at Array.forEach (native)
at modulesNpmInstall (/usr/lib/node_modules/cleverstack-cli/bin/clever-setup:116:45)
at fn (/usr/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:641:34)
at Object._onImmediate (/usr/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:557:34)
at processImmediate as _immediateCallback

Module loader problem

Hi Richard,

I updated to the newest version of cleverstack-cli today, just to make sure I have access to all the newest features. Install clever-orm and clever-auth and running all the unit test and e2e works fine. The problem comes in when I run 'clever new [someOrOtherModuleName]' and the backend part of the newly created module into the package.json file and run 'grunt db' from the backend context. I receive the following error:

$ grunt db
Running "exec:rebase" (exec) task

/home/user/Projects/WSIMS/backend/modules/facility/module.js:4
Module = ModuleClass.extend({
^
TypeError: Cannot call method 'extend' of undefined
at Object. (/home/user/Projects/WSIMS/backend/modules/facility/module.js:4:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Class.module.exports.Class.extend.loadModule (/home/user/Projects/WSIMS/backend/lib/utils/moduleLoader.js:119:22)
at class_cb (/home/user/Projects/WSIMS/backend/node_modules/uberclass/lib/class.js:94:43)
at /home/user/Projects/WSIMS/backend/node_modules/async/lib/async.js:111:13
Exited with code: 8.

This did not happen on the older release and when comparing the old source to the new source I picked up that the module loader util was quite heavily refactored.

Is it a problem with the new version or am I missing something?

Kind regards,
Martin

Protractor / Chrome driver part of install Fails

Installing protractor...

[email protected] setup-protractor /Users/nomad/Projects/clever-walking-skeleton-6.0/frontendStep: Installing protractor (this might take awhile)... ┊ Step T> node scripts/setup-protractor

About to setup protractor and dependencies.
It works if it finishes with OKon Progress: [▒▒▒▒▒▒▒▒--] 79 % ┊ Installing: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step TDownloading specific Selenium Server jar...

/bin/sh: wget: command not found

Downloading OS specific Chromedriver...

/bin/sh: wget: command not found

unzip: cannot find or open chromedriver_mac32.zip, chromedriver_mac32.zip.zip or chromedriver_mac32.zip.ZIP.

mv: rename Chromedriver to scripts/Chromedriver: No such file or directory

rm: chromedriver_mac32.zip: No such file or directory
Downloading OS specific Phantomjs...ogress: [▒▒▒▒▒▒▒▒--] 79 % ┊ Installing: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step T
/bin/sh: wget: command not found

unzip: cannot find or open phantomjs-1.9.2-macosx.zip, phantomjs-1.9.2-macosx.zip.zip or phantomjs-1.9.2-macosx.zip.ZIP.

rm: phantomjs-1.9.2-macosx.zip: No such file or directory

OK!
Protractor successfully installed...ress: [▒▒▒▒▒▒▒▒--] 79 % ┊ Installing: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step Time: 5s ┊

Project clever-walking-skeleton-6.0/ has been created in /Users/nomad/Projects/clever-walking-skeleton-6.0/

Status @ 3.333m | Installation Progress: [▒▒▒▒▒▒▒▒▒-] 93 % ┊ Installing: Done ┊ Step: Installation completed ┊ Step Time: 5s ┊

Unhandled 'error' event (events.js:72)

Hi

I'm experiencing an error in my terminal when running clerve serve. The odd thing is the program is actually working, and I can access the application on localhost:9000. I'm not sure if everything is working, but what I've tried to do works pretty fine.

Anyway, I decided to let you know of there error, just in case:

clever serve
Running "nodemon:web" (nodemon) task
[nodemon] v1.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EADDRINUSE
    at errnoException (net.js:904:11)
    at net.js:1084:30
    at Object.1:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at child_process.js:392:7
    at process.handleConversion.net.Native.got (child_process.js:91:7)
Running "clean:server" (clean) task

Running "connect:livereload" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "connect:test" (connect) task
Started connect web server on 127.0.0.1:9090.

Running "connect:dist" (connect) task
Started connect web server on 127.0.0.1:9009.

Running "concurrent:watch" (concurrent) task

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EADDRINUSE
    at errnoException (net.js:904:11)
    at net.js:1084:30
    at Object.2:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at child_process.js:392:7
    at process.handleConversion.net.Native.got (child_process.js:91:7)
Running "watch:less" (watch) task
Waiting...Running "watch:livereload" (watch) task
Waiting...
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EADDRINUSE
    at errnoException (net.js:904:11)
    at net.js:1084:30
    at Object.3:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.EventEmitter.emit (events.js:117:20)
    at handleMessage (child_process.js:318:10)
    at child_process.js:392:7
    at process.handleConversion.net.Native.got (child_process.js:91:7)

It's a repeating error, which is thrown every second with a increase number at the line at Object.3:1 (cluster.js:592:5) (the "3").

Unable to initialize new application

After typing
clever init app
I'm getting an Error

npm ERR! Failed to parse json                                                                                                                                                                  
npm ERR! Unexpected end of input                                                                                                                                                               
npm ERR! File: /home/combat/.npm/minimatch/0.2.14/package/package.json                                                                                                                         
npm ERR! Failed to parse package.json data.                                                                                                                                                    
npm ERR! package.json must be actual JSON, not just JavaScript.                                                                                                                                
npm ERR!                                                                                                                                                                                       
npm ERR! This is not a bug in npm.                                                                                                                                                             
npm ERR! Tell the package author to fix their package.json file. JSON.parse                                                                                                                    

npm ERR! System Linux 3.13.0-24-generic                                                                                                                                                        
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"                                                                                                                                      
npm ERR! cwd /home/combat/.dev/clever/app/frontend                                                                                                                                             
npm ERR! node -v v0.10.28                                                                                                                                                                      
npm ERR! npm -v 1.4.9                                                                                                                                                                          
npm ERR! file /home/combat/.npm/minimatch/0.2.14/package/package.json                                                                                                                          
npm ERR! code EJSONPARSE  

Package named minimatch in version 0.2.14 is broken. (Related ticket)
Can we update this package to version 0.3?

clever test unit

Hi Richard,

Can you please confirm if the 'clever test unit' command now works correctly?

Regards,
Martin

clever init not working

Seems like it's not a dup of #34 (but I'm not 100% sure...).

Anytime I do

$ clever init -v my-app

I get this error:

Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js'   ┊                                                                                                
In module tree:|   Installation Progress: [▒▒▒▒▒▒▒---]  71 %   ┊   Installing: Frontend   ┊   Step: Building...   ┊   Step Time: 6s   ┊                                                                                                
    main

{ [Error: Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js'
In module tree:
    main

    at Object.fs.openSync (fs.js:432:18)
]
  originalError: 
   { [Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js']
     errno: 34,
     code: 'ENOENT',
     path: '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js',
     syscall: 'open',
     fileName: '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js',
     moduleTree: [ 'main' ] } }


Execution Time (2014-07-09 22:31:20 UTC)
loading tasks       2.7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50%
less:development   132ms  ▇▇ 2%
less:production     68ms  ▇ 1%
cssmin:dist         68ms  ▇ 1%
htmlmin:dist       110ms  ▇ 2%
copy:dist           1.1s  ▇▇▇▇▇▇▇▇▇ 20%
ngmin:dist         787ms  ▇▇▇▇▇▇▇ 14%
requirejs:compile  366ms  ▇▇▇ 7%
Error: Command failed: 
Status @ 106s |   Installation Progress: [▒▒▒▒▒▒▒---]  71 %   ┊   Installing: Frontend   ┊   Step: Building...   ┊   Step Time: 6s   ┊

when I $ tree -L 1 /home/mee/projects/my-app/frontend/dist/components/jquery I get:

/home/mee/projects/my-app/frontend/dist/components/jquery
├── build
├── Gruntfile.js
├── jquery.js
├── jquery-migrate.js
├── jquery-migrate.min.js
├── jquery.min.js
├── speed
├── src
└── test

4 directories, 5 files

where there is no /dist directory indeed. I really want to start already, what do I do? :)

Additional stuff:

$ npm --version
1.4.14

$ node --version
v0.10.29

$ clever --version
1.0.7

clever setup is slow and seems to hang

Hi Richard,

I'm experiencing seriously slow and almost hanging sessions when running clever setup. Is this because of npm being slow or is it something else?

Also, the backend is giving a problem with the whole plural and singular auto routing derived from the file name. It seems that a dependency of got upgraded and now the singular (eg. /user) no longer works. The frontend points to the singular (specifically /user) instead of the plural. Are you aware of this?

Kind regards

grunt fails while installing modules

After init app, grunt tasks fail installing standard backend modules.

⇒  clever install clever-odm
Attempting to install clever-odm...
  ├── Searching for modules...
  ├──   Searching NPM...
  ├──   Searching Bower...
  ├── ⚠ Installing clever-odm...
  ├── Installing NPM modules for clever-odm...
✔    Successfully installed clever-odm...
  ├── Installing bundledDependencies...
  ├── ⚠ Running grunt tasks for module clever-odm...
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'utils'
Warning: Task "readme" not found. Use --force to continue.

Aborted due to warnings.
✔  Successfully installed.
⇒  clever install clever-auth 
Attempting to install clever-auth...
  ├── Searching for modules...
  ├──   Searching NPM...
  ├──   Searching Bower...
  ├── ⚠ Installing clever-auth...
  ├── Installing NPM modules for clever-auth...
✔    Successfully installed clever-auth...
  ├── Installing bundledDependencies...
  ├── ⚠ Running grunt tasks for module clever-auth...
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'utils'
Warning: Task "prompt:cleverAuthConfig" not found. Use --force to continue.

Aborted due to warnings.
✔  Successfully installed.
⇒  clever install clever-users
Attempting to install clever-users...
  ├── Searching for modules...
  ├──   Searching NPM...
  ├──   Searching Bower...
  ├── ⚠ Installing clever-users...
  ├── Installing NPM modules for clever-users...
✔    Successfully installed clever-users...
  ├── Installing bundledDependencies...
Possibly unhandled TypeError: Object Error: Cannot find module 'config' has no method 'match'
    at /usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:73:26
From previous event:
    at new Promise (/usr/local/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:84:37)
    at exports.findGruntFile (/usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:91:12)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:67:9
From previous event:
    at new Promise (/usr/local/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:84:37)
    at exports.readTasks (/usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:62:12)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:182:9
From previous event:
    at new Promise (/usr/local/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:84:37)
    at Object.exports.runTasks (/usr/local/lib/node_modules/cleverstack-cli/lib/util/grunt.js:181:12)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/install.js:131:46
    at iterate (/usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:149:13)
    at Object.async.eachSeries (/usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:165:9)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/install.js:127:39
From previous event:
    at new Promise (/usr/local/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:84:37)
    at Object.exports.addToMainBundleDeps (/usr/local/lib/node_modules/cleverstack-cli/lib/util/dependencies.js:92:12)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/install.js:124:30
    at done (/usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:135:19)
    at /usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:32:16
    at /usr/local/lib/node_modules/cleverstack-cli/lib/install.js:115:33
From previous event:
    at new Promise (/usr/local/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:84:37)
    at Object.exports.installBundleDeps (/usr/local/lib/node_modules/cleverstack-cli/lib/util/dependencies.js:17:12)
    at /usr/local/lib/node_modules/cleverstack-cli/lib/install.js:113:30
    at /usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:125:13
    at Array.forEach (native)
    at _each (/usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:46:24)
    at Object.async.each (/usr/local/lib/node_modules/cleverstack-cli/node_modules/async/lib/async.js:124:9)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/cleverstack-cli/lib/install.js:109:23)

Windows Support: nested `node_modules` dirs too long for windows to handle?

It appears the Project does not work on Windows (though it may be a greater issue with node)

I have Windows 7 enterprise 64bit version. I attempted to run clever init myTestApp and it did not complete for ~40 min so I Ctrl-C'ed the command

I then attempted to re-run it again, using --force to overwrite the existing app, but it failed on removing some directories.

I then opened Windows explorer to remove the directories, but it failed, saying "The source filename(s) are longer than what is supported by the system. Try moving to a location which has a shorter pathname".

Given that Windows blows, I am not sure what can be done here. I've worked around this problem with special Git options, but this isn't a git repo so I'm not sure how I'd use that to solve the problem here.

Anyway just thought I'd leave a note here about the problem in case you guys have any suggestions. I see you prominently displaying notes for "Windows Users" througout the docs, so hopefully I'm just missing something simple?

e2e tests fail to run after clean install

nomad@Nomads-MacBook-Pro-2 ~/P/clever-walking-skeleton-6.0> clever test e2e
Scanning folders for Gruntfiles...
Running "connect:livereload" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "protractor:singlerun" (protractor) task

/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/driverProviders/local.js:42
throw new Error('Could not find chromedriver at ' +
^
Error: Could not find chromedriver at /Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/scripts/Chromedriver.exe
at LocalDriverProvider.addDefaultBinaryLocs_ (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/driverProviders/local.js:42:15)
at LocalDriverProvider.setupEnv (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/driverProviders/local.js:59:8)
at Runner.run (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/runner.js:206:31)
at Object.init (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/launcher.js:135:12)
at Object. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/node_modules/protractor/lib/cli.js:129:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

Fatal error: protractor exited with code: 8

Execution Time (2014-06-20 06:36:14 UTC)
loading tasks 824ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
protractor:singlerun 2.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 73%
Total 3.1s

nomad@Nomads-MacBook-Pro-2 ~/P/clever-walking-skeleton-6.0> clever test e2e
Scanning folders for Gruntfiles...
Running "mochaTest:e2e" (mochaTest) task
No files to check...OK

Done, without errors.
Running "connect:livereload" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "protractor:singlerun" (protractor) task
Using the selenium server at http://localhost:4444/wd/hub
....FFFF

Failures:

  1. e2e: register should login with the default user account
    Message:
    Error: No element found using locator: By.tagName("h1")
    Stacktrace:
    Error: No element found using locator: By.tagName("h1")
    ==== async task ====
    WebDriver.findElements(By.tagName("h1"))
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_account/tests/e2e/register.test.js:21:18)
    ==== async task ====
    Asynchronous test function: it()
    Error
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_account/tests/e2e/register.test.js:10:3)
    at Object. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_account/tests/e2e/register.test.js:2:1)

  2. e2e: login should login with the default user account
    Message:
    Error: No element found using locator: By.tagName("h1")
    Stacktrace:
    Error: No element found using locator: By.tagName("h1")
    ==== async task ====
    WebDriver.findElements(By.tagName("h1"))
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_session/tests/e2e/login.test.js:18:18)
    ==== async task ====
    Asynchronous test function: it()
    Error
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_session/tests/e2e/login.test.js:10:3)
    at Object. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/app/modules/cs_session/tests/e2e/login.test.js:2:1)

  3. e2e: register should login with the default user account
    Message:
    Error: No element found using locator: By.tagName("h1")
    Stacktrace:
    Error: No element found using locator: By.tagName("h1")
    ==== async task ====
    WebDriver.findElements(By.tagName("h1"))
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_account/tests/e2e/register.test.js:21:18)
    ==== async task ====
    Asynchronous test function: it()
    Error
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_account/tests/e2e/register.test.js:10:3)
    at Object. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_account/tests/e2e/register.test.js:2:1)

  4. e2e: login should login with the default user account
    Message:
    Error: No element found using locator: By.tagName("h1")
    Stacktrace:
    Error: No element found using locator: By.tagName("h1")
    ==== async task ====
    WebDriver.findElements(By.tagName("h1"))
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_session/tests/e2e/login.test.js:18:18)
    ==== async task ====
    Asynchronous test function: it()
    Error
    at null. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_session/tests/e2e/login.test.js:10:3)
    at Object. (/Users/nomad/Projects/clever-walking-skeleton-6.0/frontend/dist/modules/cs_session/tests/e2e/login.test.js:2:1)

Finished in 14.26 seconds
8 tests, 10 assertions, 4 failures

Test failed but keep the grunt process alive.

Done, without errors.

Execution Time (2014-06-20 06:37:43 UTC)
loading tasks 1.6s ▇▇▇▇▇▇▇▇▇▇▇▇ 7%
protractor:singlerun 21.3s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 93%
Total 22.9s
Tests ran successfully.

problem with serve task

:~/workspace/tmp/my-app$ clever serve
Running "nodemon:web" (nodemon) task
[nodemon] v1.0.20
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node app.js

module.js:340
throw err;
^
Error: Cannot find module 'connect-timeout'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/apk/workspace/tmp/my-app/backend/index.js:6:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Running "clean:server" (clean) task

Verbose mode?

Is there any way to see what is going on during the install process? Something like a verbose mode to help debugging just in case anything breaks...

Thanks!

clever init unable to setup the front-end

I am getting this error during an clever init operation

Installing Frontend...
Installation path is /opt/dev/mean/gotfood/frontend...
Downloading and extracting angular-seed...
Installing NPM modules...
Installing bundled modules...
Installing bower components...rogress: [▒▒▒▒▒-----] 50 % ┊ Installing: Frontend ┊ Step: Installing NPM modules... ┊ Step Time: 48s ┊
Error: Command failed: bower angular-sanitize#1.2.6 invalid-meta angular-sanitize is missing "ignore" entry in bower.json
bower angular-resource#1.2.6 invalid-meta angular-resource is missing "ignore" entry in bower.jsontalling bower components... ┊ Step Time: 11s ┊
bower angular-mocks#1.2.6 invalid-meta angular-mocks is missing "ignore" entry in bower.json
bower angular-cookies#1.2.6 invalid-meta angular-cookies is missing "ignore" entry in bower.json
bower angular#1.2.6 invalid-meta angular is missing "ignore" entry in bower.json
bower jquery#~1.10.2 invalid-meta jquery is missing "ignore" entry in bower.json
bower async#~0.2.5 EACCES EACCES, open '/home/vagrant/.cache/bower/registry/bower.herokuapp.com/lookup/async_0df93'

Stack trace:
Error: EACCES, open '/home/vagrant/.cache/bower/registry/bower.herokuapp.com/lookup/async_0df93'

Console trace:
Trace
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:72:17)
at Logger. (/usr/local/lib/node_modules/bower/bin/bower:110:22)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/index.js:40:20
at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:797:24)
at /usr/local/lib/node_modules/bower/node_modules/q/q.js:823:30
at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1035:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:741:41)
at /usr/local/lib/node_modules/bower/node_modules/q/q.js:557:44

System info:
Bower version: 1.3.9
Node version: 0.10.25
OS: Linux 3.13.0-24-generic x64

Question about future dev of Cleverstack?

Hi there: I had a question about the long-term plans for Cleverstack? It looks great to me, but I'm worried about how much development will be committed to it from the core team?

On the product site, it says that only 4 weeks are dedicated with 3 developers. After that...? (Or maybe it is already after that?) I also note on the main developer's LinkedIn profile that he is no longer with Cleverstack as of this month. How will that affect things?

Sorry to be so rude in my questions! I love what you guys are doing... but I wonder when the ecosystem will develop (perhaps one of the side-effect problems with modularization? there's no central GH repo for people to fork/watch)? And I wonder the commitment level of the current team?

clever new plural problem

It seems there is a problem with the templates for the generator,

this works correctly
clever new car

this doesn't
clever new cars

clever routes command throws an error on Win7 64

Finding seeds to target...

C:\npm\node_modules\cleverstack-cli\lib\util\locations.js:68
if ( program.verbose ) {
^
ReferenceError: program is not defined
at isSeedInCurrentDirectory (C:\npm\node_modules\cleverstack-cli\lib\util\lo
at fn (C:\npm\node_modules\cleverstack-cli\node_modules\async\lib\async.js:6
at Object._onImmediate (C:\npm\node_modules\cleverstack-cli\node_modules\asy
at processImmediate as _immediateCallback

Incorrect help message

When executing clever --host 10.0.0.0 server or clever --port 7777 server, the general help is shown. However when executing clever server --host 10.0.0.0 or clever server --port 7777 this does not seem to show up and seems to work fine.

I did however not check if the port/hostname are actually used at that point.

clever upgrade not working

I get this...

dans-air:clever-3 Dan$ clever upgrade
  Finding seeds to target...
    Found CleverStack Backend (node-seed) in /Users/Dan/work/clever-3/backend...
    Found CleverStack Frontend (angular-seed) in /Users/Dan/work/clever-3/frontend...

/usr/local/lib/node_modules/cleverstack-cli/node_modules/semver/semver.js:273
    throw new TypeError('Invalid Version: ' + version);
          ^
TypeError: Invalid Version: *
    at new SemVer (/usr/local/lib/node_modules/cleverstack-cli/node_modules/semver/semver.js:273:11)
    at SemVer.compare (/usr/local/lib/node_modules/cleverstack-cli/node_modules/semver/semver.js:312:13)
    at compare (/usr/local/lib/node_modules/cleverstack-cli/node_modules/semver/semver.js:460:31)
    at Function.gt (/usr/local/lib/node_modules/cleverstack-cli/node_modules/semver/semver.js:489:10)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/cleverstack-cli/lib/util/module.js:52:48)
    at EventEmitter.emit (events.js:98:17)
    at onstat (/usr/local/lib/node_modules/cleverstack-cli/node_modules/findit/index.js:129:21)
    at /usr/local/lib/node_modules/cleverstack-cli/node_modules/findit/index.js:89:22
    at Object.oncomplete (fs.js:107:15)

Error In Init

From a fresh install of cleverstack into an empty folder on a Mac:

$ clever init aex-cleverstack -f
Preparing for installation...
  ├── ⚠ Deleting the installation path for aex-cleverstack before we begin installing!
  └── Creating project installation path...
  ├── Downloading and extracting node-seed...
  ├── Creating local configuration file config/local.json...ies/Experimental/aex-cleverstack/backend.  ├── Installing NPM modules...
  └── Installing bundledDependencies...
✔  Backend installation has completed successfully!

Installing Frontend...
  ├── Installation path is /Users/nnn/Documents/Repositories/Experimental/aex-cleverstack/frontend...
  ├── Downloading and extracting angular-seed...
  ├── Installing NPM modules...
  ├── Installing bundled modules...
  ├── Installing bower components...
  ├── Installing bower components for cs_messenger...
  ├── Installing bower components for cs_modal...
Error: Command failed: bower                        ENOTEMPTY ENOTEMPTY, rmdir '/Users/nnn/Documents/Repositories/Experimental/aex-cleverstack/frontend/app/components/select2'

Stack trace:
Error: ENOTEMPTY, rmdir '/Users/nnn/Documents/Repositories/Experimental/aex-cleverstack/frontend/app/components/select2'

Console trace:
Trace
    at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)
    at Logger.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:110:22)
    at Logger.emit (events.js:95:17)
    at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)n    at /usr/local/lib/node_modules/bower/lib/commands/index.js:40:20                                     at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:797:24)
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:823:30
    at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1035:31)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:741:41)
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:557:44

System info:
Bower version: 1.3.12
Node version: 0.10.33
OS: Darwin 14.1.0 x64

Status @ 81s |   Installation Progress: [▒▒▒▒▒▒----]  64 %   ┊   Installing: Frontend   ┊   Step: Installing bower components for cs_modal...   ┊   Step Time: 2s   ┊

Cannot init the project, ENOENT error, cannot find frontend/dist/modules/cs_messenger/main.js

Following the introduction video, Im trying to create the application for the first time
$clever init -v my-new-project
Everything looks ok until the following error, which interrupts execution:

....
Running "requirejs:compile" (requirejs) task

Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js' In module tree:m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊
main

{ [Error: Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js'
In module tree:
main

at Object.fs.openSync (fs.js:427:18)

]
originalError:
{ [Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js']
errno: 34,
code: 'ENOENT',
path: '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js',
syscall: 'open',
fileName: '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js',
moduleTree: [ 'main' ] } }

Execution Time (2014-09-23 21:00:48 UTC)

loading tasks 8.9s ▇▇▇▇▇▇▇▇▇ 26% jshint:all 2.7s ▇▇▇ 8%[▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊
imagemin:dist 5.6s ▇▇▇▇▇▇ 17%
less:css 581ms ▇ 2%
cssmin:dist 641ms ▇ 2%
cssmin:dist/styles/screen.css 517ms ▇ 2%
copy:dist 10.9s ▇▇▇▇▇▇▇▇▇▇▇ 32%
ngAnnotate:dist 638ms ▇ 2%
requirejs:compile 2.9s ▇▇▇ 9%
Total 33.8s
Error: Command failed:
Status @ 10.267m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.