3.0.2 • Published 7 years ago
@webantic/dependency-mapper v3.0.2
Dependency Mapper
A module which finds and consolidates declarations of Meteor dependencies by npm modules.
This module is part of a suite:
Usage
import mapper from '@webantic/dependency-mapper'
// if we're in the same folder as the package.json:
const result = mapper(process.cwd())
/*
result === {
["this module name"]: {
meteorDependencies: {
// direct meteor deps of this module
["meteor package key"]: ["client" and/or "server"]
},
dependencies: {}, // same structure as "result"
allMeteorDependencies: {
// direct & indirect deps of this module
["meteor package key"]: ["client" and/or "server"]
}
}
}
*/
const thisModuleName = Object.keys(result)[0]
console.log(result[thisModuleName].allMeteorDependencies)
// might print something like {"meteor/meteor": ["client", "server"], "kadira:flow-router": ["client"]}
What does it look for?
The mapper will extract the value of meteorDependencies
in any package.json
found. They should have the following format:
{
"name": "mymodule",
"version": "1.0.0",
"dependencies": {
"@webantic/meteor-deps": "^1.1.9"
},
"meteorDependencies": {
"meteor/meteor": ["client", "server"],
"kadira:flow-router": ["client"],
"meteor/reactive-var": "client"
}
}
3.0.2
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.2.2
7 years ago
2.2.1
7 years ago
2.1.1
7 years ago
2.1.0
7 years ago
1.1.9
8 years ago
1.1.7
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago