This repository has been archived by the owner on Apr 30, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kamil Kisiela
committed
Dec 14, 2015
1 parent
d07acb0
commit 32fcb8b
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
const gulp = require('gulp') | |||
const replace = require('gulp-replace') | |||
|
|||
// bump npm package version into package.js | |||
gulp.task('meteor', function() { | |||
const pkg = require('./package.json') | |||
const versionRegex = /(version\:\s*\')([^\']+)\'/gi | |||
|
|||
return gulp.src('package.js') | |||
.pipe(replace(versionRegex, '$1' + pkg.version + "'")) | |||
.pipe(gulp.dest('./')) | |||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
/* global packageFix:true Package:false */ | |||
// package metadata file for AtmosphereJS | |||
|
|||
try { | |||
packageFix = Package | |||
|
|||
packageFix.describe({ | |||
name: 'formly:angular-formly', | |||
summary: 'angular-formly (official): forms for AngularJS', | |||
version: '0.0.0-semantically-released.0', | |||
git: 'https://github.com/formly-js/angular-formly.git', | |||
}) | |||
|
|||
packageFix.onUse((api) => { | |||
api.versionsFrom(['METEOR@1.0']) | |||
api.use('wieldo:api-check@7.5.5') | |||
api.addFiles('dist/formly.js', 'client') | |||
}) | |||
|
|||
} catch (e) { | |||
// little workaround... | |||
// ghooks compiles this file and throws ReferenceError because | |||
// Package is a global variable available only in Meteor environment | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters