Skip to content

Commit

Permalink
feat: minimal template
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Jan 10, 2024
1 parent 759d417 commit 598d70d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 38 deletions.
3 changes: 0 additions & 3 deletions src/scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export async function scaffold(dest: string): Promise<void> {
if (file === 'npmignore') {
file = '.npmignore';
}
if (file === 'eslintrc.js') {
file = '.eslintrc.js';
}
await write(join(dest, file), content);
});

Expand Down
2 changes: 1 addition & 1 deletion template/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const options = {
mainFields: ['module', 'main'],
external: ['coc.nvim'],
platform: 'node',
target: 'node16',
target: 'node18',
outfile: 'lib/index.js',
};

Expand Down
16 changes: 0 additions & 16 deletions template/eslintrc.js

This file was deleted.

22 changes: 4 additions & 18 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,17 @@
"coc.nvim"
],
"engines": {
"coc": "^0.0.80"
"coc": "^0.0.82"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.mjs --watch",
"build": "node esbuild.mjs",
"prepare": "node esbuild.mjs"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"coc.nvim": "^0.0.80",
"esbuild": "^0.17.18",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"typescript": "^5.0.4"
"coc.nvim": "^0.0.83-next.18",
"esbuild": "^0.19.8",
"typescript": "^5.3.3"
},
"activationEvents": [
"*"
Expand Down

0 comments on commit 598d70d

Please sign in to comment.