Comparing version 2.6.2 to 2.6.3
@@ -38,8 +38,18 @@ /* | ||
if (!exists) { | ||
// execSync( | ||
// `npm create vite ${name} -- --template react-ts && code ${name} && cd ${name} && npm i && ${ | ||
// process.platform === ('darwin' || 'linux') | ||
// ? `open http://localhost:3000/` | ||
// : `start http://localhost:3000/` | ||
// } && npm run dev`, | ||
// { | ||
// stdio: 'inherit', | ||
// } | ||
// ); | ||
execSync( | ||
`npm create vite ${name} -- --template react-ts && code ${name} && cd ${name} && npm i && ${ | ||
`npx degit 07-media-sor/07_vite_template ${name} && code ${name} && cd ${name} && npm i && ${ | ||
process.platform === ('darwin' || 'linux') | ||
? `open http://localhost:3000/` | ||
: `start http://localhost:3000/` | ||
} && npm run dev`, | ||
} && npm run start`, | ||
{ | ||
@@ -46,0 +56,0 @@ stdio: 'inherit', |
{ | ||
"name": "07-cli", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "A command line tool for 07 organization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,2 +35,10 @@ ## A Command Line Tool for 07 organization | ||
**UMB** | ||
Arguments: | ||
```properties | ||
-n --name <output> Specify a project name (e.g. nav-kalkulator) | ||
-h, --help display help for command | ||
``` | ||
**GH** | ||
@@ -43,1 +51,25 @@ Arguments: | ||
``` | ||
**UMB post-install setup** | ||
On install the umbraco instance runs automagically. | ||
To start the project from CLI: | ||
- cd into project folder | ||
- run the command "dotnet run" | ||
The terminal output will tell you the URL to access the site. | ||
Some extra setup is required to get up and running with the UMB template | ||
* Install Umbraco backoffice and set up database | ||
* In backoffice settings > Document types: Import "SEO.udt" and "Website.udt" document types (NB the order of import matters! Import SEO first and then Website) | ||
These files are found in the "ASSETS" folder in the umbraco project folder | ||
* In backoffice settings > Templates: Create a template called "Website". The content of this template should be auto generated based on the Website document type. | ||
* In backoffice settings > Document types: Select the Website template and set it as default | ||
* In backoffice content: Create a Root site and select Website as template | ||
* Save and publish the root site and you should be good to go | ||
Next step is probably to add the project to git | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69334
727
74