Skip to content

Commit 9175591

Browse files
committed
0.2.0 release.
1 parent 5a6636c commit 9175591

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*~
2-
scripts/js/
32
doc/tmp/
3+
dist/
4+
node_modules/
5+
samples/
File renamed without changes.

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "context-menu",
3-
"version": "0.1.0",
2+
"name": "mj-context-menu",
3+
"version": "0.2.0",
44
"description": "A generic context menu",
5-
"directories": {
6-
"test": "tests"
5+
"main": "dist/context_menu.js",
6+
"types": "dist/context_menu.d.ts",
7+
"scripts": {
8+
"build": "./node_modules/.bin/tsc"
79
},
8-
"scripts": {},
910
"maintainers": [
1011
"Volker Sorge <v.sorge@mathjax.org>"
1112
],
@@ -27,11 +28,11 @@
2728
"tslint": "^5.*",
2829
"tslint-jsdoc-rules": "*",
2930
"tslint-unix-formatter": "*",
30-
"typescript": "^3.*",
31-
"gulp": "^4.0.0"
31+
"typescript": "^3.*"
3232
},
3333
"files": [
3434
"LICENSE",
35-
"README.md"
35+
"README.md",
36+
"dist"
3637
]
3738
}

samples/menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>Testing the context menu</title>
44

55
</head>
6-
<script src="../scripts/js/context_menu.js"></script>
6+
<script src="../dist/context_menu.js"></script>
77
<script>
88
var dialog = new ContextMenu.Info('a', function(){
99
return '<b>bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb </b><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p><br>aa<p>bbb</p>';}, '<a href="http://www.mathjax.org">MathJax.org</a>');
@@ -260,7 +260,7 @@ <h1>Testing the context menu</h1>
260260
<hr>
261261
<address></address>
262262
<!-- hhmts start -->
263-
Last modified: Tue Feb 21 21:22:15 PST 2017
263+
Last modified: Thu May 2 20:51:46 BST 2019
264264
<!-- hhmts end -->
265265
</body>
266266
<script>cc.getStore().insert(document.getElementsByClassName("test"));

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
"noLib": false,
1010
"alwaysStrict": false,
1111
"sourceMap": false,
12-
"outFile": "scripts/js/context_menu.js"
12+
"lib": ["es6", "dom"],
13+
"outFile": "dist/context_menu.js"
1314
},
15+
"include": ["scripts/ts/**/*"],
1416
"exclude": [
15-
"scripts/js",
17+
"dist",
1618
"samples",
1719
"node_modules"
1820
]

0 commit comments

Comments
 (0)