This template ships with the main Vue and Storybook configuration files you'll need to get up and running fast.
-
Create the application.
Use degit to get this template.
# Clone the template npx degit chromaui/intro-storybook-vue-template taskbox
-
Install the dependencies.
Navigate into your new site’s directory and install the necessary dependencies.
# Navigate to the directory cd taskbox/ # Install the dependencies yarn
-
Open the source code and start editing!
Open the
taskbox
directory in your code editor of choice and building your first component! -
Browse your stories!
Run
yarn storybook
to see your component's stories athttp://localhost:6006
A quick look at the top-level files and directories included with this template.
.
├── .storybook
├── .vscode
├── .yarn
├── node_modules
├── public
├── src
├── .gitignore
├── index.html
├── LICENSE
├── package.json
├── .editorconfig
├── .prettierrc.json
├── .yarnrc.yml
├── eslint.config.ts
├── yarn.lock
├── README.md
├── tsconfig.json
├── tsconfig.app.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.shims.d.ts
-
.storybook
: This directory contains Storybook's configuration files. -
.vscode
: This directory contains configuration files for Visual Studio Code. -
.yarn
: This directory contains the configuration files for Yarn including the cache and the global packages. -
node_modules
: This directory contains all of the modules of code that your project depends on (npm packages). -
public
: This directory will contain the development and production build of the site. -
src
: This directory will contain all of the code related to what you will see on your application. -
.gitignore
: This file tells git which files it should not track or maintain during the development process of your project. -
.index.html
: This is the HTML page that is served when generating a development or production build. -
LICENSE
: The template is licensed under the MIT licence. -
package.json
: Standard manifest file for Node.js projects, which typically includes project specific metadata (such as the project's name, the author among other information). It's based on this file that npm will know which packages are necessary to the project. -
.editorconfig
: This file contains the configuration for EditorConfig, which helps maintain consistent coding styles between different editors and IDEs. -
.prettierrc.json
: This file contains the configuration for Prettier. -
.yarnrc.yml
: This file contains the configuration for Yarn. -
eslint.config.ts
: This file contains the configuration for ESLint. -
yarn.lock
: This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (Do not change it manually). -
README.md
: A text file containing useful reference information about the project. -
tsconfig.json
: This file is the root TypeScript configuration file that specifies the root files and the compiler options required to compile the project. -
tsconfig.app.json
: This file contains the TypeScript compiler options for the project. -
tsconfig.node.json
: This file contains the TypeScript compiler options required to manage the Node.js environment in the project configuration files. Used to help distinguish between configurations for different parts of the project. -
vite.config.ts
: This is the configuration file for Vite, a build tool that aims to provide a faster and leaner development experience for modern web projects. -
vitest.shims.d.ts
: This file contains TypeScript type definitions and shims that ensure proper type support for Vitest when integrated with Storybook's test addon. It provides necessary global types and resolves compatibility issues between the testing frameworks.
If you encounter an issue with the template, we encourage you to open an issue in this template's repository.
- Read our introductory tutorial at Learn Storybook.
- See our official documentation at Storybook.