Skip to content

Commit 27acd63

Browse files
adrianheinemarijnh
authored andcommitted
Move to rollup.config.js
1 parent 581854e commit 27acd63

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"lib": "./lib"
99
},
1010
"scripts": {
11-
"build": "rollup --banner \"`cat src/banner.js`\" --format umd -n CodeMirror src/codemirror.js -o lib/codemirror.js",
12-
"watch": "rollup -w --banner \"`cat src/banner.js`\" --format umd -n CodeMirror src/codemirror.js -o lib/codemirror.js",
11+
"build": "rollup -c",
12+
"watch": "rollup -w -c",
1313
"prepublish": "npm run-script build",
1414
"test": "node ./test/run.js",
1515
"lint": "bin/lint"
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
1+
export default {
2+
banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
23
// Distributed under an MIT license: http://codemirror.net/LICENSE
34
45
// This is CodeMirror (http://codemirror.net), a code editor
56
// implemented in JavaScript on top of the browser's DOM.
67
//
78
// You can find some technical background for some of the code below
89
// at http://marijnhaverbeke.nl/blog/#cm-internals .
10+
`,
11+
entry: "src/codemirror.js",
12+
format: "umd",
13+
dest: "lib/codemirror.js",
14+
moduleName: "CodeMirror"
15+
};

0 commit comments

Comments
 (0)