Skip to content

Commit 80eeba0

Browse files
brettz9marijnh
authored andcommitted
- Refactoring: Update to latest Rollup API
- npm: Update node-static, Rollup deps; add `package-lock.json` to gitignore and use `author` field in `package.json`
1 parent 7af1022 commit 80eeba0

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/node_modules
22
/npm-debug.log
3+
/package-lock.json
34
/test*.html
45
.tern-*
56
*~

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "5.40.3",
44
"main": "lib/codemirror.js",
55
"style": "lib/codemirror.css",
6+
"author": {
7+
"name": "Marijn Haverbeke",
8+
"email": "marijnh@gmail.com",
9+
"url": "http://marijnhaverbeke.nl"
10+
},
611
"description": "Full-featured in-browser code editor",
712
"license": "MIT",
813
"directories": {
@@ -17,11 +22,11 @@
1722
},
1823
"devDependencies": {
1924
"blint": "^1",
20-
"node-static": "0.6.0",
25+
"node-static": "0.7.11",
2126
"phantomjs-prebuilt": "^2.1.12",
22-
"rollup": "^0.41.0",
23-
"rollup-plugin-buble": "^0.15.0",
24-
"rollup-watch": "^3.2.0"
27+
"rollup": "^0.66.2",
28+
"rollup-plugin-buble": "^0.19.2",
29+
"rollup-watch": "^4.3.1"
2530
},
2631
"bugs": "http://github.com/codemirror/CodeMirror/issues",
2732
"keywords": [
@@ -30,13 +35,6 @@
3035
"Editor"
3136
],
3237
"homepage": "https://codemirror.net",
33-
"maintainers": [
34-
{
35-
"name": "Marijn Haverbeke",
36-
"email": "marijnh@gmail.com",
37-
"web": "http://marijnhaverbeke.nl"
38-
}
39-
],
4038
"repository": {
4139
"type": "git",
4240
"url": "https://github.com/codemirror/CodeMirror.git"

rollup.config.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import buble from 'rollup-plugin-buble';
22

33
export default {
4-
banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
4+
input: "src/codemirror.js",
5+
output: {
6+
banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
57
// Distributed under an MIT license: https://codemirror.net/LICENSE
68
79
// This is CodeMirror (https://codemirror.net), a code editor
810
// implemented in JavaScript on top of the browser's DOM.
911
//
1012
// You can find some technical background for some of the code below
1113
// at http://marijnhaverbeke.nl/blog/#cm-internals .
12-
`,
13-
entry: "src/codemirror.js",
14-
format: "umd",
15-
dest: "lib/codemirror.js",
16-
moduleName: "CodeMirror",
14+
`,
15+
format: "umd",
16+
file: "lib/codemirror.js",
17+
name: "CodeMirror"
18+
},
1719
plugins: [ buble({namedFunctionExpressions: false}) ]
1820
};

0 commit comments

Comments
 (0)