cleverstack / cleverstack-cli Goto Github PK
View Code? Open in Web Editor NEWCLI for CleverStack
Home Page: http://youtube.com/watch?v=-4ArURHExhQ
License: MIT License
CLI for CleverStack
Home Page: http://youtube.com/watch?v=-4ArURHExhQ
License: MIT License
You cannot use NPM 2.x with CleverStack currently because of this issue with NPM, npm/npm#6435
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.
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
appMain === app-main
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 ┊
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)
~/workspace/tmp/my-app$ clever test
Scanning folders for Gruntfiles...
Warning: Task "db" not found. Use --force to continue.
Aborted due to warnings.
Bug may also be present while using clever setup
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...
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 ┊
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
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
currently only the clever-orm module has "clever:prompt" - change this to allow for other modules to have prompts after an install
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})
No need for Frontend and Backend folders inside of one folder, simply go into the seed you want, or in the root like you were - call the folders whatever you want and cleverstack-cli will detect and install as required
Hello,
There no update since sep,18.
The project is still alive ?
Guillaume
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
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:
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)
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)
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)
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.
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.
I am unable to upgrade the frontend or backend using the upgrade command
Hi Richard,
Can you please confirm if the 'clever test unit' command now works correctly?
Regards,
Martin
D\ or C\ instead of D:\ or C:\
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".
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 ┊
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?
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
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 install clever-auth reports grunt-prompt not installed locally.
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)
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?
:~/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
It seems there is a problem with the templates for the generator,
this works correctly
clever new car
this doesn't
clever new cars
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").
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.
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
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)
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
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.
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.