Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
json-schema-faker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
json-schema-faker
Commits
2d9a5305
Commit
2d9a5305
authored
8 years ago
by
Alvaro Cabrera
Browse files
Options
Downloads
Patches
Plain Diff
Use globals for version bump
parent
6599e1f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/VERSION
+14
-0
14 additions, 0 deletions
build/VERSION
package.json
+2
-2
2 additions, 2 deletions
package.json
ts/index.ts
+3
-1
3 additions, 1 deletion
ts/index.ts
with
19 additions
and
3 deletions
build/VERSION
0 → 100755
+
14
−
0
View file @
2d9a5305
#!/bin/sh
VERSION
=
"
$(
cat
package.json |
grep
'"version":'
)
"
VERSION
=
${
VERSION
##*
:
}
VERSION
=
${
VERSION
%,*
}
VERSION
=
$(
echo
$VERSION
|
sed
's/"//g'
)
SEARCH
=
'("version":[[:space:]]*").+(")'
REPLACE
=
"
\1
${
VERSION
}
\2
"
sed
-i
".tmp"
-E
"s/
${
SEARCH
}
/
${
REPLACE
}
/g"
bower.json
rm
*
.tmp
echo
$VERSION
This diff is collapsed.
Click to expand it.
package.json
+
2
−
2
View file @
2d9a5305
...
...
@@ -6,8 +6,8 @@
"main"
:
"lib/index.js"
,
"scripts"
:
{
"dist"
:
"yarn build && yarn build:dist"
,
"build"
:
"tarima -qfe dist"
,
"build:dist"
:
"node build/dist.js"
,
"build"
:
"tarima -qfe dist
VERSION=`./build/VERSION`
"
,
"build:dist"
:
"
yarn build &&
node build/dist.js"
,
"test"
:
"yarn test:lint && yarn build && yarn test:unit && yarn test:schema"
,
"test:lint"
:
"tslint ts/**/*.ts"
,
"test:unit"
:
"jasmine-node spec/unit --noStackTrace --captureExceptions"
,
...
...
This diff is collapsed.
Click to expand it.
ts/index.ts
+
3
−
1
View file @
2d9a5305
...
...
@@ -69,6 +69,8 @@ jsf.locate = function(name: string) {
return
container
.
get
(
name
);
};
jsf
.
version
=
'
0.5.0-rc3
'
;
/* global VERSION */
jsf
.
version
=
VERSION
;
export
default
jsf
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment