Skip to content

Commit

Permalink
references dbashford/mimosa#284, making tracking enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dbashford committed Sep 21, 2013
1 parent deeac44 commit b9e1c44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports.defaults = function() {
exclude: [],
commonConfig: "common",
tracking: {
enabled: false,
enabled: true,
path: ".mimosa/require/tracking.json"
},
verify: {
Expand All @@ -26,7 +26,7 @@ exports.defaults = function() {
};

exports.placeholder = function() {
return "\t\n\n # require: # configuration for requirejs options.\n # exclude:[] # Regex or string paths. Paths can be absolute or relative to the\n # watch.javascriptDir. These files will be excluded from all\n # require module functionality. That includes AMD verification and\n # being considered a root level file to be optimized.\n # commonConfig: \"common\" # The path from 'javascriptDir' to the location of common requirejs\n # config. This is config shared across multiple requirejs modules.\n # This should be either a require.config({}) or a requirejs.config({}) function call.\n # Defaults to the value `common` - referring to a file named common.js in the root of javascriptDir.\n # Does not need to exist, so can be left alone if a commonConfig is not\n # being used.\n # tracking: # every time mimosa starts up, mimosa-require needs to be able to\n # build a dependency graph for the codebase. It can do that by\n # processing all the files, but that means each file needs to be\n # processed when mimosa watch starts which slows down startup.\n # tracking allows mimosa-require to write interim state to the file\n # system so that from one mimosa run to another it can persist the\n # important information and not need the entire application to be\n # rebuilt\n # enabled: false # whether or not tracking is enabled\n # path: \".mimosa/require/tracking.json\" # the path to the tracking file relative to the\n # root of the project.\n # verify: # settings for requirejs path verification\n # enabled: true # Whether or not to perform verification\n # optimize :\n # inferConfig:true # Mimosa figures out all you'd need for a simple r.js optimizer run.\n # If you rather Mimosa not do that, set inferConfig to false and\n # provide your config in the overrides section. See here\n # https://github.com/dbashford/mimosa#requirejs-optimizer-defaults\n # to see what the defaults are.\n # overrides: # Optimization configuration and Mimosa overrides. If you need to\n # make tweaks uncomment this line and add the r.js config\n # (http://requirejs.org/docs/optimization.html#options) as new\n # paramters inside the overrides ojbect. To unset Mimosa's defaults,\n # set a property to null.\n #\n # overrides can also be a function that takes mimosa-require's\n # inferred config for each module. This allows the inferred config\n # to be updated and enhanced instead of just overridden.";
return "\t\n\n # require: # configuration for requirejs options.\n # exclude:[] # Regex or string paths. Paths can be absolute or relative to the\n # watch.javascriptDir. These files will be excluded from all\n # require module functionality. That includes AMD verification and\n # being considered a root level file to be optimized.\n # commonConfig: \"common\" # The path from 'javascriptDir' to the location of common requirejs\n # config. This is config shared across multiple requirejs modules.\n # This should be either a require.config({}) or a requirejs.config({}) function call.\n # Defaults to the value `common` - referring to a file named common.js in the root of javascriptDir.\n # Does not need to exist, so can be left alone if a commonConfig is not\n # being used.\n # tracking: # every time mimosa starts up, mimosa-require needs to be able to\n # build a dependency graph for the codebase. It can do that by\n # processing all the files, but that means each file needs to be\n # processed when mimosa watch starts which slows down startup.\n # tracking allows mimosa-require to write interim state to the file\n # system so that from one mimosa run to another it can persist the\n # important information and not need the entire application to be\n # rebuilt\n # enabled: true # whether or not tracking is enabled\n # path: \".mimosa/require/tracking.json\" # the path to the tracking file relative to the\n # root of the project.\n # verify: # settings for requirejs path verification\n # enabled: true # Whether or not to perform verification\n # optimize :\n # inferConfig:true # Mimosa figures out all you'd need for a simple r.js optimizer run.\n # If you rather Mimosa not do that, set inferConfig to false and\n # provide your config in the overrides section. See here\n # https://github.com/dbashford/mimosa#requirejs-optimizer-defaults\n # to see what the defaults are.\n # overrides: # Optimization configuration and Mimosa overrides. If you need to\n # make tweaks uncomment this line and add the r.js config\n # (http://requirejs.org/docs/optimization.html#options) as new\n # paramters inside the overrides ojbect. To unset Mimosa's defaults,\n # set a property to null.\n #\n # overrides can also be a function that takes mimosa-require's\n # inferred config for each module. This allows the inferred config\n # to be updated and enhanced instead of just overridden.";
};

exports.validate = function(config, validators) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mimosa-require",
"version": "1.3.0",
"version": "1.4.0",
"homepage": "http://www.mimosa.io",
"author": "David Bashford",
"description": "AMD/RequireJS module for Mimosa browser development workflow tool",
Expand Down
4 changes: 2 additions & 2 deletions src/config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports.defaults = ->
exclude:[]
commonConfig: "common"
tracking:
enabled: false
enabled: true
path: ".mimosa/require/tracking.json"
verify:
enabled: true
Expand Down Expand Up @@ -40,7 +40,7 @@ exports.placeholder = ->
# system so that from one mimosa run to another it can persist the
# important information and not need the entire application to be
# rebuilt
# enabled: false # whether or not tracking is enabled
# enabled: true # whether or not tracking is enabled
# path: ".mimosa/require/tracking.json" # the path to the tracking file relative to the
# root of the project.
# verify: # settings for requirejs path verification
Expand Down

0 comments on commit b9e1c44

Please sign in to comment.