npm install
npm run build
Created
January 11, 2019 14:08
-
-
Save philippamarkovics/e2d2e0f440a51125b4ef24b66bc2b2be to your computer and use it in GitHub Desktop.
Building ProseMirror
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
// const collab = require("prosemirror-collab"); | |
const commands = require("prosemirror-commands"); | |
const dropcursor = require("prosemirror-dropcursor"); | |
const gapcursor = require("prosemirror-gapcursor"); | |
const history = require("prosemirror-history"); | |
const inputrules = require("prosemirror-inputrules"); | |
const keymap = require("prosemirror-keymap"); | |
const markdown = require("prosemirror-markdown"); | |
const model = require("prosemirror-model"); | |
const schemaBasic = require("prosemirror-schema-basic"); | |
const schemaList = require("prosemirror-schema-list"); | |
const state = require("prosemirror-state"); | |
// const tables = require("prosemirror-tables"); | |
const transform = require("prosemirror-transform"); | |
const view = require("prosemirror-view"); | |
window.ProseMirror = { | |
// collab, | |
commands, | |
dropcursor, | |
gapcursor, | |
history, | |
inputrules, | |
keymap, | |
markdown, | |
model, | |
schemaBasic, | |
schemaList, | |
state, | |
// tables, | |
transform, | |
view | |
} |
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
{ | |
"scripts": { | |
"build": "./node_modules/.bin/browserify index.js --outfile prosemirror.js -t [ babelify --presets [ es2015 ] ]" | |
}, | |
"dependencies": { | |
"prosemirror-collab": "^1.0.0", | |
"prosemirror-commands": "^1.0.0", | |
"prosemirror-dropcursor": "^1.0.0", | |
"prosemirror-gapcursor": "^1.0.0", | |
"prosemirror-history": "^1.0.0", | |
"prosemirror-inputrules": "^1.0.0", | |
"prosemirror-keymap": "^1.0.0", | |
"prosemirror-markdown": "^1.0.0", | |
"prosemirror-menu": "^1.0.0", | |
"prosemirror-model": "^1.0.0", | |
"prosemirror-schema-basic": "^1.0.0", | |
"prosemirror-schema-list": "^1.0.0", | |
"prosemirror-state": "^1.0.0", | |
"prosemirror-tables": "^0.3.0", | |
"prosemirror-transform": "^1.0.0", | |
"prosemirror-view": "^1.0.0" | |
}, | |
"devDependencies": { | |
"babel-preset-es2015": "^6.24.1", | |
"babelify": "^7.3.0", | |
"browserify": "^14.4.0", | |
"uglify-js": "^3.1.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment