Skip to content

Commit

Permalink
fix build tool and update browserify version
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetCarpenter committed Nov 8, 2016
1 parent c5bda94 commit 0e744d3
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 13 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
OUTPUT := stream.js stream.min.js stream.min.js.map
SOURCE = src/stream.js

$(OUTPUT): $(SOURCE)
test -d "node_modules" || npm install; \
echo "Build UMD/CommonJS version of stream.js"; \
npm run build:browser; \
echo "Running minify..."; \
npm run minify;

clean:
@rm --verbose $(OUTPUT)

all: $(OUTPUT)
.PHONY: clean
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node_modules",
"spec",
"external/",
"lib/",
"src/",
"package.json"
]
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stream.js",
"version": "1.1.0",
"version": "1.1.1",
"description": "Lazy streams.",
"repository": {
"git": "https://github.com/dionyziz/stream.js"
Expand Down Expand Up @@ -28,18 +28,18 @@
{
"name": "Jon Ege Ronnenberg",
"email": "jon.ronnenberg+stream.js@gmail.com",
"web": "https://www.google.com/search?q=dotnetcarpenter"
"web": "https://keybase.io/dotnetcarpenter"
}
],
"main": "lib/stream.js",
"main": "src/stream.js",
"scripts": {
"test": "istanbul cover node_modules/jasmine/bin/jasmine.js && node external/sendtocodecov.js",
"build:browser": "browserify lib/stream.js --standalone Stream --outfile stream.js",
"minify": "browserify lib/stream.js --standalone Stream --outfile stream.min.js --debug --plugin [ minifyify --map stream.min.js.map --output stream.min.js.map ]",
"zip": "bestzip --"
"test": "istanbul cover jasmine && node external/sendtocodecov.js",
"build:browser": "browserify src/stream.js --standalone Stream --outfile stream.js",
"minify": "browserify src/stream.js --standalone Stream --outfile stream.min.js --debug --plugin [ minifyify --map stream.min.js.map --output stream.min.js.map ]",
"zip": "bestzip --"
},
"directories": {
"lib": "lib"
"lib": "src"
},
"engines": {
"node": ">=0.10.0"
Expand All @@ -52,7 +52,7 @@
],
"devDependencies": {
"bestzip": "^1.1.2",
"browserify": "^12.0.1",
"browserify": "^13.1.1",
"codecov.io": "^0.1.6",
"istanbul": "^0.4.0",
"jasmine": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion spec/stream.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"use strict";

var Stream = require('../lib/stream.js');
var Stream = require('../src/stream.js');

describe('finite streams', function () {
it('can be made and accessess', function () {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stream.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stream.min.js.map

Large diffs are not rendered by default.

0 comments on commit 0e744d3

Please sign in to comment.