{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/34","labels_url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/34/comments","events_url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/34/events","html_url":"https://github.com/keystonejs/keystonejs-site/issues/34","id":108784568,"number":34,"title":"Finish implementing the build process","user":{"login":"JedWatson","id":872310,"avatar_url":"https://avatars.githubusercontent.com/u/872310?v=3","gravatar_id":"","url":"https://api.github.com/users/JedWatson","html_url":"https://github.com/JedWatson","followers_url":"https://api.github.com/users/JedWatson/followers","following_url":"https://api.github.com/users/JedWatson/following{/other_user}","gists_url":"https://api.github.com/users/JedWatson/gists{/gist_id}","starred_url":"https://api.github.com/users/JedWatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JedWatson/subscriptions","organizations_url":"https://api.github.com/users/JedWatson/orgs","repos_url":"https://api.github.com/users/JedWatson/repos","events_url":"https://api.github.com/users/JedWatson/events{/privacy}","received_events_url":"https://api.github.com/users/JedWatson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-29T02:50:56Z","updated_at":"2015-09-29T08:04:41Z","closed_at":null,"body":"Currently, the build process is a WIP that makes it more work than it could be to update keystonejs.com with changes to this repo.\r\n\r\nSpecifically; there's no static asset build pipeline; changes to LESS / images / client-side javascript has to be manually moved across from the `public` folder into Keystone's `gh-pages` branch, and the built `.html` files need to be moved manually as well.\r\n\r\nThe current version number should be retrieved dynamically from npm, but for now could be an environment variable specified during build.\r\n\r\nWe should also add browserify / webpack into the build process to allow for Babel + npm package usage in the site and move away from the ancient javascript that's currently in use.\r\n\r\nThis actually might be in the sweet spot for webpack, since it has a jade loader; maybe it can handle the entire build process for us - replacing the current `express` and `fs` based solution(s), and adding nice things like live reloading (and react hot reloading)\r\n\r\n@snowkeeper is this something you'd be interesting in looking into?\r\n\r\nMy ideal final state for the process is to have an npm script that is given a path to the local `keystone` clone, checks out `gh-pages`, builds the site, copies the changes across and commits them, finally switching back to the branch that was previously checked out.\r\n\r\nLooks like we could use [the `gh-pages` package](https://www.npmjs.com/package/gh-pages) to implement that without much work."},"comment":{"url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/comments/143978603","html_url":"https://github.com/keystonejs/keystonejs-site/issues/34#issuecomment-143978603","issue_url":"https://api.github.com/repos/keystonejs/keystonejs-site/issues/34","id":143978603,"user":{"login":"morenoh149","id":587438,"avatar_url":"https://avatars.githubusercontent.com/u/587438?v=3","gravatar_id":"","url":"https://api.github.com/users/morenoh149","html_url":"https://github.com/morenoh149","followers_url":"https://api.github.com/users/morenoh149/followers","following_url":"https://api.github.com/users/morenoh149/following{/other_user}","gists_url":"https://api.github.com/users/morenoh149/gists{/gist_id}","starred_url":"https://api.github.com/users/morenoh149/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morenoh149/subscriptions","organizations_url":"https://api.github.com/users/morenoh149/orgs","repos_url":"https://api.github.com/users/morenoh149/repos","events_url":"https://api.github.com/users/morenoh149/events{/privacy}","received_events_url":"https://api.github.com/users/morenoh149/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T08:04:41Z","updated_at":"2015-09-29T08:04:41Z","body":"another option is to use the `gh-pages` branch as the one and only branch for this repo. Then simply keep a generated site in this repo. However, the commit history will get cluttered with generated files for every update."}}