create-yaspp v1.1.3
create-yaspp
Package for creating a Yaspp
web site
To use this package, you do not need to install it. Simply cd
to the folder in which you want to create your yaspp
project
(preferably an empty one) and run the command npx create-yaspp
. You can also specify a different project folder. Note that the script will not proceed if the project contains a file/folder named like an asset that create-yaspp
needs to copy.
$ npx create-yaspp [...arguments]
Command line options
Runtime Options
--dryrun
: Dry run. Print all the steps.--auto
: If the configuration process involves interaction with the user, thencreate-yaspp
will use the values provided in the command line without prompting the user for input.--target <path/to/target/folder>
: absolute or relative path of the folder in which the project will be created. Defaults to current working directory. The target directory should not contain any file or folder named like an asset that the script needs to create.--no-install
: Don't make the sample site publish-ready by running the initialization scripts in it. You can perform this step yourself by runningyarn init-clean
oryarn init-site
in the created project folder.
Project Configuration Options
--branch <branch name>
: If provided, clone this branch of theyaspp
library rather thanmaster
.
Install procedure
The rest of this document uses the yarn
command. You can replace it with your favorite package runner, e.g. npm run ...
. However, the tool
itself requires yarn
to run properly.
After the command line options are validated, create-yaspp
performs the following actions:
1. Create a sample site under the project folder, including sample data and valid configuration files.
2. if no-install
was not specified, run yarn init-clean
in the project folder. This will clone the Yaspp
repository into the yaspp
folder and setup the yaspp
platform by running the required scripts there.
Post install
See the Yaspp project
for details about building and publishing a yaspp
site. If the installation completed successfully, you should be able to test your site by running yarn dev
in the project root or in the yaspp
folder.