Skip to content

Commit

Permalink
Better project generation message and console output change
Browse files Browse the repository at this point in the history
  • Loading branch information
Raathigesh committed Jun 12, 2016
1 parent 65c2295 commit e889cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atmo",
"version": "0.5.1",
"version": "0.6.1",
"description": "Mocking Http, Socket, Graphql Endpoints made with ease through UI",
"main": "src/server/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ freeport(function(err, port) {
if (err) throw err;
port = 3333;
server.listen(port, function () {
console.log(chalk.blue('Hermes dashboard is available at: http://localhost:' + port));
console.log(chalk.blue('Atmo dashboard is available at: http://localhost:' + port));
});
});

Expand Down Expand Up @@ -55,6 +55,7 @@ io.on('connection', function(socket) {
socket.emit('deploymentComplete');
socket.emit('message', 'Your changes are deployed!')
});
fs.writeFileSync(cacheFilePath, JSON.stringify(data));
});

socket.on('save', function (spec) {
Expand All @@ -65,6 +66,7 @@ io.on('connection', function(socket) {
socket.on('generate', function (payload) {
var renerator = require(payload.generator);
renerator(payload.spec);
socket.emit('message', 'Your generated project is available in ' + path.join(process.cwd(), 'build'))
});

socket.on('installGenerator', function(name){
Expand Down

0 comments on commit e889cc4

Please sign in to comment.