Created
December 16, 2019 02:37
-
-
Save samsulmaarif/b4f65ddd934793f0700d9a74c29fd4bc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## deploy codelabs/tools | |
wget https://github.com/googlecodelabs/tools/releases/download/v2.2.0/claat-linux-amd64 | |
mv claat-linux-amd64 /usr/bin/claat | |
chmod +x /usr/bin/claat | |
su - ubuntu | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash | |
nvm install 12.11.0 | |
git clone --depth=1 https://github.com/googlecodelabs/tools.git | |
cd tools/site | |
npm install | |
npm install -g gulp-cli | |
gulp serve | |
Ctrl+C to stop | |
mkdir codelabs | |
cd codelabs/ | |
mkdir assets | |
vi how-to-write-a-codelab.md | |
claat export how-to-write-a-codelab.md | |
claat export 1E6XMcdTexh5O8JwGy42SY3Ehzi8gOfUGiqTiUX6N04o | |
cd .. | |
gulp serve --codelabs-dir=codelabs | |
to build static file | |
gulp build --codelabs-dir=codelabs | |
atau | |
gulp dist --codelabs-dir=codelabs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment