Files
open-wc/packages/create
CircleCI 4c6333b828 chore: release new versions
- @open-wc/building-rollup@0.9.10
 - @open-wc/building-utils@2.5.4
 - @open-wc/building-webpack@2.4.4
 - @open-wc/create@0.18.5
 - es-dev-server@1.10.3
 - @import-maps/generate@0.1.6
 - @import-maps/resolve@0.1.3
 - @open-wc/karma-esm@2.2.9
 - rollup-plugin-index-html@1.4.10
 - @open-wc/semantic-dom-diff@0.13.21
 - @open-wc/testing-helpers@1.1.7
 - @open-wc/testing-karma-bs@1.1.36
 - @open-wc/testing-karma@3.1.11
 - @open-wc/testing@2.2.7
 - @open-wc/webpack-import-meta-loader@0.3.1
 - @open-wc/webpack-index-html-plugin@1.2.13
2019-08-05 16:11:31 +00:00
..
2019-08-05 16:11:31 +00:00
2019-08-05 16:11:31 +00:00

Create Open Web Components

Usage

npm init @open-wc

::: warning npm init requires node 10 & npm 6 or higher :::

This will kickstart a menu guiding you through all available actions.

$ npm init @open-wc
npx: installed 14 in 4.074s
        _.,,,,,,,,,._
     .d''           ``b.       Open Web Components Recommendations
   .p'      Open       `q.
 .d'    Web Components  `b.    Start or upgrade your web component project with
 .d'                     `b.   ease. All our recommendations at your fingertips.
 ::   .................   ::
 `p.                     .q'   See more details at https://open-wc.org/init/
  `p.    open-wc.org    .q'
   `b.     @openWc     .d'
     `q..            ..,'      Note: you can exit any time with Ctrl+C or Esc
        '',,,,,,,,,,''


? What would you like to do today?  - Use arrow-keys. Return to submit.
  Scaffold a new project
   Upgrade an existing project

Our generators are very modular you can pick and choose as you see fit.

Scaffold generators

These generators help you kickstart a new app or web component. They will create a new folder and set up everything you need to get started immediately.

Example usage:

npm init @open-wc
# Select "Scaffold a new project"

Available scaffold generators:

  • Web Component
    This generator scaffolds a starting point for a web component. We recommend using this generator when you want to develop and publish a single web component.

  • Basic Application
    This generator scaffolds a minimal application for quick prototyping, and does not come with any linting, testing, or building configs.

  • Starter App
    This generator scaffolds a new starter application. We recommend using this generator at the start of your web component project.

    More info
    This generator will internally select the following features for you:
    - linting
    - testing
    - building rollup
    

Features

The above generators are the perfect playgrounds to prototype. Add linting, testing, demoing and building whenever the need arises.

Example usage:

cd existing-web-component
npm init @open-wc
# select "Upgrade an existing project" or add features while scaffolding

Available features

  • Linting
    This generator adds a complete linting setup with ESLint, Prettier, Husky and commitlint.

  • Testing
    This generator adds a complete testing setup with Karma, and Karma Browserstack.

  • Demoing
    This generator adds a complete demoing setup with Storybook.

  • Building > Rollup
    This generator adds a complete building setup with rollup.

  • Building > Webpack
    This generator adds a complete building setup with webpack.

  • Automating
    This generator adds a complete automating setup with CircleCi.

<script> export default { mounted() { const editLink = document.querySelector('.edit-link a'); if (editLink) { const url = editLink.href; editLink.href = url.substr(0, url.indexOf('/master/')) + '/master/packages/create/src/README.md'; } } } </script>