Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
improve template, add default favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 15, 2017
1 parent 230d1a5 commit 9bd2559
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 4 deletions.
5 changes: 5 additions & 0 deletions bin/vbuild-init
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const meow = require('meow')
const kopy = require('kopy')
const $ = require('shelljs')
const tildify = require('tildify')
const install = require('yarn-install')
const logger = require('../lib/logger')
const _ = require('../lib/utils')

Expand Down Expand Up @@ -52,6 +53,10 @@ kopy(_.ownDir('template'), dest, {
console.log(`${chalk.magenta('Moving ')} · ${file} -> .${file}`)
$.mv(path.join(dest, file), path.join(dest, `.${file}`))
}

console.log('\n> Installing vbuild in project:\n')
install({cwd: dest})

console.log(`\n${chalk.bgGreen.black(' DONE ')} Successfully generated into ${chalk.yellow(tildify(dest))}!\n`)

console.log(chalk.bold('To get started:'))
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"webpack": "^2.2.1",
"webpack-dev-middleware": "^1.10.0",
"webpack-hot-middleware": "^2.16.1",
"webpack-merge": "^2.6.1"
"webpack-merge": "^2.6.1",
"yarn-install": "^0.2.1"
}
}
}
Binary file added template/static/favicon.ico
Binary file not shown.
39 changes: 37 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,18 @@ builtin-status-codes@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"

cac@^3.0.3:
version "3.0.4"
resolved "https://registry.npmjs.org/cac/-/cac-3.0.4.tgz#6d24ceec372efe5c9b798808bc7f49b47242a4ef"
dependencies:
camelcase-keys "^3.0.0"
chalk "^1.1.3"
indent-string "^3.0.0"
minimist "^1.2.0"
read-pkg-up "^1.0.1"
suffix "^0.1.0"
text-table "^0.2.0"

caller-path@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
Expand Down Expand Up @@ -1177,6 +1189,13 @@ camelcase-keys@^2.0.0:
camelcase "^2.0.0"
map-obj "^1.0.0"

camelcase-keys@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-3.0.0.tgz#fc0c6c360363f7377e3793b9a16bccf1070c1ca4"
dependencies:
camelcase "^3.0.0"
map-obj "^1.0.0"

camelcase@^1.0.2:
version "1.2.1"
resolved "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
Expand Down Expand Up @@ -1589,7 +1608,7 @@ cross-spawn-async@^2.1.1:
lru-cache "^4.0.0"
which "^1.2.8"

cross-spawn@^4.0.0:
cross-spawn@^4.0.0, cross-spawn@^4.0.2:
version "4.0.2"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
dependencies:
Expand Down Expand Up @@ -2949,6 +2968,10 @@ indent-string@^2.1.0:
dependencies:
repeating "^2.0.0"

indent-string@^3.0.0:
version "3.1.0"
resolved "https://registry.npmjs.org/indent-string/-/indent-string-3.1.0.tgz#08ff4334603388399b329e6b9538dc7a3cf5de7d"

indexes-of@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607"
Expand Down Expand Up @@ -5631,6 +5654,10 @@ strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

suffix@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/suffix/-/suffix-0.1.0.tgz#3e46966de56af17600385e58db8ec659dd797907"

supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
Expand Down Expand Up @@ -5709,7 +5736,7 @@ test-exclude@^3.3.0:
read-pkg-up "^1.0.1"
require-main-filename "^1.0.1"

text-table@~0.2.0:
text-table@^0.2.0, text-table@~0.2.0:
version "0.2.0"
resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"

Expand Down Expand Up @@ -6348,3 +6375,11 @@ yargs@~3.10.0:
cliui "^2.1.0"
decamelize "^1.0.0"
window-size "0.1.0"

yarn-install@^0.2.1:
version "0.2.1"
resolved "https://registry.npmjs.org/yarn-install/-/yarn-install-0.2.1.tgz#43841c12d7099a481f89fbfa6ca49d3bf92d15e3"
dependencies:
cac "^3.0.3"
chalk "^1.1.3"
cross-spawn "^4.0.2"

0 comments on commit 9bd2559

Please sign in to comment.