arch-js / arch

Web application framework for React by Red Badger
BSD 3-Clause "New" or "Revised" License
170 stars 13 forks source link

arch-cli s -s what it does? does it work? #72

Closed cognominal closed 9 years ago

cognominal commented 9 years ago

It is supposedly a standalone start. I don't know what that mean. How should it be different from a normal start? On an app generated by arch-cli init it dies with the following log

0 info it worked if it ends with ok 1 verbose cli [ 'node', '/usr/local/bin/npm', 'start' ] 2 info using npm@2.7.4 3 info using node@v0.12.2 4 verbose stack Error: missing script: start 4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:165:19) 4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:81:5 4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:52:40 4 verbose stack at /usr/local/lib/node_modules/npm/nodemodules/read-package-json/read-json.js:376:33 4 verbose stack at checkBinReferences (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:341:59) 4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:373:17) 4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:127:33) 4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:317:48 4 verbose stack at evalmachine.:263:20 4 verbose stack at OpenReq.Req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:141:5) 5 verbose cwd /Users/cog/mine/arch-talks 6 error Darwin 14.3.0 7 error argv "node" "/usr/local/bin/npm" "start" 8 error node v0.12.2 9 error npm v2.7.4 10 error missing script: start 11 error If you need help, you may report this error at: 11 error https://github.com/npm/npm/issues 12 verbose exit [ 1, true ]

tabazevedo commented 9 years ago

@cognominal Sorry about the lack of clarification. The CLI was built quite early on, with the intention of backfilling in functionality. Over time, we built the --watch / -w flag into the server itself, so that's actually not required. Standalone means it'll read your start script (aka it does npm start) from package.json and run that instead of running the default arch server.

I'll log this and update the CLI documentation soonish.

charypar commented 9 years ago

@tabazevedo Should we migrate this issue to arch-js/arch-cli?

tabazevedo commented 9 years ago

@charypar @cognominal See https://github.com/arch-js/arch-cli/pull/15