diff --git a/CHANGELOG.md b/CHANGELOG.md index b7cb891..1c968bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,3 +53,9 @@ Tested in JS and React. Errors in work in React applications are revealed. - Added style builder on homepage. - Fixed documentation. - Added a block describing how to create your own themes. + +### 27.02.2023 - update 0.2.5 + +- Moving an example using a select to a separate repository. +- Fixed bugs. +- Changed structure. diff --git a/README.md b/README.md index 7b9e6c0..5139058 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CG-SELECT -## version ~ 0.2.4 +## version ~ 0.2.5 This component allows you to create a custom select. It offers more flexible customization and use of select. Customization, multi-selection and live search by elements are available. diff --git a/READMERU.md b/READMERU.md index 96a7874..8478ccb 100644 --- a/READMERU.md +++ b/READMERU.md @@ -1,6 +1,6 @@ # CG-SELECT -## version ~ 0.2.4 +## version ~ 0.2.5 Этот компонент позволяет вам создать пользовательский Select. Он предлагает более гибкую настройку и использование select. Доступна кастомизация, multi-selection, живой поиск по элементам и многое другое. diff --git a/docs/index.html b/docs/index.html index 5a8e523..949c04a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -62,7 +62,7 @@ -

version ~ 0.2.4

+

version ~ 0.2.5

This component allows you to create a custom select. It offers more flexible diff --git a/example/example.scss b/example/example.scss deleted file mode 100644 index a4e07c5..0000000 --- a/example/example.scss +++ /dev/null @@ -1,270 +0,0 @@ -@import '/src/main.scss'; -@import './src/constructor/constructor.scss'; - -* { - font-size: 14px; - font-family: Arial, Helvetica, sans-serif; - text-align: justify; -} - -.testClass { - background-color: #8297ff; - color: white; -} - -.listTest { - background-color: #8297ff; - border: 1px solid black; - color: white; -} - -.body-example { - background: #000000c4; -} - -.container { - margin: 0 auto; - width: 900px; - - display: -webkit-box; - display: -ms-flexbox; - display: flex; - - -webkit-box-align: baseline; - -ms-flex-align: baseline; - align-items: baseline; - - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.header { - position: relative; - width: 100%; - border-radius: 5px; - display: flex; - align-items: center; - flex-direction: column; - background-color: #2a2f3b; - margin-bottom: 8px; - - h1 { - font-size: 57px; - color: white; - font-family: 'Times New Roman', Times, serif; - margin: 40px 0 12px 0; - } - - &__logoBox { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - } - - &__logo { - width: 13%; - height: 16%; - border: 1px solid #525252; - border-radius: 50%; - - margin: 22px 0 0 29px; - } - - .navlist { - display: flex; - justify-content: space-around; - margin: 15px 0 30px 0; - padding: 0; - width: 230px; - - li { - display: inline; - list-style: none; - text-decoration: none; - - a { - color: white; - text-decoration: none; - - &:hover { - text-decoration: underline; - } - } - } - } -} - -.content { - margin-top: 15px; - border-radius: 5px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - -ms-border-radius: 5px; - -o-border-radius: 5px; -} - -.example-select { - width: 100%; - background-color: #5c5c5c; - border-radius: 5px; - margin: 15px 0 0 0; - - &_title { - height: 45px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - color: white; - padding: 20px 0 0 40px; - margin: 0 0 30px 0; - background-color: #2a2f3b; - font-size: 20px; - } - - &_submit { - text-align: center; - width: 200px; - height: 35px; - border-radius: 10px; - border: none; - margin-top: 20px; - margin: 20px 15px; - cursor: pointer; - transition: 1s; - -webkit-transition: 1s; - -moz-transition: 1s; - -ms-transition: 1s; - -o-transition: 1s; - - &:hover { - background-color: #d7d7d7; - transition: 1s; - -webkit-transition: 1s; - -moz-transition: 1s; - -ms-transition: 1s; - -o-transition: 1s; - } - } - - .layout-select { - margin: 15px; - } -} - -.row { - display: flex; - justify-content: space-around; -} - -.description-theme { - color: white; - - .col { - width: 54%; - } - - img { - border-radius: 15px; - } - - .createTheme { - display: flex; - flex-direction: column; - } - - h5 { - font-size: 18px; - margin: 0; - } - h6 { - font-size: 17px; - margin: 0; - } - p { - font-size: 16px; - } -} - -code { - display: none; -} - -pre { - background: #1e1e1e; - margin: 15px; - padding: 15px; - color: #88d0f7; - border-radius: 15px; - font-size: 16px; - line-height: 20px; -} - -.code { - &__class, - &__var, - &__string, - &__keyword { - font-size: 16px; - line-height: 20px; - } - &__class { - color: #4ec9b0; - } - - &__var { - color: #34a7ff; - } - - &__string { - color: #ce9178; - } - - &__keyword { - color: #5090ca; - } -} - -.check-code { - text-align: center; - width: 200px; - height: 35px; - cursor: pointer; - border: none; - border-radius: 10px; - margin: 20px 15px; - transition: all 1s; -} - -.active { - display: block; -} - -@media (max-width: 576px) { - .container { - width: 95%; - } - - .header { - margin-top: 15px; - h1 { - font-size: 32px; - } - } - - .example-select_title { - font-size: 14px; - height: 40px; - } -} - -.version { - position: absolute; - color: white; - font-size: 10px; - right: 20px; - bottom: 0px; -} diff --git a/example/index.html b/example/index.html deleted file mode 100644 index 8863a25..0000000 --- a/example/index.html +++ /dev/null @@ -1,530 +0,0 @@ - - - - - - - - - - - - - Cg-Select - - - - -

-
-
-

CG-SELECT

- -
-
- -

v. 0.2.4

-
-
- -
-
-

Default select

-
-
- -
- - - - - -
-              const dropdown = new CGSelect({
-                selector: '.cg-dropdown_one', 
-                placeholder: 'Choose a car', 
-                lable: 'EXAMPLE', 
-                items: [
-                  'BMW',
-                  {
-                    id: '213sade',
-                    title: 'Opel',
-                    value: 1,
-                  },
-                  'Mersedes', 
-                  'MAN',  
-                  'Ferari', 
-                ],
-                styles: {
-                  head: {
-                    width: '830px', 
-                  },
-                  list: {
-                    width: '824px', 
-                  },
-                },
-              });
-            
-
-
-
- -
-

Default select with function nativeSelectMode

- -
-

- *Native select appears on mobile resolution. -

-
- -
- - - -
-              const dropdown = new CGSelect({
-                selector: '.cg-dropdown_one', 
-                placeholder: 'Choose a car', 
-                nativeSelectMode: true,
-                items: [
-                  'BMW',
-                  {
-                    id: '213sade',
-                    title: 'Opel',
-                    value: 1,
-                  },
-                  'Mersedes', 
-                  'MAN',  
-                  'Ferari', 
-                ],
-                styles: {
-                  head: {
-                    width: '830px', 
-                  },
-                  list: {
-                    width: '824px', 
-                  },
-                },
-              });
-            
-
-
-
- -
-

Default select with function listDisplayMode

- -
-

- *When using this method, the selection sheet appears as a modal window. -

-
- -
- - - - -
-              const dropdown = new CGSelect({
-                selector: '.cg-dropdown_listDisplayMode', 
-                placeholder: 'Choose a car', 
-                listDisplayMode: true,
-                items: [
-                  'BMW',
-                  {
-                    id: '213sade',
-                    title: 'Opel',
-                    value: 1,
-                  },
-                  'Mersedes', 
-                  'MAN',  
-                  'Ferari', 
-                ],
-                styles: {
-                  head: {
-                    width: '830px', 
-                  },
-                  list: {
-                    width: '824px', 
-                  },
-                },
-              });
-            
-
-
-
- -
-

Select with data from URL

-
- -
- - - -
-            const dropdown = new CGSelect({
-              selector: '.cg-dropdown_three', 
-              placeholder: 'URL', 
-              url: 'https://jsonplaceholder.typicode.com/users',            
-              searchMode: true,
-              darkTheme: false,
-              language: 'ru',
-              styles: {
-                head: {
-                  width: '830px', 
-                },
-                list: {
-                  width: '824px', 
-                },
-              },
-            });
-          
-
-
- -
-

Setting up and adding a theme

- -
-
-
-
Default theme:
-

- To change the theme of the select, you need to specify this parameter in the select - settings. The default theme is the classic theme, you can choose a white or dark - theme. -

- -
-                  const dropdown = new CGSelect({
-                    selector: '.cg-dropdown_one', 
-                    placeholder: 'Choose a car', 
-                    lable: 'EXAMPLE', 
-                    items: [
-                      ...
-                    ],
-                    theme:  'dark / white'
-                  });
-                
-
-
- -
-
Create custom theme:
-
-

- To create your own theme, you need to create an object with the following fields. - In these fields you need to insert the previously created css class. After - creating the object, just pass it to the select settings. -

- -
-            interface CustomTheme {
-              name: 'string', 
-              styles: {
-                head?:  'string', 
-                list?: 'testClass', ,
-                placeholder?: 'string', ,
-                caret?: 'string', ,
-                search?: 'string', ,
-                chips?: 'string', ,
-                lable?: 'string', ,
-              },
-            });
-                  
-
-
-
-
- -
Example:
- -
-
For JS
-
For TS
-
- -
- -
-        const newTheme = {
-          name: 'test', 
-          styles: {
-            head:  'headTestClass', 
-            list: 'listTestClass', ,
-            placeholder: 'placeholderTestClass', ,
-            caret: 'caretTestClass', ,
-            search: 'searchTestClass', ,
-            chips: 'chipsTestClass', ,
-            lable: 'lableTestClass', ,
-          },
-        });
-              
-
- - -
-        const newCustomTheme: CustomTheme  = {
-          name: 'test', 
-          styles: {
-            head:  'headTestClass', 
-            list: 'listTestClass', ,
-            placeholder: 'placeholderTestClass', ,
-            caret: 'caretTestClass', ,
-            search: 'searchTestClass', ,
-            chips: 'chipsTestClass', ,
-            lable: 'lableTestClass', ,
-          },
-        });
-              
-
-
-
CSS
- -
-              .headTestClass {
-                background-color: #8297ff;
-                color: white;
-              }
-
-              .listTestClass {
-                background-color: #8297ff;
-                border: 1px solid black;
-                color: white;
-              }
-            
-
- -
Example custom theme in CG-Select
-

- See an example of a select on - codesandbox.io -

-
- -
-
-
- -
-

Select constructor

-
-
-
Select Style Builder:
-

- This is a constructor for styling a select online without downloading. For it to work, - you need to: -

    -
  1. Select a part of the select for customization.
  2. -
  3. Enter styles in the text field in the form "color: red;".
  4. -
  5. Click on the render button.
  6. -
-

-
-
-
- - - -
- -
- -
-
- -
-
- -
-

Categories

- -
- -
- - - -
-            const dropdown = new CGSelect({
-              selector: '.cg-dropdown_categories', 
-              placeholder: 'Выберите регион', 
-              searchMode: true,
-              items: [
-                {
-                  category: 'Russia',
-                  categoryItems: [
-                    {
-                      id: '28qwds',
-                      title: 'Москва',
-                      value: 0,
-                    },
-                    'Ростов-на-дону',
-                    'Саратов',
-                    'Волгоград',
-                    'Донецк',
-                  ],
-                },
-                {
-                  category: 'USA',
-                  categoryItems: [
-                    'Alabama', 
-                    'Texas', 
-                    'Colorado', 
-                    'Klirens', 
-                    'Los-Angeles'],
-                },
-                {
-                  category: 'France',
-                  categoryItems: ['Paris'],
-                },
-              ],
-              styles: {
-                head: {
-                  width: '830px', 
-                },
-                list: {
-                  width: '824px', 
-                },
-                placeholder: {
-                  maxWidth: '500px ',
-                },
-              },
-              multiselect: true,
-              multiselectTag: true,
-            });
-          
-
-
- -
-

Button control

-
- - -
- -
- -
- - - - -
-            const dropdown = new CGSelect({
-              selector: '.cg-dropdown_usedBtn', 
-              placeholder: 'Choose a car', 
-              searchMode: true,
-              items: [
-                  'BMW',
-                  {
-                    id: '213sade',
-                    title: 'Opel',
-                    value: 1,
-                  },
-                  'Mersedes', 
-                  'MAN',  
-                  'max', 
-              ],
-              styles: {
-                head: {
-                  width:  '830px',
-                  color:  'black',
-                  backgroundColor:  'rgb(176 223 167)',
-                },
-                list: {
-                  width:  '824px',
-                  color:  'black',
-                  backgroundColor:  'rgb(176 223 167)',
-                },
-                caret: {
-                  borderTop:  '6px solid black',
-                },
-                search: {
-                  backgroundColor:  '#d7ffff',
-                  borderRadius:  '5px',
-                  borderBottom:  'none',
-                  width:  '95%',
-                  color:  'black',
-                },
-              },
-              multiselect: true,
-            });
-          
-
-
- -
-

Function disabled

- - - - -
- -
- - - -
-            const dropdown = new CGSelect({
-              selector: '.cg-dropdown_checkboxDisable', 
-              placeholder: 'Choose a car', 
-              searchMode: true,
-              items: [
-                'BMW',
-                {
-                  id: '213sade',
-                  title: 'Opel',
-                  value: 1,
-                },
-                'Mersedes', 
-                'MAN',  
-                'Ferari', 
-              ],
-              styles: {
-                head: {
-                  width: '830px', 
-                },
-                list: {
-                  width: '824px', 
-                },
-                placeholder: {
-                  maxWidth: '500px ',
-                },
-              },
-              multiselect: true,
-            });
-          
-
-
-
- - - diff --git a/example/index.js b/example/index.js deleted file mode 100644 index 7ace743..0000000 --- a/example/index.js +++ /dev/null @@ -1,265 +0,0 @@ -import { CGSelect } from '../src/cg-select'; -import { newCustomTheme } from './src/themeTest'; - -import './src/example'; -import './src/constructor/constructor'; - -// ------------------------------Обычный селект-------------------- -const dropdown = new CGSelect({ - selector: '.cg-dropdown_one', - placeholder: 'Choose a car', - label: 'EXAMPLE', - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'Ferari', - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - }, -}); - -// dropdown.on('clear', function (e) { -// console.log(`this state: ${e}`); -// }); - -const droptheme = new CGSelect({ - selector: '.cg-dropdown_theme', - placeholder: 'Choose a car', - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'Ferari', - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - }, - theme: newCustomTheme, -}); -// ------------------------------NativeSelect----------------------- -const dropdownNativeSelect = new CGSelect({ - selector: '.cg-dropdown_selectNative', - placeholder: 'Choose a car', - nativeSelectMode: true, - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'Ferari', - 'Kamaz', - 'Ural', - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - }, - theme: 'dark', -}); - -// ------------------------------listDisplayMode-------------------- -const dropdownlistDisplayMode = new CGSelect({ - selector: '.cg-dropdown_listDisplayMode', - placeholder: 'Choose a car', - listDisplayMode: true, - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'Ferari', - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - }, -}); - -// --------------------------------Категории-------------------------- -const dropdown4 = new CGSelect({ - selector: '.cg-dropdown_categories', - placeholder: 'Choose region', - searchMode: true, - items: [ - { - category: 'Russia', - categoryItems: [ - { - id: '28qwds', - title: 'Москва', - value: 0, - }, - , - 'Ростов-на-дону', - 'Саратов', - 'Волгоград', - 'Донецк', - ], - }, - { - category: 'USA', - categoryItems: ['Alabama', 'Texas', 'Colorado', 'Klirens', 'Los-Angeles'], - }, - { - category: 'France', - categoryItems: ['Paris'], - }, - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - placeholder: { - maxWidth: '500px ', - }, - }, - multiselect: true, - multiselectTag: true, -}); - -//----------------управление с помощью кнопок---------------------------------- -const dropdownBtn = new CGSelect({ - selector: '.cg-dropdown_usedBtn', - placeholder: 'Choose a car', - searchMode: true, - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'max', - ], - styles: { - head: { - width: '830px', - color: 'black', - backgroundColor: 'rgb(176 223 167)', - }, - list: { - width: '824px', - color: 'black', - backgroundColor: 'rgb(176 223 167)', - }, - caret: { - borderTop: '6px solid black', - }, - search: { - backgroundColor: '#d7ffff', - borderRadius: '5px', - borderBottom: 'none', - width: '95%', - color: 'black', - }, - }, - multiselect: true, -}); - -const buttonOpen = document.querySelector('.button__open'); -const buttonClose = document.querySelector('.button__close'); - -dropdownBtn.buttonControl(buttonOpen, 'open'); -dropdownBtn.buttonControl(buttonClose, 'close'); - -//-------------------------Функция Disabled---------------------------------- -const dropdownDisabled = new CGSelect({ - selector: '.cg-dropdown_checkboxDisable', - placeholder: 'Choose a car', - searchMode: true, - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'max', - ], - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - placeholder: { - maxWidth: '500px ', - }, - }, - multiselect: true, -}); -dropdownDisabled.disabled(true); -let chbox = document.getElementById('checkboxDisable'); - -chbox.addEventListener('click', () => { - if (chbox.checked == true) { - dropdownDisabled.disabled(false); - } else { - dropdownDisabled.disabled(true); - } -}); - -// ------------------------------URL-------------------- -const dropdown3 = new CGSelect({ - selector: '.cg-dropdown_three', - placeholder: 'URL', - url: 'https://jsonplaceholder.typicode.com/todos', - searchMode: true, - darkTheme: false, - language: 'ru', - styles: { - head: { - width: '830px', - }, - list: { - width: '824px', - }, - }, - multiselect: true, -}); diff --git a/example/src/constructor/constructor.js b/example/src/constructor/constructor.js deleted file mode 100644 index 4df819e..0000000 --- a/example/src/constructor/constructor.js +++ /dev/null @@ -1,83 +0,0 @@ -import { CGSelect } from '../../../src/cg-select'; - -const body = new CGSelect({ - selector: '.body', - placeholder: 'Select element to style', - items: ['head', 'list', 'placeholder', 'caret', 'search'], -}); - -let head = ''; -let list = ''; -let placeholder = ''; -let caret = ''; -let valueSelect = ''; - -const textarea = document.querySelector('#styles'); -const renderBtn = document.querySelector('.render'); - -body.on('select', (e, value) => { - valueSelect = value; - textarea.value = ''; - textarea.removeAttribute('disabled'); - getValueSelect(valueSelect); -}); - -function getValueSelect(value) { - textarea.onkeyup = function () { - switch (value) { - case 'head': - // ввод стилей - head = textarea.value; - break; - case 'list': - list = textarea.value; - break; - case 'placeholder': - placeholder = textarea.value; - break; - case 'caret': - caret = textarea.value; - break; - case 'search': - search = textarea.value; - break; - - default: - break; - } - }; -} - -renderBtn.addEventListener('click', () => { - const select = new CGSelect({ - selector: '.select', - placeholder: 'Choose a car', - label: 'Exemple select', - items: [ - 'BMW', - { - id: '213sade', - title: 'Opel', - value: 1, - }, - 'Mersedes', - 'MAN', - 'Ferari', - ], - searchMode: true, - multiselect: true, - multiselectTag: true, - }); - - const drop = document.querySelector('.select'); - let headSelect = drop.querySelector('.cg-select'); - let listSelect = drop.querySelector('.list'); - let placeholderSelect = drop.querySelector('.selected'); - let caretSelect = drop.querySelector('.caret'); - let searchSelect = drop.querySelector('.inputSearch'); - headSelect.setAttribute('style', head); - listSelect.setAttribute('style', list); - placeholderSelect.setAttribute('style', placeholder); - caretSelect.setAttribute('style', caret); - searchSelect.setAttribute('style', search); -}); diff --git a/example/src/constructor/constructor.scss b/example/src/constructor/constructor.scss deleted file mode 100644 index 0739c16..0000000 --- a/example/src/constructor/constructor.scss +++ /dev/null @@ -1,16 +0,0 @@ -.textareaStyle { - resize: none; - border-radius: 5px; - margin: 15px; -} - -.constructor { - display: flex; - align-items: center; - flex-direction: column; -} - -.liList { - margin-bottom: 5px; - font-size: 17px; -} diff --git a/example/src/example.js b/example/src/example.js deleted file mode 100644 index 2238b38..0000000 --- a/example/src/example.js +++ /dev/null @@ -1,48 +0,0 @@ -const firstBtn = document.getElementById('first'); -const codeFirst = document.getElementById('codeFirst'); - -const secondBtn = document.getElementById('second'); -const codeSecond = document.getElementById('codeSecond'); - -const thirdBtn = document.getElementById('third'); -const codeThird = document.getElementById('codeThird'); - -const fourthBtn = document.getElementById('fourth'); -const codeFourth = document.getElementById('codeFourth'); - -const fifthBtn = document.getElementById('fifth'); -const codeFifth = document.getElementById('codeFifth'); - -const six = document.getElementById('six'); -const codeSix = document.getElementById('codeSix'); - -const Native = document.getElementById('Native'); -const codeNative = document.getElementById('codeNative'); - -firstBtn.addEventListener('click', () => { - codeFirst.classList.toggle('active'); -}); - -secondBtn.addEventListener('click', () => { - codeSecond.classList.toggle('active'); -}); - -thirdBtn.addEventListener('click', () => { - codeThird.classList.toggle('active'); -}); - -fourthBtn.addEventListener('click', () => { - codeFourth.classList.toggle('active'); -}); - -fifthBtn.addEventListener('click', () => { - codeFifth.classList.toggle('active'); -}); - -six.addEventListener('click', () => { - codeSix.classList.toggle('active'); -}); - -Native.addEventListener('click', () => { - codeNative.classList.toggle('active'); -}); diff --git a/example/src/themeTest.ts b/example/src/themeTest.ts deleted file mode 100644 index ae66df1..0000000 --- a/example/src/themeTest.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { CustomTheme } from 'components/theme/theme.interface'; - -export const newCustomTheme: CustomTheme = { - name: 'test', - styles: { - head: 'testClass', - list: 'listTest', - }, -}; diff --git a/package-lock.json b/package-lock.json index 0807227..b301e96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cg-select", - "version": "0.2.4", + "version": "0.2.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cg-select", - "version": "0.2.4", + "version": "0.2.5", "license": "ISC", "dependencies": { "@parcel/optimizer-css": "^2.8.0", diff --git a/package.json b/package.json index d7e3434..ff44b8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,8 @@ { "name": "cg-select", - "version": "0.2.4", + "version": "0.2.5", + "source": "index.js", + "main": "dist/index.js", "description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling", "author": { "name": "CraftGroup", @@ -8,8 +10,8 @@ }, "homepage": "https://cg-select.itguild.info", "scripts": { - "start": "parcel example/index.html -p 4500 --open ", - "build": "parcel build example/index.js --no-cache", + "watch": "parcel watch", + "build": "parcel build", "deploy": "gh-pages -d dist", "predeploy": "npm run build" },