Claudia will do that automatically for you. Dependent librariesĪlthough the AWS Node.js deployment guide requires including the node_modules folder for deployment, don’t add it to the files section. You do not have to list package.json here, it will automatically be included. This will ensure you avoid deploying test and development resources and local configuration files. It’s a good practice, although not necessary, to explicitly list the files or file patterns you want to deploy in the files property of package.json. all NPM workflow steps (such as post-install) will be executed as during a normal installation, so you can script additional tasks such as transpilation easily.See the files section of the NPM configuration guide for more information. if the package.json file includes the files property, only those patterns will be included.npmignore exist, patterns listed in those files will be excluded (check out the NPM packaging documentation for details on how to keep files out of your package). all the standard patterns ignored by NPM are ignored by Claudia as well (including.Claudia uses the standard Node.js packaging model (by executing npm pack), so if you’re used to NPM, things will just work out of the box:
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |