Skip to content

Instantly share code, notes, and snippets.

Avatar

Chrizzly Chris2011

View GitHub Profile
View tiptap.d.ts
declare module 'tiptap' {
import Vue from 'vue';
export class Editor {
public constructor({});
public setOptions({}): void;
public setContent(content: string, emitUpdate?: boolean): void;
public getHTML(): string;
public destroy(): void;
}
View createVersionFile.js
const git = require('git-rev'),
package = require('./package.json'),
fs = require('fs');
console.log('\n------------------- create version.json file -------------------\n');
Promise.all([
new Promise((resolve, reject) => {
git.short(hash => {
if(hash) {