Skip to content

Commit

Permalink
change release dir from dist/ to lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Keil committed Aug 16, 2015
1 parent 41c8233 commit 398d9cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules/
coverage/
browser/
dist/
lib/
psd/

.DS_Store*
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ ISTNBL = node_modules/".bin"/istanbul
MOCHAF = -u tdd -R min -t 5000 --compilers ls:$(LS) -r "./test-runner.ls" -c -S -b --recursive --inline-diffs

LS_SRC = $(shell find src -maxdepth 1 -name "*.ls" -type f | sort)
LS_DIST = $(LS_SRC:src/%.ls=dist/%.js)
LS_DIST = $(LS_SRC:src/%.ls=lib/%.js)
BR_DIST = browser/prelude.js browser/prelude.min.js

build: prepare $(LS_DIST) $(BR_DIST)

prepare:
@$(MKDIRP) dist browser
@$(MKDIRP) lib browser

test: build
@$(ISTNBL) cover $(_MOCHA) -- $(MOCHAF)

clean:
@rm -rf dist
@rm -rf lib
@rm -rf browser
@sleep .1 # wait for editor to refresh the file tree.......

Expand All @@ -39,10 +39,10 @@ report: test

.PHONY: build prepare test clean install report

dist/%.js: src/%.ls
lib/%.js: src/%.ls
$(LSC) --map embedded --bare -o "$(shell dirname $@)" -c "$<"

browser/%.js: dist/%.js
browser/%.js: lib/%.js
$(BRSIFY) -r "./$<:prelude" > "$@"

browser/%.min.js: browser/%.js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"description": "Utility library for Javascript",
"author": "Richard Keil",
"main": "dist/prelude.js",
"main": "lib/prelude.js",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 398d9cf

Please sign in to comment.