Quickly initialize a web application powered with Stylable as its styling solution.
This CLI creates a simple setup that showcases basic Stylable integration.
npx create-stylable-app <project-name>
OR
npm init stylable-app <project-name>
OR
yarn create stylable-app <project-name>
create-stylable-app
can generate a project from a set of different templates:
ts-react-webpack
(default) - generate a project based on React, TypeScript and webpackts-react-rollup
- generate a project based on React, TypeScript and Rollup
Option | Alias | Description | Default Value |
---|---|---|---|
--template |
-t |
project template to use (ts-react-webpack or ts-react-rollup ) |
ts-react-webpack |
--verboseNpm |
print verbose npm log | false |
|
--help |
-h |
Show this help | |
--version |
-v |
show create-stylable-app version number |
Copyright (c) 2020 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a MIT license.