![]() Package.json file: PropertyĮntry file in the CommonJS module format.Įntry file in the ES module format. ![]() Below is a common setup found within a project's Rollup and Webpack use this configuration to locate the project's entry files.Īn advantage to using the compiler is that it is able to provide help on how to best set up the project for distribution. The purpose of the package.json file is to give other tools instructions on how to find the package's files, and to provide information about the package. Once the library is published to NPM, other projects are able to add your component library as a dependency and use the components within their own projects. NPM is an online software registry for sharing libraries, tools, utilities, packages, etc. The first step and highly recommended step is to Output targets that are right for your use-case. One of the benefits of Stencil is that is makes it easy to generate the various Note: Here, “body-parser”, “express”, “express-validator”, “mongoose” and “nodemon” are the modules/packages installed using npm (Node Package Manager).There are numerous strategies to publish and distribute your component library to be consumed by external projects. Repository: It contain the information about the type and url of the repository where the code of the application lives is mentioned here in this segment.īugs: The url and email where the bugs in the application should be reported are mentioned in this segment. These dependencies do not get rolled out when the application is in production stage. License: The license to which the application confirms are mentioned in this key-value pair.ĭependencies: The third party package or modules installed using npm are specified in this segment.ĭevDependencies: The dependencies that are used only in the development part of the application are specified in this segment. Keywords: It specifies the array of strings that characterizes the application.Īuthor: It consist of the information about the author like name, email and other author related information. These versions are specified in case the application is deployed on cloud like heroku or google-cloud. Scripts: The scripts which needs to be included in the application to run properly.Įngines: The versions of the node and npm used. Application can be started using npm start. ![]() It specifies the main file of the application that triggers when the application starts. Main: This is the entry/starting point of the app. The version should follow semantic versioning rules.ĭescription: The description about the application, purpose of the application, technology used like React, MongoDB, etc. Name: The name of the application/project. "test": "echo \"Error: no test specified\"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |