mirror of
https://gitlab.com/Oreolek/cloak-salet.git
synced 2024-07-01 06:15:08 +03:00
systemjs wip
This commit is contained in:
parent
9cc73f6c33
commit
a1e070ad99
|
@ -25,7 +25,8 @@ html = (target, debug) ->
|
||||||
sources.push('html/test.html')
|
sources.push('html/test.html')
|
||||||
gulp.src(sources)
|
gulp.src(sources)
|
||||||
.pipe(gulp.dest(target))
|
.pipe(gulp.dest(target))
|
||||||
gulp.src(['node_modules/salet/lib/index.min.js'])
|
#gulp.src(['node_modules/salet/lib/index.min.js'])
|
||||||
|
gulp.src(['/www/games/salet-module/lib/index.js'])
|
||||||
.pipe(rename('salet.min.js'))
|
.pipe(rename('salet.min.js'))
|
||||||
.pipe(gulp.dest(target+"/game"))
|
.pipe(gulp.dest(target+"/game"))
|
||||||
gulp.src(['node_modules/systemjs/dist/system-production.js'])
|
gulp.src(['node_modules/systemjs/dist/system-production.js'])
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
$.holdReady( true )
|
salet = SystemJS.import("./game/salet.min.js")
|
||||||
SystemJS.register("./game/salet.min.js")
|
|
||||||
SystemJS.import("./game/salet.min.js").then(() ->
|
|
||||||
salet.game_id = "8b0c371c-57f4-49b3-ae3c-cba07d1a9733"
|
salet.game_id = "8b0c371c-57f4-49b3-ae3c-cba07d1a9733"
|
||||||
salet.game_version = "1.0"
|
salet.game_version = "1.0"
|
||||||
salet.verbRe = /^verb\_(\w+)\_(\w+)$/
|
salet.verbRe = /^verb\_(\w+)\_(\w+)$/
|
||||||
|
@ -27,7 +26,6 @@ SystemJS.import("./game/salet.min.js").then(() ->
|
||||||
|
|
||||||
$.holdReady( false )
|
$.holdReady( false )
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
switchTab = (tabid) ->
|
switchTab = (tabid) ->
|
||||||
$(".tab").removeClass("active")
|
$(".tab").removeClass("active")
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
|
SystemJS.register("./game/salet.min.js")
|
||||||
|
#`import {salet} from './game/salet.min.js'`
|
||||||
|
SystemJS.register("./game/main.js")
|
||||||
SystemJS.import("./game/main.js")
|
SystemJS.import("./game/main.js")
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- End of div.page -->
|
</div> <!-- End of div.page -->
|
||||||
|
|
||||||
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||||
<script src="game/system.js"></script>
|
<script src="game/system.js"></script>
|
||||||
<script src="game/loader.js"></script>
|
<script src="game/loader.js"></script>
|
||||||
<link rel='prefetch' href="https://togetherjs.com/togetherjs-min.js" />
|
<link rel='prefetch' href="https://togetherjs.com/togetherjs-min.js" />
|
||||||
|
|
Loading…
Reference in a new issue