Skip to content

Commit

Permalink
rename folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rdxi committed Dec 20, 2017
1 parent 0a243c2 commit 79e6c9c
Show file tree
Hide file tree
Showing 30 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/index.html → client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</div>

<script src="/socket.io/socket.io.js"></script>
<script src="js/modules/libs/tribute-es5.min.js"></script>
<script src="js/libs/tribute-es5.min.js"></script>
<script src="js/bundle.js"></script>

<script id="message-template" type="text/template">
Expand Down
1 change: 1 addition & 0 deletions client/public/js/bundle.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const test = require('tape');

const html = require('fs').readFileSync('./public/index.html', { encoding: 'utf-8' });
const html = require('fs').readFileSync('./client/public/index.html', { encoding: 'utf-8' });
const JSDOM = require("jsdom").JSDOM;
const window = new JSDOM(html).window;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "index.js",
"scripts": {
"start": "node server/server.js",
"test-client": "tape public/js/**/*.test.js | tap-spec",
"test-client": "tape client/**/*.test.js | tap-spec",
"test-server": "tape server/**/*.test.js | tap-spec",
"test-watch-client": "nodemon --exec \"npm run test-client\"",
"test-watch-server": "nodemon --exec \"npm run test-server\"",
"build-client-js": "browserify public/js/client.js | uglifyjs > public/js/bundle.js",
"start-watchify": "watchify public/js/client.js -v -o \"uglifyjs > public/js/bundle.js\"",
"build-client-js": "browserify client/src/client.js | uglifyjs > client/public/js/bundle.js",
"start-watchify": "watchify client/src/client.js -v -o \"uglifyjs > client/public/js/bundle.js\"",
"start-nodemon": "nodemon server/server.js",
"watch": "concurrently --timestamp-format \"HH:mm:ss\" --prefix \"{time} [{index}]\" --kill-others \"npm run start-watchify\" \"npm run start-nodemon\""
},
Expand Down
1 change: 0 additions & 1 deletion public/js/bundle.js

This file was deleted.

2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const port = process.env.PORT || 3000;
const path = require('path');
const publicPath = path.join(__dirname, '../public');
const publicPath = path.join(__dirname, '../client/public');

const express = require('express');
const compression = require('compression');
Expand Down

0 comments on commit 79e6c9c

Please sign in to comment.