mirror of
https://github.com/fazo96/pbs.git
synced 2025-01-29 14:54:18 +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/
|
bower_components/
|
||||||
|
node_modules/
|
||||||
test/
|
test/
|
||||||
lib/
|
lib/
|
||||||
*.js
|
*.js
|
||||||
|
!gulpfile.js
|
||||||
|
*.css
|
||||||
|
!src/*.css
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vis": "~3.11.0",
|
"vis": "~3.11.0",
|
||||||
"jquery": "~2.1.3",
|
"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>
|
<head>
|
||||||
<title>Pert</title>
|
<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="bower_components/vis/dist/vis.min.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<textarea id="ta"></textarea>
|
<textarea id="ta" class="form-control"></textarea>
|
||||||
<button id="save">Save</button>
|
<button id="save" class="btn btn-primary">Save</button>
|
||||||
<a href="pert.html">view pert</a>
|
<a href="pert.html" class="btn btn-success">view pert</a>
|
||||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||||
<script src="index.js"></script>
|
<script src="index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user