Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): change config option name spaFile to spa
- Loading branch information
Showing
6 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = (config, options) -> | ||
log = require "#{config.req.helpers}/log" | ||
test = require("#{config.req.helpers}/test")() | ||
pkg = require "#{config.req.app}/package.json" | ||
|
||
# init spa | ||
# ======== | ||
spa = {} | ||
spa.title = options.spa.title or pkg.name or 'Application' | ||
spa.description = options.spa.description or pkg.description or null | ||
|
||
# add spa to config | ||
# ===================== | ||
config.spa = spa | ||
|
||
# logs | ||
# ==== | ||
# log.json spa, 'spa =' | ||
|
||
# tests | ||
# ===== | ||
test.log 'true', config.spa, 'add spa to config' | ||
|
||
# return | ||
# ====== | ||
config | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters