Skip to content

Commit cbbf3bf

Browse files
committed
v1.0.0
0 parents  commit cbbf3bf

File tree

6 files changed

+130
-0
lines changed

6 files changed

+130
-0
lines changed

.gitignore

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
.idea
19+
**/.meteor
20+
*.lock
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# Deployed apps should consider commenting this line out:
27+
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
28+
node_modules
29+
.npm
30+
*.npm
31+
/*.npm
32+
/.npm
33+
34+
# OSX.gitignore
35+
# https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
36+
.DS_Store
37+
.AppleDouble
38+
.LSOverride
39+
40+
# Icon must end with two \r
41+
Icon
42+
43+
44+
# Thumbnails
45+
._*
46+
47+
# Files that might appear on external disk
48+
.Spotlight-V100
49+
.Trashes
50+
51+
# Directories potentially created on remote AFP share
52+
.AppleDB
53+
.AppleDesktop
54+
Network Trash Folder
55+
Temporary Items
56+
.apdisk
57+
58+
# cache files for sublime text
59+
*.tmlanguage.cache
60+
*.tmPreferences.cache
61+
*.stTheme.cache
62+
63+
# workspace files are user-specific
64+
*.sublime-workspace
65+
66+
# project files should be checked into the repository, unless a significant
67+
# proportion of contributors will probably not be using SublimeText
68+
*.sublime-project
69+
70+
# sftp configuration file
71+
sftp-config.json
72+
private/*

.versions

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Veliov Group Inc., ostr.io, Dmitriy Aristarkhovich, Dmitry A., drdimitru, dr-dimitru, dr.dimitru
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Meteor.rootPath
2+
========
3+
Get current path on your server, where is Meteor application is running
4+
5+
Install:
6+
========
7+
```shell
8+
meteor add ostrio:meteor-root
9+
```
10+
11+
Usage:
12+
========
13+
```javascript
14+
var pathToFile = Meteor.rootPath + '/folder/where/is/your/file.json';
15+
```
16+
Returns absolute path to `programs/server` folder of your compiled application

meteor-root.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var fs = Npm.require('fs-extra');
2+
Meteor.rootPath = fs.realpathSync('.');

package.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Package.describe({
2+
name: 'ostrio:meteor-root',
3+
version: '1.0.0',
4+
summary: '[Server] Get current path on your server, where is Meteor application is running',
5+
git: 'https://github.com/VeliovGroup/Meteor-root',
6+
documentation: 'README.md'
7+
});
8+
9+
Package.onUse(function(api) {
10+
api.versionsFrom('1.1');
11+
api.addFiles('meteor-root.js', 'server');
12+
});
13+
14+
Npm.depends({
15+
'fs-extra': '0.16.3'
16+
});

0 commit comments

Comments
 (0)