Ftr v0.7.0 Documentation
Table of Contents
-
pkg
- Get: mainPackage
- Get: main
- Get: pkgs
- hasPackage(name)
- getPackage(name)
- getPackageWithAbsolutePath(path)
- addNodePath(node_modules)
- addPackage(packagePath)
- setOrigin(path[,origin])
- disableOrigin(path)
- load(packageNames, cb)
- Get: options
- extendEntries(obj, extd)
- resolve(...args)
- isAbsolute(path)
- isLocal(path)
- isLocalZip(path)
- isNetwork(path)
pkg
#
Get: mainPackage #
Get: main #
主启动运行文件路径
Get: pkgs #
获取package名称列表
hasPackage(name) #
是否有这个pkg
- @arg
name
{String
}
getPackage(name) #
通过名称获取pkg实体
- @arg
name
{String
}
getPackageWithAbsolutePath(path) #
通过绝对路径获取pkg内部相对路径,没有找到返回null
- @arg
path
{String
}
addNodePath(node_modules) #
- @arg
node_modules
{String
}
addPackage(packagePath) #
- @arg
packagePath
{String
}
setOrigin(path[,origin]) #
disableOrigin(path) #
- @arg
path
{String
}
load(packageNames, cb) #
Asynchronous mode load packages info and ready
Get: options #
启动参数