3.0.2 • Published 5 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
5 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.2.2
6 years ago
2.2.1
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
1.1.9
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago