This repository was archived by the owner on Apr 30, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ const gulp = require ( 'gulp' )
2
+ const replace = require ( 'gulp-replace' )
3
+
4
+ // bump npm package version into package.js
5
+ gulp . task ( 'meteor' , function ( ) {
6
+ const pkg = require ( './package.json' )
7
+ const versionRegex = / ( v e r s i o n \: \s * \' ) ( [ ^ \' ] + ) \' / gi
8
+
9
+ return gulp . src ( 'package.js' )
10
+ . pipe ( replace ( versionRegex , '$1' + pkg . version + "'" ) )
11
+ . pipe ( gulp . dest ( './' ) )
12
+ } )
Original file line number Diff line number Diff line change
1
+ /* global packageFix:true Package:false */
2
+ // package metadata file for AtmosphereJS
3
+
4
+ try {
5
+ packageFix = Package
6
+
7
+ packageFix . describe ( {
8
+ name : 'formly:angular-formly' ,
9
+ summary : 'angular-formly (official): forms for AngularJS' ,
10
+ version : '0.0.0-semantically-released.0' ,
11
+ git : 'https://github.com/formly-js/angular-formly.git' ,
12
+ } )
13
+
14
+ packageFix . onUse ( ( api ) => {
15
+ api . versionsFrom ( [ '[email protected] ' ] )
16
+ api . use ( 'wieldo:[email protected] ' )
17
+ api . addFiles ( 'dist/formly.js' , 'client' )
18
+ } )
19
+
20
+ } catch ( e ) {
21
+ // little workaround...
22
+ // ghooks compiles this file and throws ReferenceError because
23
+ // Package is a global variable available only in Meteor environment
24
+ }
Original file line number Diff line number Diff line change 38
38
"report-coverage" : " cat ./coverage/lcov.info | node_modules/.bin/codecov" ,
39
39
"commit" : " git-cz" ,
40
40
"publish-latest" :
" publish-latest --user-email [email protected] --user-name formly-bot" ,
41
- "semantic-release" : " semantic-release pre && npm run build && npm publish && npm run publish-latest && semantic-release post"
41
+ "meteor" : " gulp meteor" ,
42
+ "semantic-release" : " semantic-release pre && npm run build && npm run meteor && npm publish && npm run publish-latest && semantic-release post"
42
43
},
43
44
"config" : {
44
45
"ghooks" : {
72
73
"eslint-loader" : " 1.1.0" ,
73
74
"eslint-plugin-mocha" : " 1.0.0" ,
74
75
"ghooks" : " 1.0.0" ,
76
+ "gulp" : " 3.9.0" ,
77
+ "gulp-replace" : " 0.5.4" ,
75
78
"http-server" : " 0.8.5" ,
76
79
"isparta" : " 3.1.0" ,
77
80
"isparta-loader" : " 1.0.0" ,
You can’t perform that action at this time.
0 commit comments