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
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.
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 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