Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit bbf4c50

Browse files
author
Kamil Kisiela
committed
chore: add upport for meteor
1 parent 9197197 commit bbf4c50

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var gulp = require('gulp')
2+
var replace = require('gulp-replace')
3+
4+
// bump npm package version into package.js
5+
gulp.task('meteor', function() {
6+
var pkg = require('./package.json')
7+
var versionRegex = /(version\:\s*\')([^\']+)\'/gi
8+
9+
return gulp.src('package.js')
10+
.pipe(replace(versionRegex, '$1' + pkg.version + "'"))
11+
.pipe(gulp.dest('./'))
12+
})

package.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* global Package:false */
2+
// package metadata file for AtmosphereJS
3+
4+
try {
5+
Package.describe({
6+
name: 'formly:angular-formly-templates-bootstrap',
7+
summary: '(official): Bootstrap templates for angular-formly',
8+
version: '0.0.0-semantically-released.0',
9+
git: 'https://github.com/formly-js/angular-formly-templates-bootstrap.git',
10+
})
11+
12+
Package.onUse(function(api) {
13+
api.versionsFrom(['[email protected]'])
14+
// api-check
15+
api.use('wieldo:[email protected]')
16+
api.imply('wieldo:api-check')
17+
// angular
18+
api.use('angular:[email protected]')
19+
api.imply('angular:angular')
20+
// angular-formly
21+
api.use('formly:[email protected]_3')
22+
api.imply('formly:angular-formly')
23+
// bootstrap
24+
api.use('twbs:[email protected]')
25+
api.imply('twbs:bootstrap')
26+
// export file
27+
api.addFiles('dist/angular-formly-templates-bootstrap.js', 'client')
28+
})
29+
} catch (e) {
30+
//
31+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"test": "echo 'Still need to set these up...'",
2727
"watch": "webpack --watch",
2828
"start": "npm run watch",
29-
"prepublish": "npm run build",
29+
"meteor": "gulp meteor",
30+
"prepublish": "npm run build && npm run meteor",
3031
"postpublish": "publish-latest --user-email [email protected] --user-name formly-bot",
3132
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
3233
},
@@ -44,6 +45,8 @@
4445
"cz-conventional-changelog": "1.1.2",
4546
"deep-extend": "0.4.0",
4647
"ghooks": "0.3.2",
48+
"gulp": "3.9.0",
49+
"gulp-replace": "0.5.4",
4750
"jshint": "2.8.0",
4851
"jshint-loader": "0.8.3",
4952
"kcd-common-tools": "1.0.0-beta.23",

0 commit comments

Comments
 (0)