Commit 001f446c 001f446c1dbba804a9e7d0bdb57fb46a2d04f0f2 by Vincent Peybernes

Add build

1 parent 7f192298
......@@ -2,5 +2,8 @@
.idea
*.iml
#Node
# Node
node_modules
# Build
dist
\ No newline at end of file
......
/**
* Created by Techniv on 12/01/2017.
*/
const gulp = require('gulp'),
del = require('del');
const distPath = './dist/';
const srcPath = './src/matrix-validation.js';
gulp.task('clean', () => {
return del(distPath);
});
gulp.task('build', () => {
gulp.src(srcPath)
.pipe(gulp.dest(distPath));
});
\ No newline at end of file
......@@ -4,7 +4,9 @@
"description": "Matrix valition for angular form",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node_modules/.bin/gulp build",
"postinstall": "npm run build"
},
"author": {
"name": "Techniv",
......@@ -13,6 +15,8 @@
"license": "MIT",
"devDependencies": {
"gulp": "*",
"del": "*",
"angular": "*"
}
}
......