Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
add a prepublish script for publishing to npm repos
Browse files Browse the repository at this point in the history
- rm obsolete references to lib/
  • Loading branch information
infinity0 committed Jun 17, 2014
1 parent c375dba commit a8dbe30
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .gitignore
@@ -1,15 +1,14 @@
# Compiled Object files
*.pyc
*.pyo

# Editor, IDE and dev environment stuff
*~
.project
.settings
coverage
node_modules

# Build directories
doc/api
lib/
build/
# Build files and directories
/coverage
/doc/api
/build/
/jodid25519-*.tgz

# npm things, don't add these to .npmignore
/node_modules
/jodid25519.js*
10 changes: 10 additions & 0 deletions .npmignore
@@ -0,0 +1,10 @@
# Editor, IDE and dev environment stuff
*~
.project
.settings

# Build files and directories
/coverage
/doc/api
/build/
/jodid25519-*.tgz
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -24,6 +24,10 @@ ASMCRYPTO_MODULES = utils,aes-cbc,aes-ccm,sha1,sha256,sha512,hmac-sha1,hmac-sha2

all: test api-doc dist test-shared

jodid25519.js: $(BUILDDIR)/jodid25519-shared.min.js
sed -e 's,$<,$@,g' "$<.map" > "$@.map"
sed -e 's,$<,$@,g' "$<" > "$@"

test-timing:
KARMA_FLAGS='--preprocessors=' TEST_TIMING=true $(MAKE) test

Expand Down Expand Up @@ -83,7 +87,7 @@ $(BUILD_DEP_ALL) $(DEP_JSBN):
$(NPM) install $(BUILD_DEP_ALL_NAMES) jsbn

clean:
rm -rf doc/api/ coverage/ build/ lib/
rm -rf doc/api/ coverage/ build/ jodid25519.js

clean-all: clean
rm -f $(BUILD_DEP_ALL) $(DEP_ALL)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,11 +5,11 @@
"main": "index.js",
"directories": {
"src": "src",
"lib": "lib",
"test": "test",
"doc": "doc"
},
"scripts": {
"prepublish": "make jodid25519.js",
"test": "make test test-shared",
"test-full": "make test-full",
"test-timing": "make test-timing",
Expand Down

0 comments on commit a8dbe30

Please sign in to comment.