Skip to content

Commit

Permalink
add scaffold for Timberline Lodge
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed May 18, 2020
1 parent abe16c3 commit fe61858
Show file tree
Hide file tree
Showing 4 changed files with 2,425 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/resorts/timberline-lodge/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
selector: '.lifts', // selector for lift information
filter: node => node.children, // optional - skip nodes for which filter retuturns nodes
parse: {
name: '0/1', // example of a simple path descriptor - index, ',', '..', '+', '-' are supported
status: { // example of a compound descriptor child. attribute, regex, fn - can be specified
child: '+/1',
attribute: 'alt',
regex: /-([a-z]+)$/,
fn: s => s.slice(0, -3)
}
}
};
15 changes: 15 additions & 0 deletions lib/resorts/timberline-lodge/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Timberline Lodge",
"url": {
"host": "https://www.timberlinelodge.com",
"pathname": "/conditions"
},
"tags": [
"Oregon"
],
"ll": [
-121.71,
45.33
],
"twitter": "timberlinelodge"
}
Loading

0 comments on commit fe61858

Please sign in to comment.