Skip to content

Commit 47af1c1

Browse files
committed
Export project TaskItem
1 parent 5f47770 commit 47af1c1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
import * as core from './core';
1010
import * as home from './home';
1111
import * as misc from './misc';
12+
13+
import { ProjectTasks, TaskItem} from './project/tasks';
14+
1215
import BaseStage from './installer/stages/base';
1316
import PlatformIOCoreStage from './installer/stages/platformio-core';
1417
import ProjectIndexer from './project/indexer';
1518
import ProjectObserver from './project/observer';
16-
import ProjectTasks from './project/tasks';
1719

1820
const installer = {
1921
BaseStage,
@@ -23,7 +25,8 @@ const installer = {
2325
const project = {
2426
ProjectIndexer,
2527
ProjectObserver,
26-
ProjectTasks
28+
ProjectTasks,
29+
TaskItem
2730
};
2831

2932
export {

src/project/tasks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import fs from 'fs-plus';
1010
import ini from 'ini';
1111
import path from 'path';
1212

13-
export default class ProjectTasks {
13+
export class ProjectTasks {
1414

1515
static ENV_NAME_PREFIX = 'env:';
1616

@@ -133,7 +133,7 @@ export default class ProjectTasks {
133133
}
134134

135135

136-
class TaskItem {
136+
export class TaskItem {
137137

138138
constructor(name, description, args) {
139139
this.name = name;

0 commit comments

Comments
 (0)