{"action":"created","issue":{"url":"https://api.github.com/repos/pulibrary/pul_base/issues/8","labels_url":"https://api.github.com/repos/pulibrary/pul_base/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pulibrary/pul_base/issues/8/comments","events_url":"https://api.github.com/repos/pulibrary/pul_base/issues/8/events","html_url":"https://github.com/pulibrary/pul_base/issues/8","id":51468768,"number":8,"title":"How do we update pul_base in projects that are subthemed?","user":{"login":"sdellis","id":609368,"avatar_url":"https://avatars.githubusercontent.com/u/609368?v=3","gravatar_id":"","url":"https://api.github.com/users/sdellis","html_url":"https://github.com/sdellis","followers_url":"https://api.github.com/users/sdellis/followers","following_url":"https://api.github.com/users/sdellis/following{/other_user}","gists_url":"https://api.github.com/users/sdellis/gists{/gist_id}","starred_url":"https://api.github.com/users/sdellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdellis/subscriptions","organizations_url":"https://api.github.com/users/sdellis/orgs","repos_url":"https://api.github.com/users/sdellis/repos","events_url":"https://api.github.com/users/sdellis/events{/privacy}","received_events_url":"https://api.github.com/users/sdellis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pulibrary/pul_base/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-09T19:14:48Z","updated_at":"2015-01-09T23:37:34Z","closed_at":null,"body":"We need either a simpler process or better documentation (or both) for managing projects with pul_base as a dependency.  To update a sub-themed site to the latest version of pul_base, it seems that one needs to: \r\n\r\n1. Clone pul_base\r\n2. Copy pul_base into the sites/all/themes/ directory of the subthemed drupal project.\r\n3. Reinstall the front-end development environment by running... \r\n4. bundle install\r\n5. npm install -g grunt-cli\r\n6. npm install\r\n\r\nAfterwards, when I make a simple change to one of the sass files while running \"grunt watch\" a number of files in css/layouts (among others) say they've been changed in addition to the one I changed.  I'm not sure if I'm skipping a step somewhere or have to run some kind of \"clean\" command.  I can get it to compile with \"grunt build --force\" but with lots of linting warnings.  I am assuming that this is a problem with the existing sass files from the errors, but it could be a problem with my environment. \r\n\r\nAny code that produces warnings at compilation should not be in the Master branch.  It should only be merged into the master branch after the warnings are resolved and it's stable.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pulibrary/pul_base/issues/comments/69420239","html_url":"https://github.com/pulibrary/pul_base/issues/8#issuecomment-69420239","issue_url":"https://api.github.com/repos/pulibrary/pul_base/issues/8","id":69420239,"user":{"login":"kevinreiss","id":278825,"avatar_url":"https://avatars.githubusercontent.com/u/278825?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinreiss","html_url":"https://github.com/kevinreiss","followers_url":"https://api.github.com/users/kevinreiss/followers","following_url":"https://api.github.com/users/kevinreiss/following{/other_user}","gists_url":"https://api.github.com/users/kevinreiss/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinreiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinreiss/subscriptions","organizations_url":"https://api.github.com/users/kevinreiss/orgs","repos_url":"https://api.github.com/users/kevinreiss/repos","events_url":"https://api.github.com/users/kevinreiss/events{/privacy}","received_events_url":"https://api.github.com/users/kevinreiss/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T23:37:34Z","updated_at":"2015-01-09T23:37:34Z","body":"Some new ideas on this (thanks to Peter Wolanin). Use git subtree. \r\n\r\nTo add the theme's repo to a project\r\n\r\n```\r\ngit subtree add --squash --prefix=sites/all/themes/pul_base https://github.com/pulibrary/pul_base.git 7.x-1.0-alpha1\r\n```\r\n\r\nTo update the theme in an existing project (only after it was initially added with the subtree command above).\r\n```\r\ngit subtree pull --squash --prefix=sites/all/themes/pul_base https://github.com/pulibrary/pul_base.git 7.x-1.0-my-new-releast-tag\r\n```\r\n\r\nThis needs further testing to see it will really work effectively. More background reading at:\r\n\r\nhttps://www.acquia.com/blog/using-git-subtree-make-distro-your-docroot\r\nhttp://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/\r\n\r\nI tried in vain to get the https://www.drupal.org/project/erus module to work. Short of reaching out to the module maintainer I'm thinking of abandoning it particular since it seems to have no user base at all. I like the idea of using git better than writing custom Drush commands. \r\n\r\n\r\n\r\n"}}