0.0.1-alpha-2 • Published 7 years ago
ops-cli v0.0.1-alpha-2
ops-cli
: Build modern websites using git, markdown, yaml and other tasteful things. Made with 💗 in Shanghai.
Based on https://github.com/dotnet/docfx/tree/c22d0b7673bbdbf9d9fe375c3d04d6dceb534d82
Introduction
Open a terminal and navigate to a directory with ops.yml
:
- Run
ops restore
to restore all dependencies of the docset to the latest version. - Run
ops build
to build the docset, it will restore dependencies if they are restored.
Build and Test
- Install .NET Core SDK 2.0
- Install Nodejs 8.0.0 or later
To build the project:
npm install
ornpm i
for shortnpm run build
To test the project:
npm run test
ornpm t
for shortyou don't need to run build before running test
To test the impact of your changes against an existing content repository
npm run impact
and see the git diffs in../ops-cli-test
foldernpm run impact -- <sccmdocs-pr>
to see the impact on a specific repo
To publish the project:
npm run publish
and see the build artifacts inbin
foldernpm publish
to publish the artifacts tonpmjs.org