Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ jobs:

- name: Run smoke tests
run: pnpm exec mocha --forbid-only "test/smoke/**/*.test.ts"

- name: Install completion test shells
run: sudo apt-get update && sudo apt-get install -y fish zsh

- name: Test npm package installation
run: pnpm run test:package
1 change: 1 addition & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"node-option": ["no-experimental-strip-types"],
"require": [
"test/helpers/init.js",
"ts-node/register"
Expand Down
492 changes: 263 additions & 229 deletions README.md

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

const oclif = require('@oclif/core')

const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')

Expand All @@ -10,8 +8,4 @@ process.env.NODE_ENV = 'development'

require('ts-node').register({project})

// In dev mode, always show stack traces
oclif.settings.debug = true;

// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
require('@oclif/core').execute({development: true, dir: __dirname})
4 changes: 1 addition & 3 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env node

const oclif = require('@oclif/core')

oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
require('@oclif/core').execute({dir: __dirname})
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@
"bugs": "https://github.com/hackmdio/hackmd-cli/issues",
"dependencies": {
"@hackmd/api": "2.6.0",
"@hackmd/oclif-plugin-autocomplete": "^2.1.9-fish",
"@oclif/core": "2.8.2",
"@oclif/plugin-help": "5.2.9",
"@oclif/plugin-version": "1.3.3",
"cli-ux": "^5.4.4",
"@inquirer/password": "^5.2.4",
"@oclif/core": "5.1.9",
"@oclif/plugin-autocomplete": "4.0.5",
"@oclif/plugin-help": "7.0.5",
"@oclif/plugin-version": "3.0.6",
"cli-table3": "^0.6.5",
"fs-extra": "^8.1.0",
"lodash.defaults": "^4.2.0",
"oclif": "3.8.1",
"tslib": "^2.5.0"
"natural-orderby": "^5.0.0",
"string-width": "^4.2.3",
"tslib": "^2.5.0",
"yaml": "^2.9.1"
},
"devDependencies": {
"@oclif/test": "^2.3.17",
"@types/chai": "^4.2.7",
"@types/fs-extra": "^8.0.1",
"@types/lodash.defaults": "^4.2.6",
Expand All @@ -31,6 +33,7 @@
"eslint-config-oclif": "^6.0.130",
"mocha": "^10.2.0",
"nyc": "^13.3.0",
"oclif": "6.0.10",
"shx": "^0.3.4",
"ts-node": "^10.9.1",
"typescript": "^5.6.0"
Expand Down Expand Up @@ -63,20 +66,21 @@
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-version",
"@hackmd/oclif-plugin-autocomplete"
"@oclif/plugin-autocomplete"
]
},
"repository": "hackmdio/hackmd-cli",
"packageManager": "pnpm@10.28.0",
"scripts": {
"build": "shx rm -rf dist && tsc -b",
"build": "shx rm -rf lib dist tsconfig.tsbuildinfo && tsc -b",
"lint": "eslint .",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm run lint",
"prepack": "pnpm run build && oclif manifest && oclif readme",
"test": "mocha --forbid-only \"test/**/*.test.ts\" --exclude \"test/smoke/**/*\"",
"test:unit": "mocha --forbid-only \"test/**/*.test.ts\" --exclude \"test/integration/**/*\" --exclude \"test/smoke/**/*\"",
"test:smoke": "pnpm run build && mocha --forbid-only \"test/smoke/**/*.test.ts\"",
"test:package": "node scripts/test-package.mjs",
"version": "oclif readme && git add README.md",
"skill:package": "node scripts/package-skill.mjs",
"skill:watch": "node scripts/watch-skill.mjs"
Expand Down
Loading
Loading