- Generate an updated full.dcignore file based on the generator script.
$ cd <repo-location>
$ npm run generate
- Check the file contents in the root directory of this repository.
$ cat empty.dcignore
$ cat full.dcignore
- Tinker with the script to fine-tune the generator or edit the output files directly
- Test the package locally to debug it
- Publish the new version once pleased with the results
- To use and debug package locally you don't need publish it to NPM registry:
$ cd <repo-location>
$ npm link
- After that you have to create symlink to this package in the folder of the project where you want to test it:
$ cd <project-location>
$ npm link @deepcode/dcignore
- Add package to your
package.json
:
"dependencies": {
"@deepcode/dcignore": "^1.0.0"
}
- Now you can use this package as usual:
const { DefaultDCIgnore, CustomDCIgnore } = require('@deepcode/dcignore');
console.log(DefaultDCIgnore);
- Before publishing make sure you are logged in using the company credentials
- Publish
$ cd <repo-location>
$ npm publish --access public