-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,244 additions
and
2,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
exports.build = (production) => { | ||
require('esbuild') | ||
.build({ | ||
platform: 'node', | ||
target: 'node10.12', | ||
mainFields: ['main', 'module'], | ||
minify: production, | ||
sourcemap: !production, | ||
entryPoints: ['./src/index.ts'], | ||
bundle: true, | ||
external: ['coc.nvim'], | ||
outfile: 'lib/index.js', | ||
}) | ||
// eslint-disable-next-line no-console | ||
.catch(console.error); | ||
}; | ||
|
||
if (require.main === module) { | ||
exports.build(true); | ||
// eslint-disable-next-line no-console | ||
console.log('build done'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ export const vimEvents = new HelperVimEvents<{ | |
}, | ||
logger, | ||
{ | ||
name: 'FloatinputStatus', | ||
name: 'Floatinput', | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["**/*.test.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const chokidar = require('chokidar'); | ||
const { build } = require('./build.js'); | ||
|
||
chokidar | ||
.watch('./src/**/*.{ts,json}', { | ||
ignoreInitial: true, | ||
}) | ||
.on('all', (event, path) => { | ||
// eslint-disable-next-line no-console | ||
console.log(path, event); | ||
build(false); | ||
}); |
Oops, something went wrong.