Skip to content

Commit

Permalink
clean up and update more makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin committed Feb 16, 2024
1 parent 54d8b89 commit 9021ba9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 65 deletions.
44 changes: 0 additions & 44 deletions app-shell-odd/webpack.config.js

This file was deleted.

14 changes: 0 additions & 14 deletions app/src/index.hbs

This file was deleted.

5 changes: 1 addition & 4 deletions components/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ tests ?=
cov_opts ?= --coverage=true --ci=true --collectCoverageFrom='components/src/**/*.(js|ts|tsx)'
test_opts ?=

# override webpack's default hashing algorithm for node 18: https://github.com/webpack/webpack/issues/14532
export NODE_OPTIONS := --openssl-legacy-provider

# standard targets
#####################################################################

Expand All @@ -32,7 +29,7 @@ dist:
.PHONY: lib
lib: export NODE_ENV := production
lib:
pnpm webpack
pnpm vite build

# development
#####################################################################
Expand Down
5 changes: 2 additions & 3 deletions labware-library/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,18 @@ clean:
shx rm -rf dist

# production assets
# override webpack's default hashing algorithm for node 18: https://github.com/webpack/webpack/issues/14532
.PHONY: dist
dist: export NODE_ENV := production
dist:
export NODE_OPTIONS=--openssl-legacy-provider && webpack --profile
vite build
node ./renderStatic.js

# development assets server
.PHONY: dev
dev: export NODE_ENV := development
dev: export NODE_OPTIONS := --openssl-legacy-provider
dev:
webpack-dev-server --hot --host=::
vite serve --host=::

# production assets server
.PHONY: serve
Expand Down

0 comments on commit 9021ba9

Please sign in to comment.