mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: client: key: binder: migrate to ESM
This commit is contained in:
parent
d250bf0223
commit
f8a63b5a13
4 changed files with 4 additions and 11 deletions
|
|
@ -26,12 +26,12 @@ export default {
|
|||
'build:start': () => run(['build:client', 'start']),
|
||||
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
|
||||
'lint:all': () => run('lint:progress'),
|
||||
'lint': () => 'putout .',
|
||||
'lint': () => 'redlint scan; putout .',
|
||||
'lint:progress': () => run('lint', '-f progress'),
|
||||
'watch:lint': () => 'nodemon -w client -w server -w test -w common -w .webpack -x "putout -s"',
|
||||
'fresh:lint': () => run('lint', '--fresh'),
|
||||
'lint:fresh': () => run('lint', '--fresh'),
|
||||
'fix:lint': () => run('lint', '--fix'),
|
||||
'fix:lint': async () => `redlint fix && putout --fix .`,
|
||||
'lint:stream': () => run('lint', '-f stream'),
|
||||
'test': () => [testEnv, `tape 'test/**/*.{js,mjs}' '{client,static,common,server}/**/*.spec.{js,mjs}' -f fail`],
|
||||
'test:client': () => `tape 'test/client/**/*.js'`,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
'use strict';
|
||||
|
||||
module.exports.createBinder = () => {
|
||||
export const createBinder = () => {
|
||||
let binded = false;
|
||||
|
||||
return {
|
||||
|
|
@ -6,7 +6,7 @@ import * as Buffer from '../dom/buffer.mjs';
|
|||
import * as KEY from './key.mjs';
|
||||
import _vim from './vim/index.js';
|
||||
import setCurrentByChar from './set-current-by-char.js';
|
||||
import {createBinder} from './binder.js';
|
||||
import {createBinder} from './binder.mjs';
|
||||
|
||||
const Chars = fullstore();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const {join} = require('node:path');
|
||||
const {test, stub} = require('supertape');
|
||||
|
||||
const dir = '../';
|
||||
|
||||
const pathVim = join(dir, 'vim');
|
||||
|
||||
const {getDOM, getCloudCmd} = require('./globals.fixture');
|
||||
|
||||
globalThis.DOM = getDOM();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue