Skip to content

Latest commit

 

History

History
51 lines (46 loc) · 1.24 KB

development.md

File metadata and controls

51 lines (46 loc) · 1.24 KB

Usage

  1. Generate an updated full.dcignore file based on the generator script.
$ cd <repo-location>
$ npm run generate
  1. Check the file contents in the root directory of this repository.
$ cat empty.dcignore
$ cat full.dcignore
  1. Tinker with the script to fine-tune the generator or edit the output files directly
  2. Test the package locally to debug it
  3. Publish the new version once pleased with the results

Test package

  1. To use and debug package locally you don't need publish it to NPM registry:
$ cd <repo-location>
$ npm link
  1. 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
  1. Add package to your package.json:
"dependencies": {
  "@deepcode/dcignore": "^1.0.0"
}
  1. Now you can use this package as usual:
const { DefaultDCIgnore, CustomDCIgnore } = require('@deepcode/dcignore');

console.log(DefaultDCIgnore);

Publishing

  1. Before publishing make sure you are logged in using the company credentials
$ npm login
  1. Publish
$ cd <repo-location>
$ npm publish --access public