-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
12 changed files
with
125 additions
and
17 deletions.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "atlas-ui-framework", | ||
"version": "2.1.4", | ||
"description": "Mendix Atlas UI is the foundation of making beautiful apps with Mendix. For more information about the framework go to https://atlas.mendix.com.", | ||
"main": "", | ||
"scripts": { | ||
"bump:patch": "node ./scripts/bump-patch.js", | ||
"bump:minor": "node ./scripts/bump-minor.js", | ||
"bump:major": "node ./scripts/bump-major.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mendix/Atlas-UI-Framework.git" | ||
}, | ||
"author": "Mendix", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/mendix/Atlas-UI-Framework/issues" | ||
}, | ||
"homepage": "https://github.com/mendix/Atlas-UI-Framework#readme" | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { getVersionFilePaths, readVersionFiles } = require("./lib/readFile.js"); | ||
const { writeVersionFiles } = require("./lib/writeFile.js"); | ||
|
||
(() => { | ||
const paths = getVersionFilePaths(); | ||
const files = readVersionFiles(paths); | ||
const versionNumbers = files.pkg.version.split("."); | ||
const majorNumber = Number(versionNumbers[1]) + 1; | ||
const majorVersion = majorNumber + "." + versionNumbers[1] + "." + versionNumbers[2]; | ||
files.pkg.version = files.manifest.js.version = files.manifest.sass.version = majorVersion; | ||
writeVersionFiles(files, paths); | ||
})(); |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { getVersionFilePaths, readVersionFiles } = require("./lib/readFile.js"); | ||
const { writeVersionFiles } = require("./lib/writeFile.js"); | ||
|
||
(() => { | ||
const paths = getVersionFilePaths(); | ||
const files = readVersionFiles(paths); | ||
const versionNumbers = files.pkg.version.split("."); | ||
const minorNumber = Number(versionNumbers[1]) + 1; | ||
const minorVersion = versionNumbers[0] + "." + minorNumber + "." + versionNumbers[2]; | ||
files.pkg.version = files.manifest.js.version = files.manifest.sass.version = minorVersion; | ||
writeVersionFiles(files, paths); | ||
})(); |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { getVersionFilePaths, readVersionFiles } = require("./lib/readFile.js"); | ||
const { writeVersionFiles } = require("./lib/writeFile.js"); | ||
|
||
(() => { | ||
const paths = getVersionFilePaths(); | ||
const files = readVersionFiles(paths); | ||
const versionNumbers = files.pkg.version.split("."); | ||
const patchedNumber = Number(versionNumbers[2]) + 1; | ||
const patchedVersion = versionNumbers[0] + "." + versionNumbers[1] + "." + patchedNumber; | ||
files.pkg.version = files.manifest.js.version = files.manifest.sass.version = patchedVersion; | ||
writeVersionFiles(files, paths); | ||
})(); |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const path = require("path"); | ||
|
||
module.exports.getVersionFilePaths = () => ({ | ||
pkg: path.join(process.cwd(), "package.json"), | ||
manifest: { | ||
js: path.join(process.cwd(), "styles", "native", "core", "manifest.json"), | ||
sass: path.join(process.cwd(), "styles", "web", "sass", "core", "manifest.json"), | ||
}, | ||
}); | ||
|
||
module.exports.readVersionFiles = paths => ({ | ||
pkg: require(paths.pkg), | ||
manifest: { | ||
js: require(paths.manifest.js), | ||
sass: require(paths.manifest.sass), | ||
}, | ||
}); | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const fs = require("fs"); | ||
|
||
module.exports.writeVersionFiles = (files, paths) => { | ||
fs.writeFileSync(paths.pkg, JSON.stringify(files.pkg, null, 4)); | ||
fs.writeFileSync(paths.manifest.js, JSON.stringify(files.manifest.js, null, 4)); | ||
fs.writeFileSync(paths.manifest.sass, JSON.stringify(files.manifest.sass, null, 4)); | ||
}; |
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
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "Atlas-UI-Framework", | ||
"version": "2.1.3" | ||
} | ||
"version": "2.1.4" | ||
} |
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "Atlas-UI-Framework", | ||
"version": "2.1.3" | ||
} | ||
"version": "2.1.4" | ||
} |
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