mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
Move old frontend UI code to new directory
This commit is contained in:
1 parent
b9e199f08d
commit
31eb0ea2b7
12 files changed
+20
-34
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+14
-14
@@ -14,29 +14,29 @@ var buildLibraries = function() {
|
||||
.pipe(filter('**/*.js')) // filter out CSS (bootstrap, etc.)
|
||||
.pipe(uglify())
|
||||
.pipe(concat('libraries.js'))
|
||||
.pipe(gulp.dest('web/'));
|
||||
.pipe(gulp.dest('web/output/'));
|
||||
}
|
||||
|
||||
var buildCss = function() {
|
||||
return gulp.src('src/web/css/*.css')
|
||||
return gulp.src('frontend/old_frontend/css/*.css')
|
||||
.pipe(concat('style.css'))
|
||||
.pipe(gulp.dest('web/'));
|
||||
.pipe(gulp.dest('web/output/'));
|
||||
}
|
||||
|
||||
var buildJs = function() {
|
||||
return gulp.src([
|
||||
'src/web/js/sentence.js',
|
||||
'src/web/js/dictionary.js',
|
||||
'src/web/js/sound.js',
|
||||
'src/web/js/volume.js',
|
||||
'src/web/js/url.js',
|
||||
'src/web/js/ui.js',
|
||||
'src/web/js/events.js',
|
||||
'src/web/js/initialize.js',
|
||||
'frontend/old_frontend/js/sentence.js',
|
||||
'frontend/old_frontend/js/dictionary.js',
|
||||
'frontend/old_frontend/js/sound.js',
|
||||
'frontend/old_frontend/js/volume.js',
|
||||
'frontend/old_frontend/js/url.js',
|
||||
'frontend/old_frontend/js/ui.js',
|
||||
'frontend/old_frontend/js/events.js',
|
||||
'frontend/old_frontend/js/initialize.js',
|
||||
])
|
||||
.pipe(uglify())
|
||||
.pipe(concat('script.js'))
|
||||
.pipe(gulp.dest('web/'));
|
||||
.pipe(gulp.dest('web/output/'));
|
||||
}
|
||||
|
||||
gulp.task('bower', buildLibraries);
|
||||
@@ -45,8 +45,8 @@ gulp.task('css', buildCss);
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch(['bower.json', '.bowerrc'], ['bower']);
|
||||
watch([ 'src/web/js/*.js' ], buildJs);
|
||||
watch([ 'src/web/css/*.css' ], buildCss);
|
||||
watch([ 'frontend/old_frontend/js/*.js' ], buildJs);
|
||||
watch([ 'frontend/old_frontend/css/*.css' ], buildCss);
|
||||
});
|
||||
|
||||
gulp.task('build-development', ['bower', 'js', 'css']);
|
||||
|
||||
+3
-10
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Jungle Horse</title>
|
||||
<link rel="stylesheet" href="/assets/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/assets/output/style.css" type="text/css">
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<!-- Variables -->
|
||||
@@ -99,15 +99,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
<audio id="sound"></audio>
|
||||
<script src="/assets/libraries.js"/></script>
|
||||
<script src="/assets/output/libraries.js"/></script>
|
||||
<script src="/assets/output/waveform.built.js"/></script>
|
||||
<script type="text/javascript">
|
||||
/*window.waveform_player = new WaveformPlayer(
|
||||
'#waveform',
|
||||
'#f00',
|
||||
'#0ff'
|
||||
);*/
|
||||
</script>
|
||||
<script src="/assets/script.js"/></script>
|
||||
<script src="/assets/output/script.js"/></script>
|
||||
</body>
|
||||
</html>
|
||||
+3
-10
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Jungle Horse</title>
|
||||
<link rel="stylesheet" href="/assets/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/assets/output/style.css" type="text/css">
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<!-- Variables -->
|
||||
@@ -99,15 +99,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
<audio id="sound"></audio>
|
||||
<script src="/assets/libraries.js"/></script>
|
||||
<script src="/assets/output/libraries.js"/></script>
|
||||
<script src="/assets/output/waveform.built.js"/></script>
|
||||
<script type="text/javascript">
|
||||
/*window.waveform_player = new WaveformPlayer(
|
||||
'#waveform',
|
||||
'#f00',
|
||||
'#0ff'
|
||||
);*/
|
||||
</script>
|
||||
<script src="/assets/script.js"/></script>
|
||||
<script src="/assets/output/script.js"/></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user