Browse Source

updated development workflow

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
Sebastian Haas 8 năm trước cách đây
mục cha
commit
bd0ac4c8da
2 tập tin đã thay đổi với 20 bổ sung14 xóa
  1. 16 12
      demo/demo.js
  2. 4 2
      package.json

+ 16 - 12
demo/demo.js

@@ -6,24 +6,25 @@
     var folder = "sheets/",
     // The available demos
         demos = {
+            "Actor Prelude Sample": "ActorPreludeSample.xml",
+            "Beethoven - An Fie Ferne Geliebte": "AnDieFerneGeliebte_Beethoven.xml",
+            "C. Gounod - Meditation": "CharlesGounod_Meditation.xml",
+            "Debussy - Mandoline": "mandoline - debussy.xml",
+            "Dichterliebe": "Dichterliebe01.xml",
+            "G.P. Telemann - Sonata, TWV 40:102 - 1. Dolce": "TelemannWV40.102_Sonate-Nr.1.1-Dolce.xml",
+            "J. Haydn - Concertante Cello": "JosephHaydn_ConcertanteCello.xml",
+            "J.S. Bach - Air": "JohannSebastianBach_Air.xml",
+            "J.S. Bach - Praeludium In C Dur BWV846 1": "JohannSebastianBach_PraeludiumInCDur_BWV846_1.xml",
             "M. Clementi - Sonatina Op.36 No.1 Pt.1": "MuzioClementi_SonatinaOpus36No1_Part1.xml",
             "M. Clementi - Sonatina Op.36 No.1 Pt.2": "MuzioClementi_SonatinaOpus36No1_Part2.xml",
             "M. Clementi - Sonatina Op.36 No.3 Pt.1": "MuzioClementi_SonatinaOpus36No3_Part1.xml",
             "M. Clementi - Sonatina Op.36 No.3 Pt.2": "MuzioClementi_SonatinaOpus36No3_Part2.xml",
-            "J.S. Bach - Air": "JohannSebastianBach_Air.xml",
-            "G.P. Telemann - Sonata, TWV 40:102 - 1. Dolce": "TelemannWV40.102_Sonate-Nr.1.1-Dolce.xml",
-            "C. Gounod - Meditation": "CharlesGounod_Meditation.xml",
-            "J.S. Bach - Praeludium In C Dur BWV846 1": "JohannSebastianBach_PraeludiumInCDur_BWV846_1.xml",
-            "J. Haydn - Concertante Cello": "JosephHaydn_ConcertanteCello.xml",
+            "Mozart - An Chloe": "an chloe - mozart.xml",
+            "Mozart - Das Veilchen": "das veilchen - mozart.xml",
+            "Mozart - Trio": "MozartTrio.mxl",
             "S. Joplin - Elite Syncopations": "ScottJoplin_EliteSyncopations.xml",
             "S. Joplin - The Entertainer": "ScottJoplin_The_Entertainer.xml",
-            "ActorPreludeSample": "ActorPreludeSample.xml",
-            "an chloe - mozart": "an chloe - mozart.xml",
-            "Beethoven - AnDieFerneGeliebte": "AnDieFerneGeliebte_Beethoven.xml",
-            "das veilchen - mozart": "das veilchen - mozart.xml",
-            "Dichterliebe01": "Dichterliebe01.xml",
-            "mandoline - debussy": "mandoline - debussy.xml",
-            "MozartTrio": "MozartTrio.mxl",
+            "Saltarello": "Saltarello.mxl"
         },
 
         zoom = 1.0,
@@ -74,6 +75,9 @@
         }
         select.onchange = selectOnChange;
 
+        // Pre-select default music piece
+        select.value = "MuzioClementi_SonatinaOpus36No1_Part1.xml";
+
         custom.appendChild(document.createTextNode("Custom"));
 
         // Create zoom controls

+ 4 - 2
package.json

@@ -6,9 +6,11 @@
   "typings": "dist/src/OSMD/OSMD",
   "scripts": {
     "docs": "typedoc --mode file --out build/docs --module commonjs --target ES5 --name opensheetmusicdisplay ./src",
-    "test": "grunt test",
     "postinstall": "grunt typings",
-    "prepublish": "grunt build:dist"
+    "prepublish": "grunt build:dist",
+    "server": "http-server",
+    "start": "npm run server -- build/demo",
+    "test": "grunt test"
   },
   "files": [
     "dist",