Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Adding npm badge, build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmarek committed Apr 22, 2016
1 parent a55a2ba commit b166391
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Pikola.js - Advanced scheduling library
==========

[![Build Status](https://travis-ci.org/mkmarek/Pikola.js.svg?branch=master)](https://travis-ci.org/mkmarek/Pikola.js) [![Coverage Status](https://coveralls.io/repos/github/mkmarek/Pikola.js/badge.svg?branch=master)](https://coveralls.io/github/mkmarek/Pikola.js?branch=master)
[![npm version](https://badge.fury.io/js/Pikola.svg)](https://badge.fury.io/js/Pikola)

This project is under heavy development. New functionality will be added continuously.
**It is not recommended to use it in production scenario just yet.**
Expand Down
15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ gulp.task('lint', function () {
.pipe(eslint.failAfterError());
});

gulp.task('build-prod', ['clean'], function() {
return gulp.src(config.paths.source + config.paths.sourceFilePattern)
.pipe(sourcemaps.init({
loadMaps: true
}))
.pipe(babel({
presets: config.babelPresets
}))
.on('error', onError)
.pipe(sourcemaps.write('.', {
sourceRoot: path.join(__dirname, config.paths.source)
}))
.pipe(gulp.dest(path.join(config.paths.dist)))
});

gulp.task('build-scripts', ['clean', 'lint'], function() {
return gulp.src(config.paths.source + config.paths.sourceFilePattern)
.pipe(sourcemaps.init({
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Pikola",
"version": "0.1.0",
"version": "0.1.1",
"description": "Library for advanced scheduling",
"main": "index.js",
"repository": "https://github.com/mkmarek/Pikola.js.git",
Expand All @@ -9,7 +9,7 @@
"test": "node ./node_modules/gulp/bin/gulp cover",
"start": "gulp watch",
"build": "gulp build-scripts",
"install": "gulp build-scripts"
"postinstall": "gulp build-scripts"
},
"keywords": [
"date",
Expand Down

0 comments on commit b166391

Please sign in to comment.