Git Product home page Git Product logo

grunt-sbt's Issues

Support for Scala 2.11

Unable to use the grunt-sbt plugin since we are running on scala 2.11.6 release.

Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.3 ... [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.3 ... [info] Resolving jline#jline;2.12.1 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.rbayer#grunt-sbt;1.0: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes. [warn] org.rbayer:grunt-sbt:1.0 (scalaVersion=2.11, sbtVersion=0.13) [warn] [warn] Note: Unresolved dependencies path: [warn] org.rbayer:grunt-sbt:1.0 (scalaVersion=2.11, sbtVersion=0.13) (/Users/jshao/Documents/IdeaProjects/sysmgmt/plugins.sbt#L2-3) [warn] +- org.rbayer:grunt-example_2.11:1.0 [trace] Stack trace suppressed: run 'last *:update' for the full output. [trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output. [error] (*:update) sbt.ResolveException: unresolved dependency: org.rbayer#grunt-sbt;1.0: not found [error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.rbayer#grunt-sbt;1.0: not found </a>

Feature Request: Gruntfile.js in subdirectory

Many projects have frontend work traditionally in the ui subdirectory. Grunt-sbt expects everything (Grundfile.js, package.json, etc.) on the top level of the project. Please add a configuration option for a directory prefix.

IOException: Cannot run program "npm"

Hey, I got the following error if I try to use your plugin.

java.io.IOException: Cannot run program "npm" (in directory "D:\repositories\play-typescript"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
sbt.SimpleProcessBuilder.run(ProcessImpl.scala:388)
sbt.AbstractProcessBuilder.run(ProcessImpl.scala:138)
sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:166)
org.rbayer.GruntSbtPlugin$.org$rbayer$GruntSbtPlugin$$exec(GruntSbtPlugin.scala:205)
org.rbayer.GruntSbtPlugin$$anonfun$npmInstallTask$1.apply(GruntSbtPlugin.scala:140)
org.rbayer.GruntSbtPlugin$$anonfun$npmInstallTask$1.apply(GruntSbtPlugin.scala:135)
scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
sbt.std.Transform$$anon$4.work(System.scala:64)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
sbt.Execute.work(Execute.scala:244)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)

npm is in my env variables and available everywhere. I have also tried several different paths with slashes, backslashes... and so forth but nothing was working.

Edit: OS => Windows 7 64Bit

grunt is executed before npm install

When compiling my project I get the following error. I think it occurs because grunt build is executed before npm install, thus grunt is not available yet. I'm using play-2.2.2.

[info] Executing grunt-sbt command: grunt build
grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
[info] Executing grunt-sbt command: npm install
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/grunt-contrib-cssmin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.