From 76bb1b76bf6d5a34d84da6a063b4130f1c5f5d87 Mon Sep 17 00:00:00 2001 From: Guo Yu Date: Fri, 19 Sep 2014 21:39:25 +0800 Subject: [PATCH] 0.1.1: bugfix, fix workflow, update dist files --- .gitignore | 3 ++- .npmignore | 3 ++- bin/build-css-core.sh | 1 + bower.json | 2 +- dist/ninja.min.css | 2 +- package.json | 3 ++- src/less/font.less | 1 + src/less/ninja.less | 2 -- 8 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 src/less/font.less diff --git a/.gitignore b/.gitignore index 4fe7141..e526e53 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ psd thumb *.log bower_* -dist/codemirror.* \ No newline at end of file +dist/codemirror.* +dist/font.css diff --git a/.npmignore b/.npmignore index 6efef5f..b76eedb 100644 --- a/.npmignore +++ b/.npmignore @@ -7,4 +7,5 @@ thumb bower_* dist/codemirror.* screenshot.png -editor-ninja.jpg \ No newline at end of file +editor-ninja.jpg +dist/font.css \ No newline at end of file diff --git a/bin/build-css-core.sh b/bin/build-css-core.sh index b512099..cc21cd6 100755 --- a/bin/build-css-core.sh +++ b/bin/build-css-core.sh @@ -2,6 +2,7 @@ # compile core style of ninja editor node_modules/.bin/concat \ + dist/font.css \ dist/codemirror.min.css \ dist/ninja.css \ -o dist/ninja.min.css \ No newline at end of file diff --git a/bower.json b/bower.json index cb18889..1a97a47 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "ninja", - "version": "0.1.0", + "version": "0.1.1", "homepage": "https://github.com/airpub/ninja", "authors": [ "Guo Yu " diff --git a/dist/ninja.min.css b/dist/ninja.min.css index ece2b91..18d3a64 100644 --- a/dist/ninja.min.css +++ b/dist/ninja.min.css @@ -1 +1 @@ -.CodeMirror{font-family:monospace;height:300px}.CodeMirror-scroll{overflow:auto}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}@-moz-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}@-webkit-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}@keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}.cm-tab{display:inline-block}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-invalidchar,.cm-s-default .cm-error{color:red}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{line-height:1;position:relative;overflow:hidden;background:#fff;color:#000}.CodeMirror-scroll{margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-sizer{position:relative;border-right:30px solid transparent;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;padding-bottom:30px;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;-moz-box-sizing:content-box;box-sizing:content-box;padding-bottom:30px;margin-bottom:-32px;display:inline-block}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-wrap .CodeMirror-scroll{overflow-x:hidden}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:1}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}@import url("../../fontawesome/css/font-awesome.min.css");::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-button{height:0;width:0}::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment{display:block}::-webkit-scrollbar-button:vertical:start:increment,::-webkit-scrollbar-button:vertical:end:decrement{display:none}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal,::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal{border-style:solid;border-color:transparent}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal{background-clip:padding-box}::-webkit-scrollbar-thumb{-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,0.1),inset 0 -1px 0 rgba(0,0,0,0.07);background-clip:padding-box;background-color:rgba(0,0,0,0.2);min-height:28px;padding-top:100px}::-webkit-scrollbar-thumb:hover{-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.25);background-color:rgba(0,0,0,0.4)}::-webkit-scrollbar-thumb:active{-webkit-box-shadow:inset 1px 1px 3px rgba(0,0,0,0.35);background-color:rgba(0,0,0,0.5)}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal{border-width:0}::-webkit-scrollbar-track:hover{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.1);background-color:rgba(0,0,0,0.05)}::-webkit-scrollbar-track:active{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.14),inset -1px -1px 0 rgba(0,0,0,0.07);background-color:rgba(0,0,0,0.05)}.editor-toolbar{background-color:#fff;font-size:18px;overflow:hidden;height:40px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.editor-toolbar a{display:block;float:left;width:40px;height:40px;line-height:40px;font-size:18px;cursor:pointer;color:#999;text-align:center;background-color:#fff}.editor-toolbar a:hover,.editor-toolbar a.active{color:#444;text-decoration:none}.editor-toolbar .separator{float:left;width:1px;height:40px;overflow-x:hidden;font-style:normal;background-color:#ddd;display:block}.editor-toolbar .fa-expand{float:right}.CodeMirror{height:600px;min-height:600px;font:16px/1.5 "Helvetica Neue","Helvetica","Xin Gothic","Hiragino Sans GB","WenQuanYi Micro Hei","Microsoft YaHei",sans-serif;background-color:transparent}.CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.cm-s-zen .cm-keyword{color:#333}.cm-s-zen .cm-atom{color:#7f8c8d}.cm-s-zen .cm-number{color:#099}.cm-s-zen .cm-variable,.cm-s-zen .cm-punctuation,.cm-s-zen .cm-property{color:#008080}.cm-s-zen .cm-def,.cm-s-zen .cm-variable-2,.cm-s-zen .cm-operator{color:#900}.cm-s-zen .cm-variable-3{color:#085}.cm-s-zen .cm-comment{color:#a50}.cm-s-zen .cm-string{color:#7f8c8d}.cm-s-zen .cm-string-2{color:#f50}.cm-s-zen .cm-meta{color:#555}.cm-s-zen .cm-qualifier{color:#008080}.cm-s-zen .cm-error{color:#f00}.cm-s-zen .cm-builtin{color:#555}.cm-s-zen .cm-bracket{color:#997}.cm-s-zen .cm-tag{color:#000080}.cm-s-zen .cm-attribute{color:#008080}.cm-s-zen .cm-header{color:#444}.cm-s-zen .cm-header-2{color:#444}.cm-s-zen .cm-quote{color:#888}.cm-s-zen .cm-hr{color:#999}.cm-s-zen .cm-link{color:#7f8c8d}.cm-s-zen .cm-strong{padding-left:0;margin-left:0}.cm-s-zen .cm-attribute,.cm-s-zen .cm-bracket,.cm-s-zen .cm-keyword,.cm-s-zen .cm-variable,.cm-s-zen .cm-number,.cm-s-zen .cm-operator,.cm-s-zen .cm-variable,.cm-s-zen .cm-comment,.cm-s-zen .cm-qualifier,.cm-s-zen .cm-property,.cm-s-zen .cm-meta,.cm-s-zen .cm-atom{font-size:14px;font-family:monospace}.cm-s-zen .ff-monospace{font-size:14px;font-family:monospace !important}.cm-s-zen .ff-monospace .cm-string{font-size:14px !important;color:#d14}:-webkit-full-screen{width:100%;height:100%;padding-left:50px !important;padding-bottom:50px !important;padding-right:50px !important;background-color:#f9f9f5}:-moz-full-screen{width:100%;height:100%;padding-left:50px !important;padding-bottom:50px !important;padding-right:50px !important;background-color:#f9f9f5} \ No newline at end of file +@import url("../../fontawesome/css/font-awesome.min.css");.CodeMirror{font-family:monospace;height:300px}.CodeMirror-scroll{overflow:auto}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}@-moz-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}@-webkit-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}@keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}.cm-tab{display:inline-block}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-invalidchar,.cm-s-default .cm-error{color:red}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{line-height:1;position:relative;overflow:hidden;background:#fff;color:#000}.CodeMirror-scroll{margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-sizer{position:relative;border-right:30px solid transparent;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;padding-bottom:30px;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;-moz-box-sizing:content-box;box-sizing:content-box;padding-bottom:30px;margin-bottom:-32px;display:inline-block}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-wrap .CodeMirror-scroll{overflow-x:hidden}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:1}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}@import url("../../fontawesome/css/font-awesome.min.css");::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-button{height:0;width:0}::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment{display:block}::-webkit-scrollbar-button:vertical:start:increment,::-webkit-scrollbar-button:vertical:end:decrement{display:none}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal,::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal{border-style:solid;border-color:transparent}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal{background-clip:padding-box}::-webkit-scrollbar-thumb{-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,0.1),inset 0 -1px 0 rgba(0,0,0,0.07);background-clip:padding-box;background-color:rgba(0,0,0,0.2);min-height:28px;padding-top:100px}::-webkit-scrollbar-thumb:hover{-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.25);background-color:rgba(0,0,0,0.4)}::-webkit-scrollbar-thumb:active{-webkit-box-shadow:inset 1px 1px 3px rgba(0,0,0,0.35);background-color:rgba(0,0,0,0.5)}::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal{border-width:0}::-webkit-scrollbar-track:hover{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.1);background-color:rgba(0,0,0,0.05)}::-webkit-scrollbar-track:active{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.14),inset -1px -1px 0 rgba(0,0,0,0.07);background-color:rgba(0,0,0,0.05)}.editor-toolbar{background-color:#fff;font-size:18px;overflow:hidden;height:40px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.editor-toolbar a{display:block;float:left;width:40px;height:40px;line-height:40px;font-size:18px;cursor:pointer;color:#999;text-align:center;background-color:#fff}.editor-toolbar a:hover,.editor-toolbar a.active{color:#444;text-decoration:none}.editor-toolbar .separator{float:left;width:1px;height:40px;overflow-x:hidden;font-style:normal;background-color:#ddd;display:block}.editor-toolbar .fa-expand{float:right}.CodeMirror{height:600px;min-height:600px;font:16px/1.5 "Helvetica Neue","Helvetica","Xin Gothic","Hiragino Sans GB","WenQuanYi Micro Hei","Microsoft YaHei",sans-serif;background-color:transparent}.CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.cm-s-zen .cm-keyword{color:#333}.cm-s-zen .cm-atom{color:#7f8c8d}.cm-s-zen .cm-number{color:#099}.cm-s-zen .cm-variable,.cm-s-zen .cm-punctuation,.cm-s-zen .cm-property{color:#008080}.cm-s-zen .cm-def,.cm-s-zen .cm-variable-2,.cm-s-zen .cm-operator{color:#900}.cm-s-zen .cm-variable-3{color:#085}.cm-s-zen .cm-comment{color:#a50}.cm-s-zen .cm-string{color:#7f8c8d}.cm-s-zen .cm-string-2{color:#f50}.cm-s-zen .cm-meta{color:#555}.cm-s-zen .cm-qualifier{color:#008080}.cm-s-zen .cm-error{color:#f00}.cm-s-zen .cm-builtin{color:#555}.cm-s-zen .cm-bracket{color:#997}.cm-s-zen .cm-tag{color:#000080}.cm-s-zen .cm-attribute{color:#008080}.cm-s-zen .cm-header{color:#444}.cm-s-zen .cm-header-2{color:#444}.cm-s-zen .cm-quote{color:#888}.cm-s-zen .cm-hr{color:#999}.cm-s-zen .cm-link{color:#7f8c8d}.cm-s-zen .cm-strong{padding-left:0;margin-left:0}.cm-s-zen .cm-attribute,.cm-s-zen .cm-bracket,.cm-s-zen .cm-keyword,.cm-s-zen .cm-variable,.cm-s-zen .cm-number,.cm-s-zen .cm-operator,.cm-s-zen .cm-variable,.cm-s-zen .cm-comment,.cm-s-zen .cm-qualifier,.cm-s-zen .cm-property,.cm-s-zen .cm-meta,.cm-s-zen .cm-atom{font-size:14px;font-family:monospace}.cm-s-zen .ff-monospace{font-size:14px;font-family:monospace !important}.cm-s-zen .ff-monospace .cm-string{font-size:14px !important;color:#d14}:-webkit-full-screen{width:100%;height:100%;padding-left:50px !important;padding-bottom:50px !important;padding-right:50px !important;background-color:#f9f9f5}:-moz-full-screen{width:100%;height:100%;padding-left:50px !important;padding-bottom:50px !important;padding-right:50px !important;background-color:#f9f9f5} \ No newline at end of file diff --git a/package.json b/package.json index ddfe620..f00a29d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "editor-ninja", - "version": "0.1.0", + "version": "0.1.1", "description": "the missing front-end markdown editor for Airpub and everyone else", "main": "dist.ninja.min.js", "scripts": { @@ -11,6 +11,7 @@ "build-css": "npm run build-css-core && npm run build-css-bundle", "build-less": "node_modules/.bin/lessc -x src/less/ninja.less dist/ninja.css", "watch-less": "node_modules/.bin/rewatch src/**/*.less -c 'npm run build-less'", + "build-font": "node_modules/.bin/lessc -x src/less/font.less dist/font.css", "build": "npm run build-js && npm run build-css", "serve": "node_modules/.bin/serve --no-less .", "dev": "npm run serve & npm run watch-less" diff --git a/src/less/font.less b/src/less/font.less new file mode 100644 index 0000000..95ed7ec --- /dev/null +++ b/src/less/font.less @@ -0,0 +1 @@ +@import url("../../fontawesome/css/font-awesome.min.css"); \ No newline at end of file diff --git a/src/less/ninja.less b/src/less/ninja.less index 0db0a83..d0828d3 100644 --- a/src/less/ninja.less +++ b/src/less/ninja.less @@ -1,5 +1,3 @@ -@import url("../../fontawesome/css/font-awesome.min.css"); - @import 'scrollbar.less'; @import 'editor.less'; @import 'zen.less'; \ No newline at end of file