presetter-preset-rollup/templates/scripts.yaml

8 lines
449 B
YAML

# replace the `prepare` template from presetter-preset
# so that the build procedure will not be triggered upon package installation
build: cross-env NODE_ENV=production run-s clean build:typescript:* build:rollup-config build:rollup
build:rollup-config: tsc -p tsconfig.config.json
build:rollup: rollup --config rollup.config.js
develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --
clean:buildOutput: shx rm -rf {source}