{"action":"opened","issue":{"url":"https://api.github.com/repos/wavebeem/squiggle/issues/114","labels_url":"https://api.github.com/repos/wavebeem/squiggle/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/wavebeem/squiggle/issues/114/comments","events_url":"https://api.github.com/repos/wavebeem/squiggle/issues/114/events","html_url":"https://github.com/wavebeem/squiggle/issues/114","id":117521535,"number":114,"title":"Built-in build tool for Node.js","user":{"login":"wavebeem","id":176815,"avatar_url":"https://avatars.githubusercontent.com/u/176815?v=3","gravatar_id":"","url":"https://api.github.com/users/wavebeem","html_url":"https://github.com/wavebeem","followers_url":"https://api.github.com/users/wavebeem/followers","following_url":"https://api.github.com/users/wavebeem/following{/other_user}","gists_url":"https://api.github.com/users/wavebeem/gists{/gist_id}","starred_url":"https://api.github.com/users/wavebeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavebeem/subscriptions","organizations_url":"https://api.github.com/users/wavebeem/orgs","repos_url":"https://api.github.com/users/wavebeem/repos","events_url":"https://api.github.com/users/wavebeem/events{/privacy}","received_events_url":"https://api.github.com/users/wavebeem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T06:25:17Z","updated_at":"2015-11-18T06:25:17Z","closed_at":null,"body":"Per discussion on #113 with @noahmorrison, I'm starting to think there needs to be a proper build command for Squiggle projects.\r\n\r\nMy current thought is this:\r\n\r\n```\r\nsquiggle src out\r\n```\r\n\r\nWhich would copy the `src` directory over to `out` and then transform all of the `.sqg` files in `out` to `.js` files. I don't think there's really a great use case for compiling individual files in Squiggle anyway. Any project is going to eventual need multiple files, and even if all you have is **one file**, it still doesn't hurt to have them in directories.\r\n\r\nThere can still be the `squiggle-browserify` plugin which just removes the step for browser code using browserify, so that use case doesn't require **two build steps**.\r\n\r\nWould ideally also include a `-w` or `--watch` option to rebuild if files are modified.\r\n\r\nThis is necessary for anyone to not groan when using this Node.js, or for the use case of simply making a bunch of .js files and including them straight in the browser as script tags."}}