Skip to content

Commit

Permalink
Dependency bump (serve 12->13). Add dependency checks to local build …
Browse files Browse the repository at this point in the history
…pipeline, do not run on ci builds.
  • Loading branch information
Hexagon committed Nov 7, 2021
1 parent 28a8cf8 commit 6e8816c
Show file tree
Hide file tree
Showing 6 changed files with 3,556 additions and 3,768 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run build:ci
2 changes: 1 addition & 1 deletion client/public/js/cryptalk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/public/js/cryptalk.min.js.map

Large diffs are not rendered by default.

18 changes: 1 addition & 17 deletions client/source/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,6 @@ export default function(mediator,settings,templates, sounds) {
components.input[0].removeAttribute('disabled');
components.inputWrapper[0].className = '';
components.input.focus();
},

_require: function (filepath, done) {
commands.lockInput();
commands.post('info', 'Requiring ' + filepath + '...');
require([filepath], function () {
commands.post('info', 'Successfully required ' + filepath + '.');
commands.unlockInput();
done();
}, function (e) {
commands.post('error', 'An error occurred while trying to load "' + filepath + '":\n' + e);
commands.unlockInput();
done();
});
}
},

Expand Down Expand Up @@ -217,13 +203,11 @@ export default function(mediator,settings,templates, sounds) {

// Connect events
for (var commandName in commands) {
if (commandName !== '_require' && commandName !== 'post') {
if (commandName !== 'post') {
mediator.on('console:' + commandName, commands[commandName]);
}
}

mediator.on('console:require', commands._require);

mediator.on('console:post', function (data) {
commands.post(data.type, data.data, data.nick);
});
Expand Down
Loading

0 comments on commit 6e8816c

Please sign in to comment.