{"action":"created","issue":{"url":"https://api.github.com/repos/webjars/webjars/issues/1186","repository_url":"https://api.github.com/repos/webjars/webjars","labels_url":"https://api.github.com/repos/webjars/webjars/issues/1186/labels{/name}","comments_url":"https://api.github.com/repos/webjars/webjars/issues/1186/comments","events_url":"https://api.github.com/repos/webjars/webjars/issues/1186/events","html_url":"https://github.com/webjars/webjars/issues/1186","id":103887176,"number":1186,"title":"Automatic Transitive Deployment for NPM & Bower WebJars","user":{"login":"blast-hardcheese","id":278900,"avatar_url":"https://avatars.githubusercontent.com/u/278900?v=3","gravatar_id":"","url":"https://api.github.com/users/blast-hardcheese","html_url":"https://github.com/blast-hardcheese","followers_url":"https://api.github.com/users/blast-hardcheese/followers","following_url":"https://api.github.com/users/blast-hardcheese/following{/other_user}","gists_url":"https://api.github.com/users/blast-hardcheese/gists{/gist_id}","starred_url":"https://api.github.com/users/blast-hardcheese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blast-hardcheese/subscriptions","organizations_url":"https://api.github.com/users/blast-hardcheese/orgs","repos_url":"https://api.github.com/users/blast-hardcheese/repos","events_url":"https://api.github.com/users/blast-hardcheese/events{/privacy}","received_events_url":"https://api.github.com/users/blast-hardcheese/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webjars/webjars/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-29T22:39:42Z","updated_at":"2016-04-06T01:02:51Z","closed_at":null,"body":"After successfully packaging `\"org.webjars.npm\" % \"multiline\" % \"1.0.2\"` and including it in my `build.sbt`, I get:\r\n\r\n```\r\n[vocities] $ run 9001\r\n[info] Updating {file:/home/blast/Projects/vocities/vocities/}root...\r\n[info] Resolving org.webjars.npm#strip-indent;[1.0.0,2) ...\r\n[warn]  module not found: org.webjars.npm#strip-indent;[1.0.0,2)\r\n[warn] ==== local: tried\r\n[warn]   /home/blast/.ivy2/local/org.webjars.npm/strip-indent/[revision]/ivys/ivy.xml\r\n[warn] ==== activator-launcher-local: tried\r\n[warn]   file:/home/blast/.tools/localized/activator-1.3.2-minimal/repository/org.webjars.npm/strip-indent/[revision]/ivys/ivy.xml\r\n[warn] ==== public: tried\r\n[warn]   http://repo1.maven.org/maven2/org/webjars/npm/strip-indent/[revision]/strip-indent-[revision].pom\r\n[warn] ==== typesafe-releases: tried\r\n[warn]   https://repo.typesafe.com/typesafe/releases/org/webjars/npm/strip-indent/[revision]/strip-indent-[revision].pom\r\n[warn] ==== typesafe-ivy-releasez: tried\r\n[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.webjars.npm/strip-indent/[revision]/ivys/ivy.xml\r\n[warn] ==== Typesafe Releases Repository: tried\r\n[warn]   https://repo.typesafe.com/typesafe/releases/org/webjars/npm/strip-indent/[revision]/strip-indent-[revision].pom\r\n[warn] ==== sonatype-releases: tried\r\n[warn]   https://oss.sonatype.org/content/repositories/releases/org/webjars/npm/strip-indent/[revision]/strip-indent-[revision].pom\r\n[warn] ==== google-sedis-fix: tried\r\n[warn]   http://pk11-scratch.googlecode.com/svn/trunk/org/webjars/npm/strip-indent/[revision]/strip-indent-[revision].pom\r\n[info] Resolving jline#jline;2.11 ...\r\n[warn]  ::::::::::::::::::::::::::::::::::::::::::::::\r\n[warn]  ::          UNRESOLVED DEPENDENCIES         ::\r\n[warn]  ::::::::::::::::::::::::::::::::::::::::::::::\r\n[warn]  :: org.webjars.npm#strip-indent;[1.0.0,2): not found\r\n[warn]  ::::::::::::::::::::::::::::::::::::::::::::::\r\n[trace] Stack trace suppressed: run last *:update for the full output.\r\n[error] (*:update) sbt.ResolveException: unresolved dependency: org.webjars.npm#strip-indent;[1.0.0,2): not found\r\n[error] Total time: 8 s, completed Aug 29, 2015 3:27:18 PM\r\n```\r\n\r\nI'm now manually packaging `strip-indent@1.0.0`, but it should have been automatically picked up and packaged, imho."},"comment":{"url":"https://api.github.com/repos/webjars/webjars/issues/comments/206058729","html_url":"https://github.com/webjars/webjars/issues/1186#issuecomment-206058729","issue_url":"https://api.github.com/repos/webjars/webjars/issues/1186","id":206058729,"user":{"login":"Khorkhe","id":4688418,"avatar_url":"https://avatars.githubusercontent.com/u/4688418?v=3","gravatar_id":"","url":"https://api.github.com/users/Khorkhe","html_url":"https://github.com/Khorkhe","followers_url":"https://api.github.com/users/Khorkhe/followers","following_url":"https://api.github.com/users/Khorkhe/following{/other_user}","gists_url":"https://api.github.com/users/Khorkhe/gists{/gist_id}","starred_url":"https://api.github.com/users/Khorkhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khorkhe/subscriptions","organizations_url":"https://api.github.com/users/Khorkhe/orgs","repos_url":"https://api.github.com/users/Khorkhe/repos","events_url":"https://api.github.com/users/Khorkhe/events{/privacy}","received_events_url":"https://api.github.com/users/Khorkhe/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T01:02:51Z","updated_at":"2016-04-06T01:02:51Z","body":"@jamesward When you say \"deployment is manual\", do you mean I have to npm init and npm install the packages to use?  If that's the case, I have tried that and here is what I reached:\r\n- using browserify, I was able to \"require\" npm plugins' javascripts (e.g. jquery, bootstrap ...)\r\n- for CSS however, I tried using css \"import\" on directory node_modules/... (using npm-css module) as well as standard insertion of external stylesheets.  \r\nAttempting this on a non-playframework project worked (simple index.html with css files).  But once used within my Play app, it would return a 404.  I made sure the path specified included the appropriate amount of \"../\"\r\n\r\nI found an interesting paragraph in Play Migration [docs](https://www.playframework.com/documentation/2.5.x/Migration23)\r\n\r\n> npm can be used as well as WebJars by declaring a package.json file in the root of your project. Assets  from npm packages are extracted into the same lib folder as WebJars so that, from a code perspective,  there is no concern whether the asset is sourced from a WebJar or from an npm package.\r\n\r\nAfter browsing project files, I found npm packages were extracted in /node_modules.  Attempting to use WebJar syntax to locate CSS files belonging to an npm module returns a WebJar not found error in the Play app.\r\n\r\nDo you happen to have any ideas?\r\nThanks again."}}