Code Monkey home page Code Monkey logo

grunt-devtools's Introduction

grunt-devtools 0.2.1

Grunt Task Runner Extension for Chrome Developer Tools and Adobe Brackets

Quick Setup (Google Chrome)

  • Download the Grunt Devtools extension for Chrome Developer Tools from the Chrome Web Store.
  • Global Install (Want a local plugin install? See local setup).
    • npm install -g grunt-devtools
    • run grunt-devtools in a directory with a Gruntfile!
  • open Chrome Dev tools, find the Grunt tab. Your grunt tasks should now be accessible from Chrome.

Screenshots

Local Setup

  • npm install grunt-devtools in your grunt project
  • Add grunt.loadNpmTasks('grunt-devtools'); to your Gruntfile
  • run grunt devtools
  • open Chrome Dev tools, find the Grunt tab. Your grunt tasks should now be accessible from Chrome.

Updating from an older version

  • Chrome extension updates automatically or you can force an update under chrome://extensions
  • Grunt plugin updates using npm install grunt-devtools@latest
  • The versions of the plugin and extension should always match (0.2.1 in Chrome is 0.2.1 on npm)

Issues

If you experience issues, perform an update first. If issues still occur - report it or ask for help in the #grunt irc channel on Freenode

See the CHANGELOG for release history . See the contributing guide for local development instructions.

grunt-devtools's People

Contributors

vladikoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-devtools's Issues

grunt-devtools should be a standalone util

This is a great idea, but it should be a standalone utility.

Right now, if someone wants to incorporate grunt-devtools into their project, it's via Grunt plugin that goes in the package.json / Gruntfile. They then amend their Readme to tell other collaborators how to use their sexy new grunt-devtools workflow.

Except not everyone who contributes to a project will want to or be able to use grunt-devtools. Someone might be on an unsupported OS or not have access to Chrome or might just not want to use it because they prefer a text-based shell. For those users, this project-proscribed GUI around Grunt can actually hinder collaborative development.

I'd like to suggest that you make grunt-devtools a standalone utility, instead of a Grunt plugin, that is not installed locally into a project, because it exists orthogonal to projects and is more developer-centric.

Maybe it could be made to work in such a way that a potential contributor reading a Readme written by someone using either CLI-based Grunt or grunt-devtools can read one set of directions and understand how it works in whichever mode they are more familiar.

Basically, make it like a shell, but with buttons and progress bars. But please don't make it a Grunt plugin.

grunt-devtools enviroment setting

thanks for the awesome Extension, i really enjoy it! grunt-devtools works fine for me in the normal grunt project enviroment. Actually i have a project where i execute my gruntfiles in the following setup and the grunt-devtools cant execute the tasks

project/node_modules

project/customer/campaign/Gruntfile.js

Executing any Task works fine with:
grunt --base project/node_modules --gruntfile project/customer/campaign/Gruntfile.js default

and this also

grunt --base project/node_modules --gruntfile project/customer/campaign/Gruntfile.js devtools

running the listed tasks via the extension bring:
Warning: Task "taskname" not found.๏ฟฝ Use --force to continue.
Aborted due to warnings.

is it possible to run the extension with this setup?

GreetinX

Command line is too long

Hello, I've successfully installed globally grunt-devtools and its chrome extension, and it's running fine on one of my old grunt project.

Anyway in the one I'm currently working to, when I type grunt-devtools it returns an error, I'm not sure what the exact translation is but should be something like "Command line is too long".

The tasks are running fine from the command line so I'm not sure what's going wrong...

Background tasks don't update their output

If I move a task to the background, then the task no longer automatically appends its output to the UI (even if that task is the current task).

You have to click on the task again in the left tree to cause it to update.

I would think you would want your watch task in the background and typically have it selected. But since the task doesn't report any further output, the functionality is significantly reduced.

Console renders HTML

The console should escape/HTML encode special characters. If I have some HTML output in the console, the Dev Tools will actually render this.

Problem establishing connection on windows 7

i consistently get an "InvalidStateError: DOM Exception 11" (during handleSocketOpen) error on windows 7. increasing the setTimeout timer to 2000ms instead of 1000ms on the connect function seems to fix it right away so my best guess is that the extension is retrying too fast.

on a 1000ms tick, the websocket object for localhost:61751 is created right before the onopen event (handled by handleSocketOpen) is emitted for localhost:61750 (61750 is the default port on the grunt-devtool task).

on a 2000ms tick, the websocket object for localhost:61751 is created after the onopen event for localhost:61750

I don't get the same behavior on OSX (the onopen event is emitted right after 61750 is created, not after 61751). grunt-devtools actually doesn't work on my windows 7 machine at home and windows 7 machine at work(both on chrome 26) but i am trying to establish what the other causes are at the moment before putting in issues for them.

Allow setting a gruntfile and other passed in parameters

I have a project where I use multiple gruntfile files to keep things organized. Similarly I pass in variables to be used within the grunt file. I love the idea of having everything in Chrome instead of going back to the command line, but need to be able to pass this additional info in.

Fails to load Gruntfile.js after calling setBase

In our project structure, we have the grunt-files in a seperate folder (tools/build/), and we set the base after loading all the tasks:
grunt.file.setBase('../../');

Because of this, the devtools task cannot find the Gruntfile.js

Could this path be added to a devtools-configuration-section (just like configuring other grunt tasks)?

Some docs suggestions

First, fantastic work on this, @vladikoff :) Love it.

Some ideas for the docs:

  • Clarify whether this is for existing projects using Grunt or can be used on brand new projects too. Based on what I see, it requires an existing gruntfile so maybe just expand on this.
  • Screencast? Would love to see you walking through how you use this in your workflow. Is it primarily to avoid flipping back to the command-line?
  • Could this be used with something like Yeoman (specifically the yo scaffold?) - maybe not something for docs, but good to know.

Support for hosts other than localhost

I like to run grunt inside a vagrant instance and I usually add a host file entry to the box, so I'd hit something like dev.awesomeproject.com. It would be awesome if the extension used the current tab's host rather than default to localhost.

Doesn't recognize Gruntfile.coffee

First off, I absolutely love this extension! However, the devtools task doesn't recognize the Gruntfile if it's written in CoffeeScript:

Warning: ENOENT, no such file or directory 'Gruntfile.js' Use --force to continue.

Error for Local Setup

Deleted- Had to run the installer with sudo (as admin). Thanks for the plugin, its great!

Group sub-tasks into task tree

I have currently a bunch of sub-tasks for a couple of tasks, and it looks a bit messy in DevTools panel. Wouldn't it be nice to bring some structure here? Just put sub-task into expandable sub-tree under the main task. I'm working on it right now.

Does this make sense?

Failed to find your Gruntfile

I am getting the error "Failed to find your Gruntfile or 'grunt' node module. Are you running 'grunt-devtools' in a directory with a Gruntfile?" when installing grunt-devtools globally. The local installation works without any issues. I'm running version 0.2.1 on Windows 7.

Alias tasks

Hello,

Does the alias tasks section works ?

It seems that all tasks (alias or not) are listed under task. Did I miss something ? Is there something special to do to help the plugin ?

Question: Windows + Linux

Greetings,

My current web development setup is something like this:

Windows 7 ====> SSH (via putty) =====> Ubuntu Server

I run grunt-devtools on my putty. Then opens my chrome browser on windows. And nothing happen on the grunt tab.

So my question is...

Am I able to run grunt-devtools on this kind of setup? If yes, do i need to setup something?

Request: Keyboard shortcuts

It will be cool if some of the tasks can be run via keyboard shortcuts. For example: I can run my build with "cmd + shift + b" and not switching to the terminal.

Feature requests

When switching grunt projects, could the scrollbar stick to the bottom, so you don't have to scroll down everytime you switch?

If a(n) (build) error occures, could the project light up (red or something) as an indication something is wrong?

XOR performance will be degraded

Sorry, this isn't an error something i am missing on my config.
Each time i run devtools i get the following warnings:

โ†’ grunt devtools
Running "devtools" task
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.

Grunt Devtools v0.1.0-7 is ready! Proceed to the Chrome extension.

Is there something about this?

Thanks

Calling `devtools` is blocking further tasks execution

Calling devtools task will block execution of any other tasks, if presented.

grunt.task.run([
      'clean:server',
      'bower-install',
      'concurrent:server',
      'autoprefixer',
      'express:dev',
      'devtools',
      'open',
      'watch'
]);

open and watch tasks will never run.

Running globally installed task in another tab in the console is kinda ok, but having the task automatically installed locally and being executed among others with grunt serve is a much more better approach.

Conflict with Anti-Virus

My employer has Kaspersky anti-virus on our PC's. When installing the npm package for grunt-devtools, I received a report from Kaspersky:
12/16/2013 9:03:45 AM Process C:\PROGRAM FILES\NODEJS\NODE.EXE (PID: 16272): Process is trying to redirect data input/output. Probably it is attempt of remote access to your computer (RootShell)
and then:
12/16/2013 9:03:46 AM Process C:\PROGRAM FILES\NODEJS\NODE.EXE (PID: 16272): Source file deleted.

Yup, it actually deleted Node! I'm not sure if there's anything that can be done about this, I imagine this is a vital part of how the plug-in works. Thought I would mentioned it anyways though.

Question

Hi, I like the idea of this, but am not sure of the application? I thought I would be able to run grunt watch with your extension, and still be able to use the Bash window for git commands, but the Bash window is still locked by the grunt devtools command. Am, I doing something wrong?

Thanks.

Run npm install before trying to run devtools.

If you install grunt-devtools in the global namespace, it would be nice that the module installed the modules, from the gruntfile through npm-install instead of simply pushing out an error.
Even if I have grunt installed in a "global" space:

npm install -g grunt

It gives out this error
Error

Fatal error: Unable to find local grunt.
Failed to find your Gruntfile or 'grunt' node module.
Are you running 'grunt-devtools' in a directory with a Gruntfile?

Best
Lucas

Feature request : pass command line arguments to launched tasks

Hi,

I think it would be great to be able to pass command line arguments received by the "grunt devtools" command to the one we launch manually in chrome.

For instance, if I run : "grunt devtools --someArg=someValue"
It would be great that when I launch another task from the chrome extension it sees that argument.

What do you think ?

Thanks.

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.