0.0.1-alpha-2 • Published 8 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 restoreto restore all dependencies of the docset to the latest version. - Run
ops buildto 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 installornpm ifor shortnpm run build
To test the project:
npm run testornpm tfor shortyou don't need to run build before running test
To test the impact of your changes against an existing content repository
npm run impactand see the git diffs in../ops-cli-testfoldernpm run impact -- <sccmdocs-pr>to see the impact on a specific repo
To publish the project:
npm run publishand see the build artifacts inbinfoldernpm publishto publish the artifacts tonpmjs.org