Question

I couldn't find any Brunch.io skeleton that suited my project and so I tried to start from scratch and create my own. But it wasn't before long that I was only scratching my head instead.

Could someone please explain how to start a new project in an empty folder and integrate it with Brunch, using just the terminal and a text editor?

PLEASE DO NOT USE EXISTING SKELETONS

Ideally I'm looking for a tutorial like this: https://coderwall.com/p/pijtcq, but with more detail at each step.

Was it helpful?

Solution

I suggest to take a look at dead-simple brunch, this is official skeleton which is maximally minimal.

https://github.com/brunch/dead-simple

Maybe still take it and add your own framework, lang plugins and stuff.

Or, you can re-create your own, by following the same path: add bower.json, brunch-config and package.json. That's it, I guess.

OTHER TIPS

Going through the dead-simple skeleton helped me understand how Brunch works but I couldn't fire any of my custom js. But I finally, got it... add this code to the brunch-config file to execute all your js files as expected.

modules:
  definition: false
  wrapper: false

Not sure why this isn't the default behaviour or why it isn't explicitly mentioned anywhere. I spent ages sifting through the net to get this answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top