Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): updates 3rd-party build dependencies #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
\#*\#
.DS_Store
/src/dist
node_modules
package-lock.json

5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"evil": true,
"forin": true,
"maxerr": 100
}
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Install dependencies:
```
npm install
```

Run tests and build dist:
```
cd src
make
```
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"node": ">=0.4.7"
},
"dependencies": {},
"devDependencies": {},
"devDependencies": {
"jshint": "^2.9.7",
"uglify-js": "^3.4.9"
},
"scripts": {
"test": "node src/test/run.js"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DIST_DIR = ${PREFIX}/dist


JS_ENGINE ?= `which node nodejs 2> /dev/null`
COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
COMPILER = ../node_modules/.bin/uglifyjs -c unsafe
POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js

SRC = ${SRC_DIR}/jsonselect.js
Expand Down Expand Up @@ -43,7 +43,7 @@ ${DIST_MIN}: ${DIST}
hint:
@@if test ! -z ${JS_ENGINE}; then \
echo "Hinting Project"; \
${JS_ENGINE} build/jshint-check.js; \
../node_modules/.bin/jshint jsonselect.js; \
else \
echo "Nodejs is missing"; \
fi
Expand Down
41 changes: 0 additions & 41 deletions src/build/jshint-check.js

This file was deleted.

Loading