Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 8, 2024
1 parent c13c26c commit 0e078b7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,17 @@ watch: bundle FORCE
bundle: tsc css lint milestone
mkdir -p build/artifacts

DTS = $(shell cd build; find lib -type f -name "*.d.ts")
TYPE_FOLDERS = $(shell cd build; find lib -type d)
ANURA_VERSION = $(shell jq -r '.version' package.json)

tsc:
mkdir -p build/artifacts
cp -r src/* build/artifacts
npx tsc
mkdir -p anuraos-types
cd anuraos-types/; \
mkdir -p $(TYPE_FOLDERS)
mkdir -p $(shell cd build; find lib -type d)
cd build/; \
cp --parents $(DTS) ../anuraos-types/
echo $(DTS) | sed 's/ \+/\n/g' | sed 's/.*/\/\/\/ <reference path="&" \/>/' > anuraos-types/index.d.ts
jq '.version = "$(ANURA_VERSION)"' types-package.json > anuraos-types/package.json
cp --parents $(shell cd build; find lib -type f -name "*.d.ts") ../anuraos-types/
echo $(shell cd build; find lib -type f -name "*.d.ts") | sed 's/ \+/\n/g' | sed 's/.*/\/\/\/ <reference path="&" \/>/' > anuraos-types/index.d.ts
jq '.version = "$(shell jq -r '.version' package.json)"' types-package.json > anuraos-types/package.json

css: src/*.css
# shopt -s globstar; cat src/**/*.css | npx postcss --use autoprefixer -o build/bundle.css
Expand Down

0 comments on commit 0e078b7

Please sign in to comment.