Skip to content

Commit

Permalink
Update default tasks #408
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Apr 22, 2021
1 parent 32f9769 commit e3e500d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.10.3 / ####-##-##
===================

* Change default tasks to better examples

0.10.2 / 2021-02-11
===================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gaucho",
"version": "0.10.2",
"version": "0.10.3",
"description": "Minimalistic task launcher",
"main": "main.js",
"dependencies": {
Expand Down
29 changes: 1 addition & 28 deletions src/common/app_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const Store = require('electron-store');
const utils = require('./utils');
const defaultTasks = require('./default_tasks');

const FIELDS = {
WINDOW_SIZE: "windowSize",
Expand All @@ -19,34 +20,6 @@ const defaultUserConfig = {
theme: "classic"
};

const defaultTasks = {
suites: [{
title: "My Project",
tasks: [{
title: "Install",
command: "npm install"
}, {
title: "Test",
command: "npm test"
}, {
title: "Another awesome task",
command: "echo 'The result of my awesome task'"

}, {
title: "Start",
command: "npm start"

}]
}, {
title: "Suite 2",
tasks: [{
title: "Hello World 2",
command: "echo 'hello world'"
}]
}],
globalEnv: []
};

// Just for basic offuscation of the config file
const defaultKey = "ro64wz3l7d";

Expand Down
30 changes: 30 additions & 0 deletions src/common/default_tasks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use strict";

module.exports = {
suites: [{
title: "Example tasks",
tasks: [{
title: "Hello World",
command: 'echo "hello_world"'
}, {
title: "Run & Click me!",
command: "echo 'Good boy!'"
}, {
title: "You can edit me",
command: 'echo "Try clicking the pencil"'
}]
}, {
title: "Here is another suite of tasks",
tasks: [{
title: "Hello World",
command: "echo 'hello_world'"
}, {
title: "Date",
command: "date"
}, {
title: "This task will fail",
command: "fail!"
}]
}],
globalEnv: []
};

0 comments on commit e3e500d

Please sign in to comment.