Giter VIP home page Giter VIP logo

closure-compiler-brunch's People

Contributors

greenkeeper[bot] avatar prashnts avatar shvaikalesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nerevu

closure-compiler-brunch's Issues

error: You probably need to execute `npm install`

Hello there, thank you for your work.

I've installed this package, but when I try to run brunch build I get the following error:

17 Sep 15:57:36 - error: Initialization error - You probably need to execute `npm install` to install brunch plugins. SyntaxError: Unexpected token =
  at /Code/node_modules/brunch/lib/plugins.js:103:17
  at Array.map (native)
  at deps.filter.dependency.map (/Code/node_modules/brunch/lib/plugins.js:91:8)
  at packages.filter.plugin.filter.plugins.map.plugin.filter.deps.filter.allPlugins.filter (/Code/node_modules/brunch/lib/plugins.js:110:19)
  at Object.packages.filter.plugin.filter.plugins.map.plugin.filter.deps.filter.exports.init.teardownBrunch [as init] (/Code/node_modules/brunch/lib/plugins.js:133:20)
  at /Code/node_modules/brunch/lib/watch.js:81:19

Some details:

  • brunch v2.1.3
  • node v5.11.1
  • closure-compiler-brunch v0.1.2

Here's my brunch.config:

exports.config = {
  files: {
    javascripts: {
      joinTo: "js/app.js",
    },
    stylesheets: {
      joinTo: "css/app.css"
    },
    templates: {
      joinTo: "js/app.js"
    }
  },

  conventions: {
    assets: /^(web\/static\/assets)/
  },

  paths: {
    watched: [
      "web/static",
      "test/static"
    ],
    public: "priv/static"
  },

  plugins: {
    babel: {
      ignore: [/web\/static\/vendor/],
      presets: ['es2015', 'es2016', 'react']
    },
    closurecompiler: {
      compilationLevel: 'SIMPLE',
      createSourceMap: true
    },
    cleancss: {
      keepSpecialComments: 0,
      removeDuplicates: true,
      removeEmpty: true
    },
    gzip: {
      paths: {
        javascript: 'js',
        stylesheet: 'css'
      },
      removeOriginalFiles: false,
      renameGzipFilesToOriginalFiles: false
    }
  },

  modules: {
    autoRequire: {
      "js/app.js": [
        "web/static/js/app"
      ]
    }
  },

  npm: {
    enabled: true,
    // Whitelist the npm deps to be pulled in as front-end assets.
    // All other deps in package.json will be excluded from the bundle.
    whitelist: [],
  }
};

Thanks in advance for eventual help on this.

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.