Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
90da6575
Commit
90da6575
authored
7 years ago
by
Mark Otto
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
initial pass at a build bash script for myself
parent
cd8fd1d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/ship.sh
+44
-0
build/ship.sh
with
44 additions
and
0 deletions
+44
-0
build/ship.sh
0 → 100755
+
44
-
0
View file @
90da6575
#!/usr/bin/env bash
#
# Before using, clone second version of Bootstrap into `bs-docs` folder and switch to `gh-pages` branch there.
red
=
$'
\e
[1;31m'
green
=
$'
\e
[1;32m'
blue
=
$'
\e
[1;34m'
magenta
=
$'
\e
[1;35m'
cyan
=
$'
\e
[1;36m'
end
=
$'
\e
[0m'
# Get current version from package.json
current_version
=
$(
node
-p
"require('./package.json').version"
)
if
[[
$#
-lt
1
]]
;
then
printf
"
\n
${
red
}
⚠️ Shipping aborted. You must specify a version.
\n
${
end
}
"
exit
1
fi
# Pulling latest changes, just to be sure
printf
"
\n
${
magenta
}
🚧 Pulling latest changes...
\n\n
${
end
}
"
git pull origin v4-dev
# Update version number
printf
"
\n
${
magenta
}
🚧 Updating version number...
\n
${
end
}
"
npm run release-version
$current_version
$1
# Compile latest CSS and JS
printf
"
\n
${
magenta
}
🚧 Compile latest CSS and JS...
\n
${
end
}
"
npm run dist
# Compress the dist files
printf
"
\n
${
magenta
}
🚧 Compressing the dist files...
\n
${
end
}
"
npm run release-zip
# Compile the docs
printf
"
\n
${
magenta
}
🚧 Compile hosted documentation...
\n
${
end
}
"
npm run docs-github
# Copy the contents of the built docs site over to `bs-docs` repo
printf
"
\n
${
magenta
}
🚧 Copy it over...
\n
${
end
}
"
cp
-rf
_gh_pages/. ../alt-repo/
printf
"
\n
${
green
}
🏁 Success,
$1
is ready to review and publish.
\n
${
end
}
"
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment