Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: include version number in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moranje committed Oct 3, 2018
1 parent 542a5e7 commit 01d56d3
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ coverage
data
alfred-workflow-todoist.js
alfred-workflow-todoist.js.map
Alfred Workflow Todoist.alfredworkflow
docs
node_modules
77 changes: 77 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"prebuild": "ts-node tools/move-files.ts moveToTemp && rimraf dist",
"build": "ts-node tools/build.ts",
"build:grammar": "npx nearleyc src/todoist/grammar.ne -o src/todoist/grammar.ts",
"build:workflow": "ts-node tools/build-workflow.ts",
"restore": "mkdir -p dist/workflow && npm run postbuild",
"start": "rollup -c rollup.config.ts -w",
"test": "jest",
Expand Down Expand Up @@ -69,6 +70,10 @@
"dist/Alfred Workflow Todoist.alfredworkflow"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
},
{
"path": "@semantic-release/exec",
"cmd": "npm run build:workflow"
}
],
"publish": [
Expand Down Expand Up @@ -133,6 +138,7 @@
"@commitlint/cli": "7.1.2",
"@commitlint/config-conventional": "7.1.2",
"@semantic-release/changelog": "3.0.0",
"@semantic-release/exec": "3.1.3",
"@semantic-release/git": "7.0.4",
"@types/app-root-path": "1.2.4",
"@types/fuzzaldrin": "2.1.0",
Expand Down
17 changes: 17 additions & 0 deletions tools/build-workflow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const shell = require('shelljs')
const zip = require('bestzip')

shell.exec('npm run bump-plist', { silent: true })

zip({
source: '*',
destination: '"../Alfred Workflow Todoist.alfredworkflow"',
cwd: 'dist/workflow/'
})
.then(() => {
console.log('all done!')
})
.catch((err: Error) => {
console.error(err.stack)
process.exit(1)
})
14 changes: 0 additions & 14 deletions tools/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,3 @@ const zip = require('bestzip')
shell.exec('rollup -c rollup.config.ts', { silent: true })
shell.exec('typedoc --out docs --target es6 --theme minimal --mode file src', { silent: true })
shell.exec('ts-node tools/move-files.ts moveFromTemp', { silent: true })
shell.exec('npm run bump-plist', { silent: true })

zip({
source: '*',
destination: '"../Alfred Workflow Todoist.alfredworkflow"',
cwd: 'dist/workflow/'
})
.then(() => {
console.log('all done!')
})
.catch((err: Error) => {
console.error(err.stack)
process.exit(1)
})

0 comments on commit 01d56d3

Please sign in to comment.