forked from Start9Labs/start-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (36 loc) · 986 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
TS_FILES := $(shell find ./**/*.ts )
version = $(shell git tag --sort=committerdate | tail -1)
test: $(TS_FILES) lib/test/output.ts
npm test
clean:
rm -rf dist/* | true
lib/test/output.ts: lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
npm run buildOutput
buildOutput: lib/test/output.ts fmt
echo 'done'
bundle: $(TS_FILES) package.json .FORCE node_modules test fmt
npx tsc
npx tsc --project tsconfig-cjs.json
cp package.json dist/package.json
cp README.md dist/README.md
cp LICENSE dist/LICENSE
full-bundle:
make clean
make bundle
cp package.json dist/package.json
cp README.md dist/README.md
cp LICENSE dist/LICENSE
check:
npm run check
fmt: node_modules
npx prettier --write "**/*.ts"
node_modules: package.json
npm install
publish: clean bundle package.json README.md LICENSE
cd dist && npm publish --access=public
link: bundle
cp package.json dist/package.json
cp README.md dist/README.md
cp LICENSE dist/LICENSE
cd dist && npm link
.FORCE: