Skip to content

Commit

Permalink
chore(npm): Implement 'dist:watch' to streamline development
Browse files Browse the repository at this point in the history
  • Loading branch information
ribose-jeffreylau committed Aug 24, 2023
1 parent a1669de commit 1437477
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
"diagnose": "tsc --diagnostics",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
"build:decl": "tsc -p tsconfig.build.json --emitDeclarationOnly",
"tsc": "tsc -p tsconfig.build.json && cp package.json ${npm_package_dist_dir}/",
"build": "swc ${npm_package_src_dir} --sync --ignore '*.test.*' --out-dir ${npm_package_dist_dir} --copy-files --extensions '.ts,.tsx,.js,.jsx,.json' && cp package.json ${npm_package_dist_dir}/",
"build:decl:watch": "pnpm run build:decl --watch",
"tsc": "tsc -p tsconfig.build.json",
"posttsc": "pnpm run postbuild",
"build": "swc ${npm_package_src_dir} --sync --ignore '*.test.*' --out-dir ${npm_package_dist_dir} --copy-files --extensions '.ts,.tsx,.js,.jsx,.json'",
"postbuild": "cp package.json ${npm_package_dist_dir}/",
"build:watch": "pnpm run build --watch",
"postbuild:watch": "pnpm run postbuild",
"inject": "mkdirp $HOME/'Library/Application Support'/Paneron/plugins/${npm_package_name}; rsync -a ${npm_package_dist_dir}/ $HOME/'Library/Application Support'/Paneron/plugins/${npm_package_name}/",
"dist": "concurrently npm:build npm:build:decl",
"dist:watch": "concurrently npm:build:watch npm:build:decl:watch",
"build-inject": "pnpm run build && pnpm run inject",
"build-typecheck": "concurrently npm:build npm:typecheck",
"clean-build": "pnpm run clean; pnpm run build",
Expand Down Expand Up @@ -85,6 +91,7 @@
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"chokidar": "^3.5.3",
"codeceptjs": "^3.4.1",
"concurrently": "^8.0.1",
"electron": "^24.3.0",
Expand Down
26 changes: 25 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1437477

Please sign in to comment.