@uirouter/publish-scripts 2.6.3 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1092 -1048
- package/actions/upgrade/entrypoint.sh +0 -0
- package/actions/upgrade/upgrade.js +0 -0
- package/docgen/clone.sh +0 -0
- package/docgen/docgen.sh +0 -0
- package/docgen/docker_push.sh +0 -0
- package/docgen/prep_docgen.js +0 -0
- package/package.json +2 -2
- package/publish_yalc_package.js +11 -20
- package/show_version.js +0 -0
|
File without changes
|
|
File without changes
|
package/docgen/clone.sh
CHANGED
|
File without changes
|
package/docgen/docgen.sh
CHANGED
|
File without changes
|
package/docgen/docker_push.sh
CHANGED
|
File without changes
|
package/docgen/prep_docgen.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uirouter/publish-scripts",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"description": "Helper scripts for publishing UI-Router projects",
|
|
5
5
|
"main": "x",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"util": "./util.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"check-peer-dependencies": "^4.3.
|
|
32
|
+
"check-peer-dependencies": "^4.3.2",
|
|
33
33
|
"conventional-changelog": "^3.1.24",
|
|
34
34
|
"conventional-changelog-ui-router-core": "^1.4.2",
|
|
35
35
|
"find-parent-dir": "^0.3.1",
|
package/publish_yalc_package.js
CHANGED
|
@@ -28,7 +28,7 @@ function publishYalcPackage(installTargetDir, installSource, flags) {
|
|
|
28
28
|
const installTargetDirTmp = path.join(installTargetDir, ".tmp");
|
|
29
29
|
const installSourceDir = isRemoteSource ? null : path.resolve(installSource);
|
|
30
30
|
|
|
31
|
-
// Create directory and clone git repo
|
|
31
|
+
// Create directory and clone git repo or copy from directory, when no cached repo exists yet
|
|
32
32
|
if (!fs.existsSync(path.join(installTargetDir, '.git'))) {
|
|
33
33
|
if (isRemoteSource) {
|
|
34
34
|
util._exec(`git clone ${installSource} ${installTargetDir}`);
|
|
@@ -41,35 +41,26 @@ function publishYalcPackage(installTargetDir, installSource, flags) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// Update git repo
|
|
44
|
+
// Update the git repo (previously cached, or just created) with changes from the source repo or directory
|
|
45
45
|
if (isRemoteSource) {
|
|
46
|
+
// Update git repo from source and make working copy match exactly
|
|
46
47
|
process.chdir(installTargetDir);
|
|
47
48
|
util._exec('git fetch origin');
|
|
48
49
|
util._exec(`git checkout ${branch}`);
|
|
49
50
|
util._exec(`git reset --hard ${branch}`);
|
|
50
51
|
util._exec('git clean --force -d');
|
|
51
52
|
} else {
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
// Update the cached git repo with the current package contents
|
|
54
|
+
process.chdir(installTargetDir);
|
|
55
|
+
util._exec(`rsync -a --delete `+
|
|
56
|
+
`--exclude='/.git/' `+
|
|
57
|
+
`--exclude='**/.git/' `+
|
|
58
|
+
`--exclude='/node_modules/' `+
|
|
59
|
+
`--exclude='**/node_modules/' `+
|
|
60
|
+
`"${installSourceDir}"/ "${installTargetDir}"/`);
|
|
59
61
|
|
|
60
62
|
// Commit the changes from the current package (if any)
|
|
61
63
|
util._exec('git add . && git diff --staged --quiet || git commit -m "update from source directory"');
|
|
62
|
-
|
|
63
|
-
process.chdir(installTargetDir);
|
|
64
|
-
|
|
65
|
-
// Move the new .git metadata back into the cache dir
|
|
66
|
-
shelljs.rm('-rf', '.git');
|
|
67
|
-
shelljs.mv(path.join('.tmp', '.git'), ".");
|
|
68
|
-
shelljs.rm('-rf', installTargetDirTmp);
|
|
69
|
-
|
|
70
|
-
// Update the cache to match the current package contents
|
|
71
|
-
util._exec('git reset --hard master');
|
|
72
|
-
util._exec('git clean --force -d');
|
|
73
64
|
}
|
|
74
65
|
|
|
75
66
|
// Update dependencies
|
package/show_version.js
CHANGED
|
File without changes
|