Skip to content

Commit

Permalink
Modify pkg structure
Browse files Browse the repository at this point in the history
  • Loading branch information
okunishinishi committed Nov 3, 2015
1 parent 15ca781 commit f34685d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 35 deletions.
6 changes: 3 additions & 3 deletions .README.md.bud
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ var apeTmpl = require('ape-tmpl'),

module.exports = apeTmpl.readmeMdBud({
pkg: pkg,
repo: 'ape-repo/' + pkg.name,
sections: 'docs/readme/*.md.hbs',
repo: pkg.repository,
sections: 'doc/readme/*.md.hbs',
badges: {
travis: true,
codeclimate: true,
codeclimateCoverage: true,
gemnasium: true,
npm: true
},
links: require('./docs/links.json')
links: require('./doc/links.json')
});

if (!module.parent) {
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ ape framework module for watching files.
<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "docs/readme/02.Usage.md.hbs" Start -->
<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->

<a name="section-docs-readme-02-usage-md"></a>
<a name="section-doc-readme-02-usage-md"></a>
Usage
----

Expand Down Expand Up @@ -73,7 +73,7 @@ setTimeout(function () {



<!-- Section from "docs/readme/02.Usage.md.hbs" End -->
<!-- Section from "doc/readme/02.Usage.md.hbs" End -->


<!-- Sections Start -->
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions doc/readme/02.Usage.md.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Usage
----
### Watch files.
```javascript
{{{read 'example/example-watch-files.js'}}}
```
9 changes: 0 additions & 9 deletions docs/mockups/mock-mocha-test-01.js

This file was deleted.

6 changes: 0 additions & 6 deletions docs/mockups/mock-nodeunit-test-01.js

This file was deleted.

9 changes: 0 additions & 9 deletions docs/readme/02.Usage.md.hbs

This file was deleted.

File renamed without changes.
5 changes: 4 additions & 1 deletion lib/watch_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @function watchFiles
* @param {string|string} - Filenames to watch.
* @param {object} [options] - Optional settings.
* @param {string} [options.cwd] - Working directory path.
* @param {function} handler - File change handler.
*/

Expand All @@ -24,7 +25,9 @@ function watchFiles(filenames, options, handler) {
filenames = args.shift('string|array');
options = args.pop('object') || {};

filenames = expandglob.sync(filenames).filter(fs.existsSync);
filenames = expandglob.sync(filenames, {
cwd: options.cwd || process.cwd()
}).filter(fs.existsSync);
colorprint.info('[watchFiles] Start watch files...');
colorprint.trace('%s', filenames);

Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"scripts": {
"test": "./ci/test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ape-repo/ape-watching.git"
},
"repository": "ape-repo/ape-watching",
"keywords": [
"ape",
"file",
Expand Down

0 comments on commit f34685d

Please sign in to comment.