소스 검색

API section in README

Herbert Vojčík 10 년 전
부모
커밋
39e0b58603
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -119,3 +119,14 @@ require.config({
 
 This, saved to a file, can be used as-is as a script to set up requirejs (or other loader),
 and it can as well be used as `mainConfigFile` for the requirejs optimizer.
+
+API
+----
+
+**require('amd-config-builder').produceConfigObject(rootDir, function(err, result))**
+
+This scans for the subtree of _rootDir_ and call the _callback_
+with either the error or with _(null, configObject)_. The _configObject_
+is what you put into `require.config` call.
+All paths in _configObject_'s paths section that were not absolute / uri,
+are relative to _rootDir_