mirror of
https://github.com/fazo96/pbs.git
synced 2025-01-27 14:34:19 +01:00
reintroduced gulp
This commit is contained in:
parent
f04129771b
commit
84baba27d8
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,8 @@
|
||||
bower_components/
|
||||
node_modules/
|
||||
test/
|
||||
lib/
|
||||
*.js
|
||||
!gulpfile.js
|
||||
*.css
|
||||
!src/*.css
|
||||
|
@ -18,6 +18,7 @@
|
||||
"dependencies": {
|
||||
"vis": "~3.11.0",
|
||||
"jquery": "~2.1.3",
|
||||
"moment": "~2.9.0"
|
||||
"moment": "~2.9.0",
|
||||
"bootstrap": "~3.3.4"
|
||||
}
|
||||
}
|
||||
|
25
gulpfile.js
Normal file
25
gulpfile.js
Normal file
@ -0,0 +1,25 @@
|
||||
// Gulp Dependencies
|
||||
var gulp = require('gulp');
|
||||
var gutil = require('gulp-util')
|
||||
var uglify = require('gulp-uglify');
|
||||
var minifyCSS = require('gulp-minify-css');
|
||||
var coffee = require('gulp-coffee')
|
||||
|
||||
gulp.task('css',function(){
|
||||
return gulp.src('src/*.css')
|
||||
.pipe(minifyCSS())
|
||||
.pipe(gulp.dest('.'))
|
||||
})
|
||||
gulp.task('coffee',function(){
|
||||
return gulp.src('src/*.coffee')
|
||||
.pipe(coffee({ bare: true }))
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest('.'))
|
||||
})
|
||||
|
||||
gulp.task('default',['css','coffee'])
|
||||
|
||||
gulp.task('watch',function(){
|
||||
gulp.watch('src/*.css',['css'])
|
||||
gulp.watch('src/*.coffee',['coffee'])
|
||||
})
|
@ -3,12 +3,13 @@
|
||||
<head>
|
||||
<title>Pert</title>
|
||||
<link rel="stylesheet" href="bower_components/vis/dist/vis.min.css">
|
||||
<link rel="stylesheet" href="bower_components/vis/dist/vis.min.css">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="ta"></textarea>
|
||||
<button id="save">Save</button>
|
||||
<a href="pert.html">view pert</a>
|
||||
<textarea id="ta" class="form-control"></textarea>
|
||||
<button id="save" class="btn btn-primary">Save</button>
|
||||
<a href="pert.html" class="btn btn-success">view pert</a>
|
||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user