Package io.github.kelvindev15.npm
Object PackageJsonSpec
-
- All Implemented Interfaces:
-
com.uchuhimo.konf.Spec
public class PackageJsonSpec extends ConfigSpecThe specification of the package.json file.
name The name of the package. version The version of the package. description The description of the package. keywords The keywords of the package. homepage The homepage of the package. bugs The link where to report bugs from the package. license The license of the package. author The author of the package. main The main file of the package. repository The repository of the package. scripts The scripts of the package. dependencies The dependencies of the package. devDependencies The dev dependencies of the package. private Whether the package is private. type The type of the package.
-
-
Field Summary
Fields Modifier and Type Field Description private final OptionalItem<String>nameprivate final OptionalItem<String>versionprivate final OptionalItem<String>descriptionprivate final OptionalItem<List<String>>keywordsprivate final OptionalItem<String>homepageprivate final OptionalItem<Bugs>bugsprivate final OptionalItem<String>licenseprivate final OptionalItem<String>authorprivate final OptionalItem<String>mainprivate final OptionalItem<Repository>repositoryprivate final OptionalItem<Map<String, String>>scriptsprivate final OptionalItem<Map<String, String>>dependenciesprivate final OptionalItem<Map<String, String>>devDependenciesprivate final OptionalItem<Boolean>privateprivate final OptionalItem<String>typeprivate final Set<Spec>innerSpecsprivate final Set<Item<?>>itemsprivate final Stringprefixpublic final static PackageJsonSpecINSTANCE
-
Method Summary
Modifier and Type Method Description final OptionalItem<String>getName()final OptionalItem<String>getVersion()final OptionalItem<String>getDescription()final OptionalItem<List<String>>getKeywords()final OptionalItem<String>getHomepage()final OptionalItem<Bugs>getBugs()final OptionalItem<String>getLicense()final OptionalItem<String>getAuthor()final OptionalItem<String>getMain()final OptionalItem<Repository>getRepository()final OptionalItem<Map<String, String>>getScripts()final OptionalItem<Map<String, String>>getDependencies()final OptionalItem<Map<String, String>>getDevDependencies()final OptionalItem<Boolean>getPrivate()final OptionalItem<String>getType()-
Methods inherited from class com.uchuhimo.konf.ConfigSpec
addInnerSpec, addItem, getInnerSpecs, getItems, getPrefix, lazy, optional, required -
Methods inherited from class com.uchuhimo.konf.Spec
get, plus, qualify, withFallback, withPrefix -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getVersion
final OptionalItem<String> getVersion()
-
getDescription
final OptionalItem<String> getDescription()
-
getKeywords
final OptionalItem<List<String>> getKeywords()
-
getHomepage
final OptionalItem<String> getHomepage()
-
getLicense
final OptionalItem<String> getLicense()
-
getRepository
final OptionalItem<Repository> getRepository()
-
getScripts
final OptionalItem<Map<String, String>> getScripts()
-
getDependencies
final OptionalItem<Map<String, String>> getDependencies()
-
getDevDependencies
final OptionalItem<Map<String, String>> getDevDependencies()
-
getPrivate
final OptionalItem<Boolean> getPrivate()
-
-
-
-