This repository was archived by the owner on Apr 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ var exec = require('child_process').exec;
2323var eslint = require ( 'gulp-eslint' ) ;
2424var header = require ( 'gulp-header' ) ;
2525var footer = require ( 'gulp-footer' ) ;
26+ var pkg = require ( './package.json' ) ;
2627
2728config . options = minimist ( process . argv . slice ( 2 ) , config . buildDefaultOptions ) ;
2829var paths = {
@@ -181,11 +182,11 @@ function gulpTask(td, config){
181182 }
182183
183184 if ( td . header ) {
184- task = task . pipe ( header ( fs . readFileSync ( td . header , 'utf8' ) ) ) ;
185+ task = task . pipe ( header ( fs . readFileSync ( td . header , 'utf8' ) , { pkg : pkg } ) ) ;
185186 }
186187
187188 if ( td . footer ) {
188- task = task . pipe ( footer ( fs . readFileSync ( td . footer , 'utf8' ) ) ) ;
189+ task = task . pipe ( footer ( fs . readFileSync ( td . footer , 'utf8' ) , { pkg : pkg } ) ) ;
189190 }
190191
191192 task = task . pipe ( gulp . dest ( td . destFolder ) ) ;
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ if (!console.error) console.error = function() {};
2020 /// Collection of JayData services
2121 ///</summary>
2222 $data . __namespace = true ;
23- $data . version = "JayData 1.2.0" ;
24- $data . versionNumber = "1.2.0" ;
23+ // $data.version = "JayData 1.2.0";
24+ // $data.versionNumber = "1.2.0";
2525 $data . root = { } ;
2626 $data . Acorn = acorn ;
2727 //$data.Acorn = $data.Acorn || (typeof acorn == 'object' ? acorn : undefined);
Original file line number Diff line number Diff line change 1+ var $data = require ( 'jaydata/core' ) ;
2+ $data . version = 'JayData <%=pkg.version %>' ;
3+ $data . versionNumber = '<%=pkg.version %>' ;
4+
15 if ( typeof window !== "undefined" ) {
26 window . require = require ;
37 }
You can’t perform that action at this time.
0 commit comments