Work on getting gulp to run
This commit is contained in:
parent
797005c9a5
commit
826638e984
5505
client/dist/all.js
vendored
Normal file
5505
client/dist/all.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15
client/dist/all.min.js
vendored
Normal file
15
client/dist/all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
39
client/gulpfile.js
Normal file
39
client/gulpfile.js
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
var concat = require('gulp-concat');
|
||||||
|
var gulp = require('gulp');
|
||||||
|
var jshint = require('gulp-jshint');
|
||||||
|
var rename = require('gulp-rename');
|
||||||
|
var sourcemaps = require('gulp-sourcemaps');
|
||||||
|
var uglify = require('gulp-uglify');
|
||||||
|
var mainBowerFiles = require('main-bower-files');
|
||||||
|
|
||||||
|
var paths = {
|
||||||
|
js: [
|
||||||
|
'bower_components/underscore/underscore.js',
|
||||||
|
'bower_components/handlebars/handlebars.min.js',
|
||||||
|
'bower_components/closurelibrary/closure/goog/base.js',
|
||||||
|
'bower_components/jquery/dist/jquery.min.js',
|
||||||
|
'bower_components/bootstrap/dist/js/bootstrap.min.js',
|
||||||
|
'bower_components/fabric/dist/fabric.min.js',
|
||||||
|
'bower_components/bootstrap-select/dist/js/bootstrap-select.min.js',
|
||||||
|
'bower_components/tinycolor/tinycolor.js',
|
||||||
|
'js/*.js'
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
gulp.task('lint', function() {
|
||||||
|
return gulp.src('js/*.js')
|
||||||
|
.pipe(jshint())
|
||||||
|
.pipe(jshint.reporter('default'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('scripts', function() {
|
||||||
|
return gulp.src(paths.js)
|
||||||
|
.pipe(concat('all.js'))
|
||||||
|
.pipe(gulp.dest('dist'))
|
||||||
|
.pipe(rename('all.min.js'))
|
||||||
|
.pipe(uglify())
|
||||||
|
.pipe(gulp.dest('dist'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('default', ['scripts']);
|
@ -161,16 +161,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="bower_components/underscore/underscore.js"></script>
|
<!-- <script src="bower_components/underscore/underscore.js"></script> -->
|
||||||
<script src="bower_components/handlebars/handlebars.min.js"></script>
|
<!-- <script src="bower_components/handlebars/handlebars.min.js"></script> -->
|
||||||
<script src="bower_components/jquery/dist/jquery.min.js"></script>
|
<!-- <script src="bower_components/closurelibrary/closure/goog/base.js"></script> -->
|
||||||
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
<!-- <script src="bower_components/jquery/dist/jquery.min.js"></script> -->
|
||||||
<script src="bower_components/fabric/dist/fabric.min.js"></script>
|
<!-- <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> -->
|
||||||
<script src="bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
|
<!-- <script src="bower_components/fabric/dist/fabric.min.js"></script> -->
|
||||||
<script src="bower_components/tinycolor/tinycolor.js"></script>
|
<!-- <script src="bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script> -->
|
||||||
|
<!-- <script src="bower_components/tinycolor/tinycolor.js"></script> -->
|
||||||
|
|
||||||
<script src="js/application.js"></script>
|
<!-- <script src="js/application.js"></script> -->
|
||||||
<script src="js/grapher.js"></script>
|
<!-- <script src="js/grapher.js"></script> -->
|
||||||
|
|
||||||
|
<script src="dist/all.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
20
client/package.json
Normal file
20
client/package.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "hscd_client",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"gulp": "^3.8.8",
|
||||||
|
"gulp-concat": "^2.4.1",
|
||||||
|
"gulp-jshint": "^1.8.4",
|
||||||
|
"gulp-rename": "^1.2.0",
|
||||||
|
"gulp-sourcemaps": "^1.2.2",
|
||||||
|
"gulp-uglify": "^1.0.1",
|
||||||
|
"main-bower-files": "^2.0.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user