Giter Site home page Giter Site logo

grunt-dart2js's People

Contributors

atrauzzi avatar defrex avatar subasteve avatar

Stargazers

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

Watchers

 avatar  avatar

grunt-dart2js's Issues

Default dart2js location incorrect on Windows

In order for the default location of dart2js to work, it must end in '.bat'. Here is the dart2js grunt task that I created to fix the issue in my build so it would work on both mac and windows.

    dart2js: {
        //
        // options: assumes dart2js executable is in default location
        //
        options: {
            "dart2js_bin": (process.platform == 'win32') 
                ? (process.env['USERPROFILE'] + "/dart/dart-sdk/bin/dart2js.bat") 
                : (process.env['USER'] + "/dart/dart-sdk/bin/dart2js")
        },
        compile: {
            files: {'src/js/life.dart.js': 'src/dart/main.dart'}
        }
    }

Here are the dependancies in my package.json file; I'm using grunt-dart2js 0.0.5

"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-less": "~0.8.2",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-dart2js": "0.0.5",
"grunt-ts": "^1.11.7"
}

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.