-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,694 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text eol=lf | ||
.* text eol=lf | ||
dist/* binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
*~ | ||
node_modules | ||
coverage | ||
npm-debug.log | ||
\#* | ||
.\#* | ||
.DEV | ||
.[0-9]* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
spec | ||
*~ | ||
covarage | ||
Makefile | ||
jest.config.js | ||
version | ||
templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
install: | ||
- npm install | ||
script: | ||
- make lint | ||
- make test | ||
after_script: | ||
- make coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## 0.2.0 | ||
### Features | ||
* Add reduce and set functions | ||
* add while, ++ and -- macros | ||
* ignore comments everything after ; but not inside strings and regexes | ||
* gensym and load functions | ||
* better string function | ||
* Pair methods for working with ALists + Pair::reduce | ||
* throw exception on car/cdr with non list | ||
|
||
### Bugs | ||
* fix parsing empty strings | ||
* fix various errors catch by lint | ||
* fix parsing ALists with list as keys and values | ||
* fix parsing quasiquote that evaluate to single pair out if unquote | ||
|
||
## 0.1.0 | ||
* Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,58 @@ | ||
.PHONY publish | ||
.PHONY: publish test coveralls lint | ||
|
||
VERSION=0.1.0 | ||
BRANCH=`git branch | grep '^*' | sed 's/* //'` | ||
DATE=`date -uR` | ||
SPEC_CHECKSUM=`md5sum spec/lips.spec.js | cut -d' ' -f 1` | ||
COMMIT=`git log -n 1 | grep commit | sed 's/commit //'` | ||
|
||
GIT=git | ||
SED=sed | ||
RM=rm | ||
TEST=test | ||
CAT=cat | ||
NPM=npm | ||
ESLINT=./node_modules/.bin/eslint | ||
COVERALLS=./node_modules/.bin/coveralls | ||
JEST=./node_modules/.bin/jest | ||
UGLIFY=./node_modules/.bin/uglifyjs | ||
BABEL=./node_modules/.bin/babel | ||
|
||
|
||
ALL: Makefile .$(VERSION) dist/lips.js dist/lips.min.js README.md package.json | ||
|
||
dist/lips.js: src/lips.js .$(VERSION) | ||
$(GIT) branch | grep '* devel' > /dev/null && $(SED) -e "s/{{VER}}/DEV/g" -e "s/{{DATE}}/$(DATE)/g" src/lips.js > dist/lips.tmp.js || $(SED) -e "s/{{VER}}/$(VERSION)/g" -e "s/{{DATE}}/$(DATE)/g" src/lips.js > dist/lips.tmp.js | ||
$(BABEL) dist/lips.tmp.js > dist/lips.js | ||
$(RM) dist/lips.tmp.js | ||
|
||
dist/lips.min.js: dist/lips.js .$(VERSION) | ||
$(UGLIFY) -o dist/lips.min.js --comments --mangle -- dist/lips.js | ||
|
||
Makefile: templates/Makefile | ||
$(SED) -e "s/{{VER""SION}}/"$(VERSION)"/" templates/Makefile > Makefile | ||
|
||
package.json: templates/package.json .$(VERSION) | ||
$(SED) -e "s/{{VER}}/"$(VERSION)"/" templates/package.json > package.json || true | ||
|
||
README.md: templates/README.md | ||
$(GIT) branch | grep '* devel' > /dev/null && $(SED) -e "s/{{VER}}/DEV/g" -e \ | ||
"s/{{BRANCH}}/$(BRANCH)/g" -e "s/{{CHECKSUM}}/$(SPEC_CHECKSUM)/g" \ | ||
-e "s/{{COMMIT}}/$(COMMIT)/g" < templates/README.md > README.md || \ | ||
$(SED) -e "s/{{VER}}/$(VERSION)/g" -e "s/{{BRANCH}}/$(BRANCH)/g" -e \ | ||
"s/{{CHECKSUM}}/$(SPEC_CHECKSUM)/g" -e "s/{{COMMIT}}/$(COMMIT)/g" < templates/README.md > README.md | ||
|
||
.$(VERSION): Makefile | ||
touch .$(VERSION) | ||
|
||
publish: | ||
npm publish --access=public | ||
$(NPM) publish --access=public | ||
|
||
test: | ||
$(JEST) | ||
|
||
coveralls: | ||
$(CAT) ./coverage/lcov.info | $(COVERALLS) | ||
|
||
lint: | ||
$(ESLINT) src/lips.js spec/lips.spec.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.