@ryze-digital/create-website
v1.0.0-beta.2
Published
Sets up build tools and default folder structure
Downloads
8
Readme
RYZE Digital Project Starter Kit
Usage
Open the folder in which you want to set up a new project. In Ecoma projects (for example) this is
/public/project/frontend
. The folder needs to be empty. Run the following script and replace
@namespace/project-name
with the name of your project.
npm init @ryze-digital/website@latest @namespace/project-name
Options
Change output directory
By default, the output directory is /build
. If build files need to be located under a different path, you can add a
third parameter to the call from above:
npm init @ryze-digital/website@latest @namespace/project-name ../../public/dist
The path has to be relative to the folder in which you run the command.
Toubleshooting
If you use a path outside the folder in which you run the command, it can happen that the pre-production
script throws
the following error:
Warning: Cannot delete files outside the current working directory. Use --force to continue.
To fix this, you can set deleteOriginals
to false
for the cacheBust
task inside Gruntfile.js
. Please note that
in this case the unhashed build files will remain in the output directory.
Loglevel
Loglevel can be changed to see more detail output during installation. By default, loglevel is silent
. Allowed values
are error
, warn
, info
, verbose
and silly
.
npm init @ryze-digital/website@latest @namespace/project-name --loglevel error