Permalink
Browse files

Remove default skeleton. Ask user specify it by default.

  • Loading branch information...
1 parent ded854a commit 17f939ee841e4b07081ae38c261fb5ebe37d6e11 @paulmillr paulmillr committed Jun 29, 2013
Showing with 17 additions and 8 deletions.
  1. +0 −3 .gitmodules
  2. +0 −1 skeletons/brunch-with-chaplin
  3. +17 −4 src/index.coffee
View
3 .gitmodules
@@ -1,3 +0,0 @@
-[submodule "skeletons/brunch-with-chaplin"]
- path = skeletons/brunch-with-chaplin
- url = git://github.com/paulmillr/brunch-with-chaplin.git
1 skeletons/brunch-with-chaplin
@@ -1 +0,0 @@
-Subproject commit 2a0f52baf9da1964c7f5af7349faf4a27892c48a
View
21 src/index.coffee
@@ -3,12 +3,25 @@
initSkeleton = require 'init-skeleton'
sysPath = require 'path'
watch = require './watch'
+logger = require 'loggy'
-defaultSkeleton = sysPath.join(
- __dirname, '..', 'skeletons', 'brunch-with-chaplin'
-)
+create = (skeleton, path = '.') ->
+ unless skeleton
+ logger.error '''
+ You must specify skeleton (boilerplate) from which brunch will initialize
+ new application.
-create = (skeleton = defaultSkeleton, path = '.') ->
+ You can specify directory on disk, Git URL or GitHub url (gh:user/repo).
+
+ Some suggestions:
+
+ * `gh:brunch/dead-simple` if you want no opinions. Just initializes configs and empty directories.
+ * `gh:paulmillr/brunch-with-chaplin`: Brunch with Chaplin (Backbone, Chaplin, CoffeeScript). The most popular skeleton
+
+ All other skeletons (40+) are available at
+ http://git.io/skeletons
@es128
es128 Jun 29, 2013

I almost changed this to brunch.io assuming it was a typo. Good thing I checked first.

+ '''
+ return
initSkeleton skeleton, path
module.exports = {

0 comments on commit 17f939e

Please sign in to comment.