forked from Anonyfox/meteor-scrape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
66 lines (63 loc) · 1.74 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Package.describe({
name: 'anonyfox:scrape',
version: '0.0.10',
summary: 'Scrape any Website or RSS/Atom-Feed with ease',
git: 'https://github.com/Anonyfox/meteor-scrape',
documentation: 'README.md'
});
Npm.depends({
"request": "2.53.0",
"chardet": "0.0.8",
"iconv-lite": "0.4.3",
"franc": "0.7.1",
"article-title": "1.0.1",
"teaser": "0.1.1",
"summarizely": "0.0.2",
"cheerio": "0.18.0",
"readabilitySAX": "1.6.1",
"is-url": "1.2.0"
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'underscore',
'digilord:sugarjs@1.4.1',
'url',
'froatsnook:request@2.53.2',
'nefiltari:yaki@0.1.5',
'wizonesolutions:underscore-string@1.0.0'
],['server']);
api.export(['Scrape'],['client','server']);
// api.export(['ScrapeClient'],['client']);
api.addFiles([
'lib/link.coffee.md',
'lib/text.coffee.md',
'lib/scrape-request.coffee.md',
'lib/parse-website.coffee.md',
'lib/parse-feed.coffee.md',
'lib/parse-wikipedia.coffee.md'
],['server']);
api.addFiles("scrape-client.coffee.md",'client');
api.addFiles("scrape-server.coffee.md","server");
api.addFiles("globals.js");
});
Package.onTest(function(api) {
api.use([
'tinytest',
'coffeescript',
'underscore',
],['client','server']);
api.use('anonyfox:scrape');
api.addFiles([ // sample data
'sampledata/sites/venturebeat-website.html',
'sampledata/sites/focus-website.html',
'sampledata/sites/bbc-article.html',
'sampledata/sites/tweet.html',
'sampledata/sites/golem-article.html',
'sampledata/feeds/meteor-feed.xml',
'sampledata/feeds/spiegel-feed.xml',
'sampledata/feeds/rtv-feed.xml'
], 'server', {isAsset: true});
api.addFiles('test.coffee.md');
});