Skip to content

Commit ec08979

Browse files
committed
First commit
0 parents  commit ec08979

File tree

290 files changed

+28400
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+28400
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve imdone
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser (If imdone web site) [e.g. chrome, safari]
29+
- Imdone Version [e.g. 22]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
33+
34+
**DoD**
35+
- [ ] Issue is understood
36+
- [ ] Fix is implemented and tested
37+
- [ ] Fix is deployed in the current release

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
- run: npm i
24+
- run: npm run build --if-present

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.nyc_output
2+
coverage
3+
lib-cov
4+
*.seed
5+
*.log
6+
*.csv
7+
*.dat
8+
*.out
9+
*.pid
10+
*.gz
11+
12+
pids
13+
logs
14+
results
15+
16+
npm-debug.log
17+
node_modules
18+
node_modules_bak
19+
tmp
20+
temp
21+
cli-test-repo
22+
23+
.env
24+
.DS_Store
25+
debug.md
26+
27+
backlog_test
28+
29+
# Imdone
30+
.imdone/*
31+
!.imdone/config.yml
32+
!.imdone/actions
33+
!.imdone/properties
34+
!.imdone/templates
35+
!.imdone/package.json
36+
!.imdone/package-lock.json

.imdone/actions/board.old.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const release = require('../lib/release')
2+
3+
module.exports = function () {
4+
const project = this.project
5+
const { startRelease, prepareRelease, version } = release(project)
6+
const actions = ['patch', 'minor', 'major'].map((increment) => {
7+
return {
8+
title: `Start release ${version.update(increment)}`,
9+
action: async function () {
10+
await startRelease('master', increment)
11+
},
12+
}
13+
})
14+
15+
actions.push({
16+
title: `Prepare Pull Request ${project.name} ${version.get()}`,
17+
action: async function () {
18+
await prepareRelease(project)
19+
},
20+
})
21+
22+
return actions
23+
}

.imdone/actions/card.old.js

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
const eol = require('eol')
2+
// const release = require('../lib/release')
3+
4+
module.exports = function (task) {
5+
const project = this.project
6+
const { version } = release(project)
7+
const epic =
8+
(task.meta['is-epic'] && task.meta['is-epic'][0]) ||
9+
(task.meta.epic && task.meta.epic[0])
10+
const currentRelease = `Release ${version.get()}`
11+
12+
const actions = [
13+
{
14+
title: `Copy card for code`,
15+
action: () => {
16+
const prefix = '// '
17+
const sep = eol.auto
18+
const contentLines = task.content.split(sep)
19+
20+
contentLines[0] = `## ${contentLines[0]}`
21+
contentLines.splice(
22+
1,
23+
0,
24+
'**code:** [${relPath}:${line}](${relPath}:${line})'
25+
)
26+
27+
if (contentLines[contentLines.length - 1].trim() === '')
28+
contentLines.pop()
29+
30+
const content = `${prefix}${task.list}:${
31+
task.order
32+
} ${contentLines.join(`${sep}${prefix}`)}`
33+
34+
return project.copyToClipboard(
35+
content,
36+
`Card for code copied to clipboard`
37+
)
38+
},
39+
pack: 'fas',
40+
icon: 'clone',
41+
},
42+
]
43+
44+
if (epic !== currentRelease) {
45+
actions.push({
46+
title: `Add to "${currentRelease}"`,
47+
action: async () => {
48+
if (epic) {
49+
await project.updateCardContent(
50+
task,
51+
task.content.replace(`:"${epic}"`, `:"${currentRelease}"`)
52+
)
53+
} else {
54+
await project.addMetadata(task, 'epic', currentRelease)
55+
}
56+
},
57+
pack: 'fas',
58+
icon: 'clone',
59+
})
60+
}
61+
62+
if (epic && task.source.path.endsWith('.md')) {
63+
const template = `
64+
<!--
65+
epic:"${epic}"
66+
created:${new Date().toISOString()}
67+
-->`.replace(/ +/g, '')
68+
actions.push({
69+
title: `Add a card to ${epic}`,
70+
action: () => {
71+
project.newCard({
72+
list: 'TODO',
73+
path: task.source.path,
74+
template,
75+
})
76+
return true
77+
},
78+
pack: 'fas',
79+
icon: 'plus',
80+
})
81+
}
82+
return actions
83+
}

.imdone/config.yml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
keepEmptyPriority: true
2+
code:
3+
include_lists:
4+
- TODO
5+
- DOING
6+
- DONE
7+
- PLANNING
8+
- FIXME
9+
- ARCHIVE
10+
- HACK
11+
- CHANGED
12+
- XXX
13+
- IDEA
14+
- NOTE
15+
- REVIEW
16+
- BACKLOG
17+
- READY
18+
- ABANDONED
19+
lists:
20+
- name: NOTE
21+
hidden: false
22+
ignore: false
23+
id: jea6nx7llx85j9k
24+
- name: FIXME
25+
hidden: true
26+
ignore: false
27+
id: sktwi22bvlvppcr50
28+
- name: Past Due Reminders
29+
hidden: true
30+
ignore: false
31+
id: jea613h4lzjqljbo
32+
filter: 'remind = /./ and remind < "${now}" and list != READY and list != DONE'
33+
- name: HACK
34+
hidden: true
35+
ignore: false
36+
id: jea6nx7llx85j9l
37+
- name: BACKLOG
38+
hidden: true
39+
ignore: false
40+
id: jea6nx7llx85j9m
41+
- name: TODO
42+
hidden: false
43+
ignore: false
44+
id: jea6nx7llx85j9n
45+
- name: DOING
46+
hidden: false
47+
ignore: false
48+
id: jea6nx7llx85j9o
49+
- name: READY
50+
hidden: false
51+
ignore: false
52+
id: jea6nx7llx85j9p
53+
- name: DONE
54+
hidden: false
55+
ignore: true
56+
id: jea6nx7llx85j9q
57+
- name: ABANDONED
58+
hidden: true
59+
ignore: true
60+
id: jea6b3hlxv87stb
61+
settings:
62+
openIn: code
63+
openCodeIn: default
64+
journalType: New File
65+
journalPath: notes
66+
appendNewCardsTo: imdone-tasks.md
67+
newCardSyntax: HASHTAG
68+
replaceSpacesWith: '-'
69+
plugins:
70+
imdone-sample-plugin:
71+
tags: []
72+
meta:
73+
- key: expand
74+
value: '1'
75+
- key: epic
76+
value: Release 1.29.0
77+
- key: epic
78+
value: Release 2.0
79+
SamplePlugin:
80+
tags: []
81+
meta: []
82+
HeaderFooterPlugin:
83+
afterPrefix: |-
84+
${!/.md$/.test(relPath) ? '## **:hammer_and_wrench:** ' : ''}
85+
${tags.includes('bug') ? ':bug: ' : ''}
86+
${tags.includes('experiment') ? ':test_tube: ' : ''}
87+
${tags.includes('urgent') ? ' :fire: ' : '' }
88+
${tags.includes('important') ? ' :exclamation: ' : '' }
89+
${meta.remind ? ' :alarm_clock: ' : ''}
90+
${tags.includes('launch') ? ':rocket: ' : ''}
91+
${tags.includes('plugin') ? ':electric_plug: ' : ''}
92+
devMode: false
93+
journalTemplate: null
94+
markdownOnly: false
95+
theme: dark
96+
editorTheme: blackboard
97+
filterHistory:
98+
- allMeta.id = "4"
99+
views: []
100+
name: "\U0001F3AF imdone core"
101+
defaultFilter: !<tag:yaml.org,2002:js/undefined> ''
102+
kudosProbability: 0.33
103+
cards:
104+
colors:
105+
- color: green
106+
filter: 'contains(allTags,story)'
107+
- color: black
108+
filter: list=TODO
109+
- color: red
110+
filter: allTags=contains=urgent
111+
- color: red
112+
filter: ':bug:'
113+
- color: green
114+
filter: list=DOING
115+
template: |
116+
117+
<!--
118+
created:${(new Date()).toISOString()}
119+
-->
120+
trackChanges: false
121+
metaNewLine: true
122+
addCompletedMeta: true
123+
addCheckBoxTasks: false
124+
doingList: DOING
125+
doneList: DONE
126+
tokenPrefix: '#'
127+
taskPrefix: '#'
128+
tagPrefix: '#'
129+
metaSep: ':'
130+
orderMeta: true
131+
maxLines: 4
132+
addNewCardsToTop: true
133+
showTagsAndMeta: false
134+
links:
135+
- href: >-
136+
https://twitter.com/intent/tweet?text=${encodedText}%0ATweeted%20with%20@imdoneio
137+
icon: twitter
138+
pack: fab
139+
title: Tweet this card
140+
defaultList: FIXME
141+
archiveCompleted: true
142+
archiveFolder: notes/archive

0 commit comments

Comments
 (0)