@drill4j/js-parser

0.4.0 • Public • Published

AST-parser (drill4js-cli utility)

Production build

  1. Set "sourceMap": false, in tsconfig.json

    TODO: add separate build config

  2. Run

   npm install && npx webpack --config webpack.config.js && npm prune --production && npm shrinkwrap

Release

To release a new package version:

  1. Bump version in package.json manually

  2. Run commands from Production build section

  3. Run npm publish --dry-run:

    • ensure that only necessary files are listed in package preview

    • ensure that npm-shrinkwrap.json does not include development dependencies

  4. Run npm publish or npm publish --tag beta

Development build & debug

  1. Install development dependencies

      rm -rf node_modules
      npm i
  2. Set "sourceMap": true, in tsconfig.json

  3. Run webpack development server

      npm run dev
  4. Attach debugger to the process started with npm run dev

    VScode:

    • Run Debug on fixtures launch configuration
    • Edit configuration to debug on different files

    Other IDEs:

    • Attach debugger of your choice to the running process, use .vscode/launch.json Debug on fixtures configuration as the example

/@drill4j/js-parser/

    Package Sidebar

    Install

    npm i @drill4j/js-parser

    Weekly Downloads

    0

    Version

    0.4.0

    License

    Apache-2.0

    Unpacked Size

    531 kB

    Total Files

    5

    Last publish

    Collaborators

    • drill4j