forked from cheeriojs/cheerio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing selectors, and some addition fixes
- Loading branch information
1 parent
c14a3eb
commit 3b247b6
Showing
9 changed files
with
119 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
// Use source if we have coffeescript otherwise use lib | ||
try { | ||
require('coffee-script'); | ||
module.exports = require(__dirname + "/src/cheerio.coffee"); | ||
require('coffee-script'); | ||
base = './src/' | ||
} catch (e) { | ||
module.exports = require(__dirname + "/lib/cheerio.js"); | ||
} | ||
base = './lib/' | ||
} | ||
|
||
exports = module.exports = require(base + 'cheerio') | ||
|
||
exports.parse = require(base + 'parse') | ||
exports.render = require(base + 'render') | ||
exports.utils = require(base + 'utils') | ||
|
||
/* | ||
Attach other modules on here, this will allow testing to be done in mocha without recompiling | ||
*/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.