Skip to content

Commit

Permalink
Prepare build for first release
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBild committed Apr 27, 2017
1 parent ebdd797 commit 57c09a5
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 209 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
node_modules
npm-debug
browser
dist
example
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
node_modules
npm-debug
src
test
example
138 changes: 0 additions & 138 deletions dist/client.js

This file was deleted.

65 changes: 0 additions & 65 deletions dist/express.js

This file was deleted.

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "subscriptions-transport-sse",
"version": "0.2.0",
"main": "dist/index.js",
"version": "0.3.0",
"main": "dist/express.js",
"browser": "dist/client.js",
"files": [
"dist"
"dist",
"browser"
],
"scripts": {
"build": "babel src -d dist --presets=es2015,stage-0 --plugins=transform-runtime",
"build": "babel src -d dist --source-maps --presets=es2015,stage-0 --plugins=transform-runtime",
"browser-compile": "webpack --config webpack.config.js",
"dev": "nodemon --watch src --exec \"npm run build\"",
"prepublish": "npm run build"
"prepublish": "npm run build && npm run browser-compile"
},
"dependencies": {
"babel-runtime": "^6.23.0",
Expand All @@ -22,6 +25,7 @@
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"mocha": "^3.3.0",
"nodemon": "^1.11.0"
"nodemon": "^1.11.0",
"webpack": "^2.4.1"
}
}
11 changes: 11 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var path = require('path');

module.exports = {
context: path.join(__dirname, '/dist'),
entry: './client.js',
output: {
path: path.join(__dirname, '/browser'),
filename: 'client.js',
library: 'SubscriptionsTransportSSE'
}
};

0 comments on commit 57c09a5

Please sign in to comment.