Comparing version 1.3.7 to 1.3.8
13
index.js
@@ -14,2 +14,3 @@ #!/usr/bin/env node | ||
var pullComponents = require('./tasks/pull-components') | ||
var deleteTemplates = require('./tasks/delete-templates') | ||
var scaffold = require('./tasks/scaffold') | ||
@@ -153,3 +154,3 @@ var opn = require('opn') | ||
} else if (['pull-components', 'push-components', 'scaffold', 'login'].indexOf(subcommand) > -1) { | ||
} else if (['delete-templates', 'pull-components', 'push-components', 'scaffold', 'login'].indexOf(subcommand) > -1) { | ||
@@ -491,2 +492,12 @@ var loginQuestions = [ | ||
break; | ||
case 'delete-templates': | ||
if (!argv.space) { | ||
console.log('Please provide the space id as argument --space=YOUR_SPACE_ID.') | ||
process.exit(0) | ||
} | ||
api.setSpaceId(argv.space) | ||
deleteTemplates(api, argv) | ||
break; | ||
case 'scaffold': | ||
@@ -493,0 +504,0 @@ if (!cliAttribute.length) { |
{ | ||
"name": "storyblok", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "A simple CLI for scaffolding storyblok projects and fieldtypes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,2 +21,4 @@ <p align="center"> | ||
You can also follow our [tutorial for a complete walkthrough](https://www.storyblok.com/tp/quickstart-rendering-service). | ||
## Usage for the quickstart | ||
@@ -42,28 +44,2 @@ ``` | ||
## What it does | ||
We recommend to execute the quickstart command first to learn how easy it is to use Storyblok. | ||
The CLI allows developers to get started with a new Storyblok project by answering 3 questions: | ||
1. How should your Project be named? | ||
2. Select the type of your project (Theme/Boilerplate/Fieldtype) | ||
3. Select your Theme/Boilerplate (skipped for Fieldtypes) | ||
## How will it look like | ||
<img src="https://a.storyblok.com/f/39898/d26d369183/storyblok-cli.gif" alt="How to use the Storyblok cli"> | ||
## Themes | ||
- Creator Theme (Blueprint) [https://github.com/storyblok/creator-theme] | ||
- City Theme [https://github.com/storyblok/city-theme] | ||
- Nexo Theme [https://github.com/storyblok/nexo-theme] | ||
## Boilerplates | ||
- PHP - Silex Boilerplate [https://github.com/storyblok/silex-boilerplate] | ||
- JavaScript - NodeJs Boilerplate [https://github.com/storyblok/nodejs-boilerplate] | ||
- Ruby - Sinatra Boilerplate [https://github.com/storyblok/sinatra-boilerplate] | ||
- Python - Django Boilerplate [https://github.com/storyblok/django-boilerplate] | ||
- JavaScript - VueJs Boilerplate [https://github.com/storyblok/vuejs-boilerplate] | ||
## Fieldtypes Development Environment | ||
- Fieldtype [https://github.com/storyblok/storyblok-fieldtype.git] | ||
## Frequently asked questions | ||
@@ -70,0 +46,0 @@ - **[What is Storyblok?](https://www.storyblok.com/)** |
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
13
728
30770
76