Rename buildcfg to config

This commit is contained in:
Tim Schaub
2014-08-21 17:11:13 -06:00
parent c7ba6f4c6e
commit f17c33f631
63 changed files with 24 additions and 24 deletions

View File

@@ -145,15 +145,15 @@ def build_ol_css(t):
t.output('%(CLEANCSS)s', 'css/ol.css') t.output('%(CLEANCSS)s', 'css/ol.css')
@target('build/ol.js', SRC, SHADER_SRC, 'buildcfg/ol.json') @target('build/ol.js', SRC, SHADER_SRC, 'config/ol.json')
def build_ol_new_js(t): def build_ol_new_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/ol.json', 'build/ol.js') t.run('node', 'tasks/build.js', 'config/ol.json', 'build/ol.js')
report_sizes(t) report_sizes(t)
@target('build/ol-debug.js', SRC, SHADER_SRC, 'buildcfg/ol-debug.json') @target('build/ol-debug.js', SRC, SHADER_SRC, 'config/ol-debug.json')
def build_ol_debug_js(t): def build_ol_debug_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/ol-debug.json', 'build/ol-debug.js') t.run('node', 'tasks/build.js', 'config/ol-debug.json', 'build/ol-debug.js')
report_sizes(t) report_sizes(t)
@@ -200,9 +200,9 @@ def examples_examples_list_js(t):
@target('build/examples/all.combined.js', 'build/examples/all.js', @target('build/examples/all.combined.js', 'build/examples/all.js',
SRC, SHADER_SRC, 'buildcfg/examples-all.json') SRC, SHADER_SRC, 'config/examples-all.json')
def build_examples_all_combined_js(t): def build_examples_all_combined_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/examples-all.json', t.run('node', 'tasks/build.js', 'config/examples-all.json',
'build/examples/all.combined.js') 'build/examples/all.combined.js')
report_sizes(t) report_sizes(t)
@@ -218,7 +218,7 @@ def examples_star_json(name, match):
# It would make more sense to use olx.js as an input file here. We use # It would make more sense to use olx.js as an input file here. We use
# it as an externs file instead to prevent "Cannot read property '*' of # it as an externs file instead to prevent "Cannot read property '*' of
# undefined" error when running examples in "raw" or "whitespace" mode. # undefined" error when running examples in "raw" or "whitespace" mode.
# Note that we use the proper way in buildcfg/examples-all.json, which # Note that we use the proper way in config/examples-all.json, which
# is only used to check the examples code using the compiler. # is only used to check the examples code using the compiler.
content = json.dumps({ content = json.dumps({
"exports": [], "exports": [],
@@ -533,10 +533,10 @@ virtual('apidoc', 'build/jsdoc-%(BRANCH)s-timestamp' % vars(variables))
@target('build/jsdoc-%(BRANCH)s-timestamp' % vars(variables), 'host-resources', @target('build/jsdoc-%(BRANCH)s-timestamp' % vars(variables), 'host-resources',
SRC, SHADER_SRC, ifind('buildcfg/jsdoc/api/template')) SRC, SHADER_SRC, ifind('config/jsdoc/api/template'))
def jsdoc_BRANCH_timestamp(t): def jsdoc_BRANCH_timestamp(t):
t.run('%(JSDOC)s', 'buildcfg/jsdoc/api/index.md', t.run('%(JSDOC)s', 'config/jsdoc/api/index.md',
'-c', 'buildcfg/jsdoc/api/conf.json', '-c', 'config/jsdoc/api/conf.json',
'-d', 'build/hosted/%(BRANCH)s/apidoc') '-d', 'build/hosted/%(BRANCH)s/apidoc')
t.touch() t.touch()

View File

@@ -1,3 +0,0 @@
# Build configs
This directory includes configuration files (json) for the build scripts in tasks/.

View File

@@ -1,7 +1,7 @@
{ {
"opts": { "opts": {
"recurse": true, "recurse": true,
"template": "buildcfg/jsdoc/api/template" "template": "config/jsdoc/api/template"
}, },
"tags": { "tags": {
"allowUnknownTags": true "allowUnknownTags": true
@@ -17,12 +17,12 @@
}, },
"plugins": [ "plugins": [
"node_modules/jsdoc/plugins/markdown", "node_modules/jsdoc/plugins/markdown",
"buildcfg/jsdoc/api/plugins/inheritdoc", "config/jsdoc/api/plugins/inheritdoc",
"buildcfg/jsdoc/api/plugins/interface", "config/jsdoc/api/plugins/interface",
"buildcfg/jsdoc/api/plugins/typedefs", "config/jsdoc/api/plugins/typedefs",
"buildcfg/jsdoc/api/plugins/events", "config/jsdoc/api/plugins/events",
"buildcfg/jsdoc/api/plugins/observable", "config/jsdoc/api/plugins/observable",
"buildcfg/jsdoc/api/plugins/api" "config/jsdoc/api/plugins/api"
], ],
"markdown": { "markdown": {
"parser": "gfm" "parser": "gfm"

View File

@@ -1,7 +1,7 @@
{ {
"opts": { "opts": {
"recurse": true, "recurse": true,
"template": "buildcfg/jsdoc/info" "template": "config/jsdoc/info"
}, },
"tags": { "tags": {
"allowUnknownTags": true "allowUnknownTags": true
@@ -10,7 +10,7 @@
"includePattern": "\\.js$" "includePattern": "\\.js$"
}, },
"plugins": [ "plugins": [
"buildcfg/jsdoc/info/api-plugin", "config/jsdoc/info/api-plugin",
"buildcfg/jsdoc/info/define-plugin" "config/jsdoc/info/define-plugin"
] ]
} }

3
config/readme.md Normal file
View File

@@ -0,0 +1,3 @@
# Configuration Files
This directory includes configuration files for the build scripts in and documentation templates.

View File

@@ -15,7 +15,7 @@ var externsPaths = [
var infoPath = path.join(__dirname, '..', 'build', 'info.json'); var infoPath = path.join(__dirname, '..', 'build', 'info.json');
var jsdoc = path.join(__dirname, '..', 'node_modules', '.bin', 'jsdoc'); var jsdoc = path.join(__dirname, '..', 'node_modules', '.bin', 'jsdoc');
var jsdocConfig = path.join( var jsdocConfig = path.join(
__dirname, '..', 'buildcfg', 'jsdoc', 'info', 'conf.json'); __dirname, '..', 'config', 'jsdoc', 'info', 'conf.json');
/** /**