0.0.18 • Published 2 years ago

@cyberesli/component-template v0.0.18

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

UI-Component-Template

☝️ What is a component-template?

The component-template delivers a practical and structured process of how to deal with your components in your frontend.

⚠️ Alert:

  • Until now this component-template is only compatible with the technologies SvelteKit and Tailwind CSS.
  • It needs to follow the fix structure of the Methodology Atomic Design.
  • After installing component-template you can modify and personalize the interface and given functions specific for your project.

👍 Why use the component-template?

  • Maximaze the reuse of your established components and write less code
  • Shared language and process with components because of fixed rules of the categories for components
  • Provides a modern and manageable frontend to show the visual side of your components
  • Faster component tracking with the implemented search tool in the frontend

🔧 How to install the component-template?

Download the project component-template from the npm Registry > https://www.npmjs.com/package/@cyberesli/component-template.

First Step:

$ npm i @cyberesli/component-template

Second Step:

$ cd node_modules
$ cd @cyberesli
$ cd component-template
$ cd dist

Third Step:

$ npm update

Fourth Step:

$ npm run-script setup

Fifth Step:

go back to root 
$ npm run dev

Last Step:

open the component-template with /template after the domain in the browser e.g. localhost:5173/template

In the lib/component-template folder add further folders with the Atomic Design categories. This listed structure is shown below.

* lib
** component-template
*** atoms
*** molecules
*** organism
*** templates
*** pages

In the atoms and molecules folder you can find example components. You can delete them but follow there example and paste your own components into the fitting category of the Atomic Design Methodology.

Side Note:

  • If u want to show dynamic content or no content then use caption that will fill the component with the Name of the component.

📌 What to consider using the component-template?

  • Each component classified to Atomic Design lies in its own .svelte file.
  • Choose suitable Naming of your components, so you will always know where they stand for.
  • Reuse your components with the import statement
  • Pass props or use each iterations for the usage of dynamic data with your components


create-svelte project

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago