AST-parser (drill4js-cli utility)
Production build
-
Set
"sourceMap": false,
in tsconfig.jsonTODO: add separate build config
-
Run
npm install && npx webpack --config webpack.config.js && npm prune --production && npm shrinkwrap
Release
To release a new package version:
-
Bump version in
package.json
manually -
Run commands from Production build section
-
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
-
-
Run
npm publish
ornpm publish --tag beta
Development build & debug
-
Install development dependencies
rm -rf node_modules npm i
-
Set
"sourceMap": true,
in tsconfig.json -
Run webpack development server
npm run dev
-
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
- Run