{"action":"created","issue":{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1130","labels_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1130/labels{/name}","comments_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1130/comments","events_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1130/events","html_url":"https://github.com/BladeRunnerJS/brjs/issues/1130","id":51565263,"number":1130,"title":"Allow BRJS to be run from outside of the SDK directory by putting brjs on the PATH","user":{"login":"andyberry88","id":726896,"avatar_url":"https://avatars.githubusercontent.com/u/726896?v=3","gravatar_id":"","url":"https://api.github.com/users/andyberry88","html_url":"https://github.com/andyberry88","followers_url":"https://api.github.com/users/andyberry88/followers","following_url":"https://api.github.com/users/andyberry88/following{/other_user}","gists_url":"https://api.github.com/users/andyberry88/gists{/gist_id}","starred_url":"https://api.github.com/users/andyberry88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyberry88/subscriptions","organizations_url":"https://api.github.com/users/andyberry88/orgs","repos_url":"https://api.github.com/users/andyberry88/repos","events_url":"https://api.github.com/users/andyberry88/events{/privacy}","received_events_url":"https://api.github.com/users/andyberry88/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/3+-+Ready+for+Dev+Review","name":"3 - Ready for Dev Review","color":"CCCCCC"},{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/feature","name":"feature","color":"e11d21"},{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/size+2","name":"size 2","color":"f0f0f0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/milestones/21","labels_url":"https://api.github.com/repos/BladeRunnerJS/brjs/milestones/21/labels","id":795932,"number":21,"title":"1.0 M1","description":"","creator":{"login":"andyberry88","id":726896,"avatar_url":"https://avatars.githubusercontent.com/u/726896?v=3","gravatar_id":"","url":"https://api.github.com/users/andyberry88","html_url":"https://github.com/andyberry88","followers_url":"https://api.github.com/users/andyberry88/followers","following_url":"https://api.github.com/users/andyberry88/following{/other_user}","gists_url":"https://api.github.com/users/andyberry88/gists{/gist_id}","starred_url":"https://api.github.com/users/andyberry88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyberry88/subscriptions","organizations_url":"https://api.github.com/users/andyberry88/orgs","repos_url":"https://api.github.com/users/andyberry88/repos","events_url":"https://api.github.com/users/andyberry88/events{/privacy}","received_events_url":"https://api.github.com/users/andyberry88/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":15,"state":"open","created_at":"2014-09-19T15:25:37Z","updated_at":"2015-01-14T11:26:11Z","due_on":"2015-01-16T00:00:00Z","closed_at":null},"comments":3,"created_at":"2014-12-10T14:40:49Z","updated_at":"2015-01-14T14:07:32Z","closed_at":null,"body":"I suspect its already possible to run BRJS from anywhere but it needs verifying.\r\n\r\nWe already pass the location of BRJS to the model via command line args (added by the `brjs` script) so if we started adding the current working directory that should allow us to both allow BRJS to run from anywhere *and* apps to live separately from BRJS. \r\n\r\nThis includes #93 and #95 which have been closed and tracked as a subtask of #1. We hadn't originally planned to do this work for 1.0 but it seems that it would be much more beneficial and sought after than context aware commands (#885), which we had planned to do, and would take a lot less dev effort.\r\n\r\n<!---\r\n@huboard:{\"order\":1.4901161193847656e-08,\"milestone_order\":1130,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/comments/69920186","html_url":"https://github.com/BladeRunnerJS/brjs/issues/1130#issuecomment-69920186","issue_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1130","id":69920186,"user":{"login":"andyberry88","id":726896,"avatar_url":"https://avatars.githubusercontent.com/u/726896?v=3","gravatar_id":"","url":"https://api.github.com/users/andyberry88","html_url":"https://github.com/andyberry88","followers_url":"https://api.github.com/users/andyberry88/followers","following_url":"https://api.github.com/users/andyberry88/following{/other_user}","gists_url":"https://api.github.com/users/andyberry88/gists{/gist_id}","starred_url":"https://api.github.com/users/andyberry88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyberry88/subscriptions","organizations_url":"https://api.github.com/users/andyberry88/orgs","repos_url":"https://api.github.com/users/andyberry88/repos","events_url":"https://api.github.com/users/andyberry88/events{/privacy}","received_events_url":"https://api.github.com/users/andyberry88/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T14:07:32Z","updated_at":"2015-01-14T14:07:32Z","body":"This was mostly already possible. Only the legacy test runner needed changing. It's now possible to do the following:\r\n\r\n```\r\nandy@Andys-Mac:/Users/.../brjs-sdk/workspace (brjs-from-anywhere) [1 stashed] : PATH=$PATH:/Users/andy/Documents/Caplin/BladeRunnerJS/Development/brjs/brjs-sdk/workspace/sdk\r\n\r\nandy@Andys-Mac:/Users/.../brjs-sdk/workspace (brjs-from-anywhere) [1 stashed] : pwd\r\n/Users/andy/Documents/Caplin/BladeRunnerJS/Development/brjs/brjs-sdk/workspace\r\n\r\nandy@Andys-Mac:/Users/.../brjs-sdk/workspace (brjs-from-anywhere) [1 stashed] : cd apps/\r\n\r\nandy@Andys-Mac:/Users/.../workspace/apps (brjs-from-anywhere) [1 stashed] : brjs create-app foo\r\nSuccessfully created new app 'foo'\r\n/Users/andy/Documents/Caplin/BladeRunnerJS/Development/brjs/brjs-sdk/workspace/apps/foo\r\nSuccessfully deployed 'foo' app\r\n\r\nandy@Andys-Mac:/Users/.../workspace/apps (brjs-from-anywhere) [1 stashed] : ls\r\napps.txt foo\r\n\r\nandy@Andys-Mac:/Users/.../workspace/apps (brjs-from-anywhere) [1 stashed] : brjs create-bladeset bs\r\nProblem:\r\nParameter 'new-bladeset-name' is required.\r\n\r\nUsage:\r\nbrjs create-bladeset <target-app-name> <new-bladeset-name> [(-T|--template) <template-group>]\r\n\r\nandy@Andys-Mac:/Users/.../workspace/apps (brjs-from-anywhere) [1 stashed] : brjs create-bladeset foo bs\r\nSuccessfully created new bladeset 'bs'\r\n/Users/andy/Documents/Caplin/BladeRunnerJS/Development/brjs/brjs-sdk/workspace/apps/foo/bs-bladeset\r\n\r\nandy@Andys-Mac:/Users/.../workspace/apps (brjs-from-anywhere) [1 stashed] : cd foo/\r\n\r\nandy@Andys-Mac:/Users/.../apps/foo (brjs-from-anywhere) [1 stashed] : brjs create-blade foo bs b1\r\nSuccessfully created new blade 'b1'\r\n/Users/andy/Documents/Caplin/BladeRunnerJS/Development/brjs/brjs-sdk/workspace/apps/foo/bs-bladeset/blades/b1\r\n\r\nandy@Andys-Mac:/Users/.../apps/foo (brjs-from-anywhere) [1 stashed] : brjs test .\r\n\r\n\r\nTesting foo/test-unit (UTs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (1.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms)\r\nTests Passed.\r\n\r\n\r\nTesting foo/test-acceptance (ATs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (2.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (2.00 ms)\r\nTests Passed.\r\n\r\n\r\nTesting foo/bs-bladeset/test-unit (UTs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (1.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms)\r\nTests Passed.\r\n\r\n\r\nTesting foo/bs-bladeset/blades/b1/test-unit (UTs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (3.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (3.00 ms)\r\nTests Passed.\r\n\r\n\r\nTesting foo/bs-bladeset/blades/b1/test-acceptance (ATs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (4.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (4.00 ms)\r\nTests Passed.\r\n\r\n\r\n== Runner Report ==\r\n- Tests Passed\r\n\r\nandy@Andys-Mac:/Users/.../apps/foo (brjs-from-anywhere) [1 stashed] : cd bs-bladeset/blades/b1/\r\n\r\nandy@Andys-Mac:/Users/.../blades/b1 (brjs-from-anywhere) [1 stashed] : brjs test .\r\n\r\n\r\nTesting foo/bs-bladeset/blades/b1/test-unit (UTs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (2.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (2.00 ms)\r\nTests Passed.\r\n\r\n\r\nTesting foo/bs-bladeset/blades/b1/test-acceptance (ATs):\r\n.\r\nTotal 1 tests (Passed: 1; Fails: 0; Errors: 0) (5.00 ms)\r\nPhantomJS  : Run 1 tests (Passed: 1; Fails: 0; Errors 0) (5.00 ms)\r\nTests Passed.\r\n\r\n\r\n== Runner Report ==\r\n- Tests Passed\r\n\r\n```"}}