Skip to content

Commit

Permalink
[chore] Move generated files to dist folder (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne authored Nov 25, 2016
1 parent fa14f91 commit 3ba3fe3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8,296 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

REPORTER = dot

build: socket.io.js socket.io.min.js
build: socket.io.js

socket.io.js socket.io.min.js: lib/*.js package.json
@./node_modules/.bin/gulp
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

A standalone build of `socket.io-client` is exposed automatically by the
socket.io server as `/socket.io/socket.io.js`. Alternatively you can
serve the file `socket.io.js` or `socket.io.min.js` found at the root of this repository.
serve the file `socket.io.js` or `socket.io.min.js` found in the `dist` folder.

```html
<script src="/socket.io/socket.io.js"></script>
Expand Down
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gulp.task('default', ['build']);
// BUILDING
// //////////////////////////////////////

const BUILD_TARGET_DIR = './';
const BUILD_TARGET_DIR = './dist/';

gulp.task('build', function () {
return gulp.src('lib/*.js')
Expand Down Expand Up @@ -53,8 +53,7 @@ gulp.task('lint', function () {
'**/*.js',
'!node_modules/**',
'!coverage/**',
'!socket.io.js',
'!socket.io.min.js'
'!dist/**'
])
.pipe(eslint())
.pipe(eslint.format())
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"main": "./lib/index",
"files": [
"lib/",
"socket.io.js",
"socket.io.min.js",
"socket.io.js.map"
"dist/"
],
"dependencies": {
"backo2": "1.0.2",
Expand Down
Loading

0 comments on commit 3ba3fe3

Please sign in to comment.