Code Monkey home page Code Monkey logo

brunch-extensions's Introduction

Brunch Weekly downloads Yearly downloads

Web applications made easy. Since 2011.

Fast front-end web app build tool with simple declarative config and seamless incremental compilation for rapid development.

Usage

Install Brunch with a simple node.js package manager command:

npm install -g brunch
  1. Create a new Brunch project: brunch new [--skeleton url]
    • skeleton specifies a skeleton from which your application will be initialized. The default skeleton (dead-simple) doesn't have any opinions about frameworks or libraries.
    • brunch.io/skeletons contains over 50 boilerplate projects, which you can use to init your app from.
  2. Develop with Brunch: brunch watch --server
    • tells Brunch to watch your project and incrementally rebuild it when source files are changed. The optional server flag launches a simple web server with push state support.
  3. Deploy with Brunch: brunch build --production
    • builds a project for distribution. By default it enables minification.

Learn

Contributing

See the CONTRIBUTING.md document for more info on how to file issues or get your head into the Brunch's internals.

  • To install edge version (from GitHub master branch): npm install -g brunch/brunch
  • To enable debug mode, simply pass -d flag to any command like that: brunch build -d
  • To create your own plugin, check out our plugin boilerplate as a starting point.

License

MIT license (c) 2021 Paul Miller paulmillr.com, Elan Shanker, Nik Graf, Thomas Schranz, Allan Berger, Jan Monschke, Martin Schürrer

See LICENSE file.

brunch-extensions's People

Contributors

mdp avatar paulmillr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brunch-extensions's Issues

Ignore SASS partials

SASS partials are files with names starting with _. They should not be processed by Brunch.

There is often a main SASS file which imports others, for instance both _mixins.scss and _foo.scss. If _foo.scss is processed, it will not have access to _mixins.scss and Brunch throws errors.

Adding something like return if /\/_/.test path in the SASS compile method should work.

You can read more about partials at http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#partials

Fails when creating a new project

On Windows 7
Node.js msi installed

PS D:\Proyectos\testbrunch> brunch new test2
[18:23:59]: [Brunch]: created brunch directory layout
[18:23:59]: [Brunch]: installing npm packages...
[18:24:10]: [Brunch]: npm error: Error: Command failed: npm http GET https://registry.npmjs.org/brunch-extensions/0.1.0
npm http 304 https://registry.npmjs.org/brunch-extensions/0.1.0
npm http GET https://registry.npmjs.org/mkdirp/0.2.1
npm http GET https://registry.npmjs.org/roy/0.1.3
npm http GET https://registry.npmjs.org/eco/1.0.3
npm http GET https://registry.npmjs.org/jade/0.19.0
npm http GET https://registry.npmjs.org/coffee-script/1.2.0
npm http GET https://registry.npmjs.org/less/1.1.6
npm http GET https://registry.npmjs.org/stylus/0.21.2
npm http GET https://registry.npmjs.org/async/0.1.15
npm http 304 https://registry.npmjs.org/coffee-script/1.2.0
npm http 304 https://registry.npmjs.org/jade/0.19.0
npm http 304 https://registry.npmjs.org/roy/0.1.3
npm http 304 https://registry.npmjs.org/mkdirp/0.2.1
npm http 304 https://registry.npmjs.org/eco/1.0.3
npm http 304 https://registry.npmjs.org/less/1.1.6
npm http 304 https://registry.npmjs.org/stylus/0.21.2
npm http 304 https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/strscan
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/jison
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/growl/1.1.0
npm http GET https://registry.npmjs.org/cssom/0.2.0
npm http GET https://registry.npmjs.org/mkdirp/0.0.7
npm http 304 https://registry.npmjs.org/strscan
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/cssom/0.2.0
npm http 304 https://registry.npmjs.org/jison
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/mkdirp/0.0.7
npm http 304 https://registry.npmjs.org/growl/1.1.0
npm http GET https://registry.npmjs.org/reflect
npm http GET https://registry.npmjs.org/JSONSelect
npm http GET https://registry.npmjs.org/nomnom/0.4.3
npm http 304 https://registry.npmjs.org/reflect
npm WARN [email protected] package.json: 'modules' object is deprecated
npm http 304 https://registry.npmjs.org/JSONSelect
npm http 304 https://registry.npmjs.org/nomnom/0.4.3
The "sys" module is now called "util". It should have a similar interface.
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! error installing [email protected]

npm ERR! [email protected] postinstall: ./node_modules/coffee-script/bin/coffee -o lib/ src/
npm ERR! cmd "/c" "./node_modules/coffee-script/bin/coffee -o lib/ src/" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the brunch-extensions package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/coffee-script/bin/coffee -o lib/ src/
npm ERR! You can get their info via:
npm ERR! npm owner ls brunch-extensions
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js"
"install"
npm ERR! cwd D:\Proyectos\testbrunch\test2
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-3
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] postinstall: ./node_modules/coffee-script/bin/coffee -o lib/ src/
npm ERR! message cmd "/c" "./node_modules/coffee-script/bin/coffee -o lib/ src/" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\Proyectos\testbrunch\test2\npm-debug.log

C:\Users\Pablo\AppData\Roaming\npm\node_modules\brunch\node_modules\growl\lib\growl.js:98
, args = [cmd.pkg]
^
TypeError: Cannot read property 'pkg' of undefined
at growl (C:\Users\Pablo\AppData\Roaming\npm\node_modules\brunch\node_modules\growl\lib\growl.js:98:18)
at Object.log (C:\Users\Pablo\AppData\Roaming\npm\node_modules\brunch\lib\helpers.js:104:14)
at Object.logError (C:\Users\Pablo\AppData\Roaming\npm\node_modules\brunch\lib\helpers.js:111:20)
at C:\Users\Pablo\AppData\Roaming\npm\node_modules\brunch\lib\brunch.js:122:25
at ChildProcess.exithandler (child_process.js:287:7)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:361:16)
at Process.onexit (child_process.js:397:5)

Failing when installing brunch-extensions

npm ERR! error installing [email protected]
npm ERR! error installing [email protected]

npm ERR! [email protected] install: node src/grammar.js
npm ERR! sh "-c" "node src/grammar.js" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the roy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node src/grammar.js
npm ERR! You can get their info via:
npm ERR! npm owner ls roy
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/Users/aldo/local/node/bin/npm" "install" "-g" "brunch-extensions"
npm ERR! cwd /Users/aldo/Satio/Desarrollo/backbone
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node src/grammar.js
npm ERR! message sh "-c" "node src/grammar.js" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/aldo/Satio/Desarrollo/backbone/npm-debug.log
npm not ok

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.