generator-chisel 1.0.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +2 -4
- package/bin/chisel.js +2 -22
- package/lib/commands/create/creators/app/chisel-starter-theme/.nvmrc +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/.twig-cs-fixer.php +13 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/404.php +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/README.md +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_666eb7f38d2ed.json +59 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_66d5a4ebb41cd.json +148 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/archive.php +38 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-700.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-regular.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons/loader.svg +17 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons/minus.svg +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons/plus.svg +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/images/chisel.png +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/author.php +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Acf.php +191 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AcfBlocks.php +190 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AcfSync.php +230 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Ajax.php +161 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AjaxEnpoints.php +103 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Assets.php +607 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Blocks.php +270 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ChiselCache.php +87 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Components.php +208 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/CustomPostTypes.php +442 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedImage.php +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedPost.php +42 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedProduct.php +41 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedTerm.php +13 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Helpers.php +135 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/RegisterBlocks.php +273 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Sidebars.php +110 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Site.php +123 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Theme.php +277 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Twig.php +241 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Woocommerce.php +183 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/interfaces/Instance.php +31 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/composer.json +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/composer.lock +2180 -0
- package/lib/commands/create/creators/{wp → app}/chisel-starter-theme/footer.php +11 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/functions.php +47 -0
- package/lib/commands/create/creators/{wp → app}/chisel-starter-theme/header.php +3 -1
- package/lib/commands/create/creators/{wp/chisel-starter-theme/index.chisel-tpl.php → app/chisel-starter-theme/index.php} +15 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/languages/.gitkeep +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/lint-staged.config.mjs +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/package.chisel-tpl.json +40 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/page.php +25 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/cta.php +39 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/phpcs.xml +63 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/screenshot.jpg +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/search.php +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/single.php +19 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/accordion-item.js +79 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/block.json +36 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/edit.js +80 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/editor.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/index.js +44 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/save.js +40 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +81 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/view.js +146 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/acf-json/group_66462c70b851f.json +131 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +28 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/script.js +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/slider.twig +26 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/style.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/_index.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/settings/_index.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_breakpoints.scss +70 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +104 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_media.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_px-to-rem.scss +21 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_screen-readers.scss +30 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_theme.scss +57 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_width.scss +14 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/acf-sync.js +26 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +27 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin.js +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/app.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/blog.js +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-attributes.js +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-styles.js +124 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks.js +55 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/components/BlockEditSelector.js +39 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/components/RenderAppender.js +32 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor.js +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/login.js +29 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/load-more.js +93 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/main-nav.js +99 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/slider.js +385 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/utils.js +43 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/acf-sync.scss +64 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/admin.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +62 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-details.scss +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-gallery.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-comments.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +82 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +34 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-post-date.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-post-title.scss +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +65 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-search.scss +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-spacer.scss +33 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +66 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +67 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_content.scss +42 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +34 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_icon.scss +19 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_load-more.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav-toggle.scss +804 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +305 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +34 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +22 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +90 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_select2.scss +45 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +20 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +122 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/editor.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +346 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_html.scss +17 -0
- package/lib/commands/create/creators/app/{template → chisel-starter-theme}/src/styles/elements/_images.scss +2 -12
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_link.scss +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +44 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_table.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/generic/_reset.scss +84 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +156 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/main.scss +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_grid.scss +30 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_layout.scss +62 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/utilities/_sr.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/vendor/.gitkeep +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/vendor/_gravity-forms.scss +140 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/widgets/_nav-menu.scss +20 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/widgets/_widget.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_account.scss +25 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_archive.scss +32 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_btn.scss +49 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_cart.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_checkout.scss +53 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +68 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +60 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product-item.scss +29 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woocommerce.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-edit-selector.scss +47 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-sidebar.scss +30 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-button.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-pagination.scss +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +14 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_editor.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_render-appender.scss +33 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_swiper-sliders.scss +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +481 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/twig_cs.php +14 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/404.twig +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/archive.twig +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/author.twig +11 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/base.twig +43 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/footer.twig +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/header.twig +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/main-nav-item.twig +21 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/main-nav.twig +27 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/page-title.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/pagination.twig +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/post-item.twig +26 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/search-form.twig +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/slider.twig +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +36 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/page-plugin.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/page.twig +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/logo.twig +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/pagination.twig +70 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/the-title.twig +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/search.twig +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/single-password.twig +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +56 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +83 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/content-product.twig +51 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +76 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/webpack.config.js +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +57 -0
- package/lib/commands/create/creators/app/index.js +28 -75
- package/lib/commands/create/creators/app/template/.gitignore.chisel-tpl +2 -2
- package/lib/commands/create/creators/init.js +2 -4
- package/lib/commands/create/creators/wp/index.js +28 -36
- package/lib/commands/create/creators/wp-plugins/index.js +3 -1
- package/lib/commands/create/creators/wp-plugins/plugins.json +0 -1
- package/lib/commands/create/packages-versions.js +3 -9
- package/lib/commands/create/priorities.js +0 -3
- package/lib/utils/sort-package.js +3 -9
- package/package.json +3 -9
- package/lib/commands/create/creators/app/template/.browserslistrc.chisel-tpl +0 -19
- package/lib/commands/create/creators/app/template/.editorconfig +0 -17
- package/lib/commands/create/creators/app/template/.eslintignore +0 -4
- package/lib/commands/create/creators/app/template/.eslintrc.js +0 -25
- package/lib/commands/create/creators/app/template/.prettierignore +0 -4
- package/lib/commands/create/creators/app/template/.stylelintignore +0 -3
- package/lib/commands/create/creators/app/template/babel.config.js +0 -16
- package/lib/commands/create/creators/app/template/chisel.config.chisel-tpl.js +0 -48
- package/lib/commands/create/creators/app/template/package.chisel-tpl.json +0 -43
- package/lib/commands/create/creators/app/template/postcss.config.js +0 -8
- package/lib/commands/create/creators/app/template/prettier.config.js +0 -4
- package/lib/commands/create/creators/app/template/src/scripts/app.chisel-tpl.js +0 -8
- package/lib/commands/create/creators/app/template/src/scripts/modules/greeting.chisel-tpl.js +0 -17
- package/lib/commands/create/creators/app/template/src/styles/components/_btn.scss +0 -60
- package/lib/commands/create/creators/app/template/src/styles/components/_footer.scss +0 -10
- package/lib/commands/create/creators/app/template/src/styles/components/_header.scss +0 -9
- package/lib/commands/create/creators/app/template/src/styles/elements/_blockquote.scss +0 -20
- package/lib/commands/create/creators/app/template/src/styles/elements/_headings.scss +0 -33
- package/lib/commands/create/creators/app/template/src/styles/elements/_html.scss +0 -40
- package/lib/commands/create/creators/app/template/src/styles/elements/_links.scss +0 -12
- package/lib/commands/create/creators/app/template/src/styles/elements/_lists.scss +0 -23
- package/lib/commands/create/creators/app/template/src/styles/elements/_tables.scss +0 -11
- package/lib/commands/create/creators/app/template/src/styles/generic/_box-sizing.scss +0 -20
- package/lib/commands/create/creators/app/template/src/styles/generic/_font-face.scss +0 -8
- package/lib/commands/create/creators/app/template/src/styles/generic/_normalize.scss +0 -5
- package/lib/commands/create/creators/app/template/src/styles/generic/_reset.scss +0 -51
- package/lib/commands/create/creators/app/template/src/styles/generic/_shared.scss +0 -32
- package/lib/commands/create/creators/app/template/src/styles/main.chisel-tpl.scss +0 -13
- package/lib/commands/create/creators/app/template/src/styles/objects/_layout.scss +0 -49
- package/lib/commands/create/creators/app/template/src/styles/objects/_list-bare.scss +0 -13
- package/lib/commands/create/creators/app/template/src/styles/objects/_list-inline.scss +0 -16
- package/lib/commands/create/creators/app/template/src/styles/objects/_media.scss +0 -53
- package/lib/commands/create/creators/app/template/src/styles/objects/_table.scss +0 -26
- package/lib/commands/create/creators/app/template/src/styles/objects/_wrapper.scss +0 -14
- package/lib/commands/create/creators/app/template/src/styles/settings/_global.scss +0 -50
- package/lib/commands/create/creators/app/template/src/styles/tools/_breakpoints.scss +0 -67
- package/lib/commands/create/creators/app/template/src/styles/tools/_clearfix.scss +0 -18
- package/lib/commands/create/creators/app/template/src/styles/tools/_hidden.scss +0 -17
- package/lib/commands/create/creators/app/template/src/styles/utilities/_align.scss +0 -27
- package/lib/commands/create/creators/app/template/src/styles/utilities/_clearfix.scss +0 -11
- package/lib/commands/create/creators/app/template/src/styles/utilities/_hide.scss +0 -28
- package/lib/commands/create/creators/app/template/src/templates/components/footer.chisel-tpl.twig +0 -3
- package/lib/commands/create/creators/app/template/src/templates/components/header.chisel-tpl.twig +0 -3
- package/lib/commands/create/creators/app/template/src/templates/layouts/base.chisel-tpl.twig +0 -42
- package/lib/commands/create/creators/app/template/src/templates/layouts/page.twig +0 -8
- package/lib/commands/create/creators/app/template/stylelint.config.js +0 -3
- package/lib/commands/create/creators/fe/index-styles.css +0 -147
- package/lib/commands/create/creators/fe/index.js +0 -51
- package/lib/commands/create/creators/fe/template/.htmlhintrc +0 -3
- package/lib/commands/create/creators/fe/template-index/index.chisel-tpl.html +0 -77
- package/lib/commands/create/creators/fe/template-index/index.chisel-tpl.html.rej +0 -13
- package/lib/commands/create/creators/wp/chisel-starter-theme/.gitignore.chisel-tpl +0 -1
- package/lib/commands/create/creators/wp/chisel-starter-theme/404.chisel-tpl.php +0 -9
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Extensions/ChiselExtension.php +0 -14
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Extensions/ChiselTwig.php +0 -234
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Extensions/DataType.php +0 -27
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Extensions/Theme.php +0 -21
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Extensions/Twig.php +0 -137
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Helpers.php +0 -29
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Image.php +0 -29
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Media.php +0 -79
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Performance.php +0 -59
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Post.php +0 -82
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Security.php +0 -30
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Settings.php +0 -38
- package/lib/commands/create/creators/wp/chisel-starter-theme/Chisel/Site.php +0 -50
- package/lib/commands/create/creators/wp/chisel-starter-theme/README.chisel-tpl.md +0 -5
- package/lib/commands/create/creators/wp/chisel-starter-theme/archive.chisel-tpl.php +0 -36
- package/lib/commands/create/creators/wp/chisel-starter-theme/author.chisel-tpl.php +0 -16
- package/lib/commands/create/creators/wp/chisel-starter-theme/functions.php +0 -31
- package/lib/commands/create/creators/wp/chisel-starter-theme/page.chisel-tpl.php +0 -23
- package/lib/commands/create/creators/wp/chisel-starter-theme/screenshot.png +0 -0
- package/lib/commands/create/creators/wp/chisel-starter-theme/search.chisel-tpl.php +0 -14
- package/lib/commands/create/creators/wp/chisel-starter-theme/single.chisel-tpl.php +0 -18
- package/lib/commands/create/creators/wp/chisel-starter-theme/style.chisel-tpl.css +0 -5
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/404.twig +0 -5
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/author.twig +0 -7
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/components/comment.twig +0 -7
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/components/main-nav.twig +0 -20
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/components/tease-post.twig +0 -9
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/components/tease.twig +0 -9
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/index.twig +0 -7
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/page-plugin.twig +0 -7
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/page.twig +0 -10
- package/lib/commands/create/creators/wp/chisel-starter-theme/templates/single.twig +0 -31
- package/lib/commands/create/creators/wp/template/src/styles/components/_comment-form.scss +0 -21
- package/lib/commands/create/creators/wp/template/src/styles/components/_comment.scss +0 -17
- package/lib/commands/create/creators/wp/template/src/styles/components/_main-nav.scss +0 -54
- package/lib/commands/create/creators/wp/template/src/styles/components/_post.scss +0 -36
- package/lib/commands/create/creators/wp/template/wp/.gitignore.chisel-tpl +0 -2
- package/lib/commands/create/creators/wp/template/wp-cli.yml +0 -1
- /package/lib/commands/create/creators/app/{template/src → chisel-starter-theme}/assets/fonts/.keep +0 -0
- /package/lib/commands/create/creators/app/{template/src → chisel-starter-theme}/assets/images/.keep +0 -0
- /package/lib/commands/create/creators/app/{template/src/styles/vendor/.keep → chisel-starter-theme/classes/Comments.php} +0 -0
- /package/lib/commands/create/creators/{fe/template/public/.keep → app/chisel-starter-theme/classes/Yoast.php} +0 -0
- /package/lib/commands/create/creators/app/{template → chisel-starter-theme}/src/styles/elements/_hr.scss +0 -0
- /package/lib/commands/create/creators/{wp/template/wp → app/template}/.htaccess +0 -0
- /package/lib/commands/create/creators/{wp/template/wp → app/template}/wp-config.php +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// ==========================================================================
|
|
2
|
-
// #BREAKPOINTS
|
|
3
|
-
// ==========================================================================
|
|
4
|
-
|
|
5
|
-
@function bp-val($name) {
|
|
6
|
-
@if type-of($name) == 'number' {
|
|
7
|
-
@return $name;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
$val: map-get($breakpoints, $name);
|
|
11
|
-
|
|
12
|
-
@if $val == null {
|
|
13
|
-
@error 'Breakpoint #{$name} not found';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@return $val;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@function bp-val-next($name) {
|
|
20
|
-
$breakpoint-names: map_keys($breakpoints);
|
|
21
|
-
$n: index($breakpoint-names, $name);
|
|
22
|
-
|
|
23
|
-
@if $n >= length($breakpoint-names) {
|
|
24
|
-
@error 'Next breakpoint after #{$name} not found';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
$next-key: nth($breakpoint-names, $n + 1);
|
|
28
|
-
@return map-get($breakpoints, $next-key);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin bp($name) {
|
|
32
|
-
$val: bp-val($name);
|
|
33
|
-
|
|
34
|
-
@media (min-width: $val) {
|
|
35
|
-
@content;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@mixin bp-down($name) {
|
|
40
|
-
$val: bp-val($name);
|
|
41
|
-
|
|
42
|
-
@media (max-width: $val - 0.02) {
|
|
43
|
-
@content;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@mixin bp-only($name) {
|
|
48
|
-
@if type-of($name) == 'number' {
|
|
49
|
-
@error '#{$name} should be breakpoint name';
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
$min: bp-val($name);
|
|
53
|
-
$max: bp-val-next($name);
|
|
54
|
-
|
|
55
|
-
@media (min-width: $min) and (max-width: $max - 0.02) {
|
|
56
|
-
@content;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@mixin bp-between($name1, $name2) {
|
|
61
|
-
$min: bp-val($name1);
|
|
62
|
-
$max: bp-val($name2);
|
|
63
|
-
|
|
64
|
-
@media (min-width: $min) and (max-width: $max - 0.02) {
|
|
65
|
-
@content;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// ==========================================================================
|
|
2
|
-
// #CLEARFIX
|
|
3
|
-
// ==========================================================================
|
|
4
|
-
|
|
5
|
-
// Mixin to drop micro clearfix into a selector. Further reading:
|
|
6
|
-
// http://www.cssmojo.com/the-very-latest-clearfix-reloaded/
|
|
7
|
-
//
|
|
8
|
-
// .usage {
|
|
9
|
-
// @include clearfix();
|
|
10
|
-
// }
|
|
11
|
-
|
|
12
|
-
@mixin clearfix() {
|
|
13
|
-
&::after {
|
|
14
|
-
content: '' !important;
|
|
15
|
-
display: block !important;
|
|
16
|
-
clear: both !important;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ==========================================================================
|
|
2
|
-
// #HIDDEN-VISUALLY
|
|
3
|
-
// ==========================================================================
|
|
4
|
-
|
|
5
|
-
// Mixin to quickly apply accessible hiding to elements.
|
|
6
|
-
@mixin hidden-visually() {
|
|
7
|
-
border: 0 !important;
|
|
8
|
-
clip: rect(0 0 0 0) !important;
|
|
9
|
-
clip-path: inset(50%) !important;
|
|
10
|
-
height: 1px !important;
|
|
11
|
-
margin: -1px !important;
|
|
12
|
-
overflow: hidden !important;
|
|
13
|
-
padding: 0 !important;
|
|
14
|
-
position: absolute !important;
|
|
15
|
-
white-space: nowrap !important;
|
|
16
|
-
width: 1px !important;
|
|
17
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
#ALIGN
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
.u-float-left {
|
|
6
|
-
float: left;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.u-float-right {
|
|
10
|
-
float: right;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.u-clear {
|
|
14
|
-
clear: both;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.u-text-center {
|
|
18
|
-
text-align: center;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.u-text-left {
|
|
22
|
-
text-align: left;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.u-text-right {
|
|
26
|
-
text-align: right;
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
#CLEARFIX
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Attach our clearfix mixin to a utility class.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
.u-clearfix {
|
|
10
|
-
@include clearfix();
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
#HIDE
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Hide only visually, but have it available for screen readers:
|
|
7
|
-
* http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
.u-hidden-visually {
|
|
11
|
-
@include hidden-visually();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Hide visually and from screen readers.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
.u-hidden {
|
|
19
|
-
display: none !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.u-hidden\@small {
|
|
23
|
-
display: none;
|
|
24
|
-
|
|
25
|
-
@include bp(medium) {
|
|
26
|
-
display: block;
|
|
27
|
-
}
|
|
28
|
-
}
|
package/lib/commands/create/creators/app/template/src/templates/layouts/base.chisel-tpl.twig
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><% const isWP = app.projectType === 'wp-with-fe' %>
|
|
2
|
-
<html class="no-js" lang="<%= isWP ? '{{ site.language }}' : 'en' %>" prefix="og: http://ogp.me/ns#" data-webpack-public-path="{{ getDistPath() }}">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="<% if (isWP) { %>{{ site.charset }}<% } else { %>utf-8<% }%>" /><% if (app.projectType == 'fe') { %>
|
|
5
|
-
<title>{{ pageName }} - <%= app.name %></title><% } %>
|
|
6
|
-
<link rel="stylesheet" property="stylesheet" href="{{ revisionedPath('styles/main.css') }}" type="text/css">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
-
<script>document.documentElement.classList.remove('no-js');</script>
|
|
9
|
-
{% if isDev() %}
|
|
10
|
-
<script src="{{ revisionedPath('styles/main.js') }}" defer></script>
|
|
11
|
-
{% endif %}
|
|
12
|
-
<script src="{{ revisionedPath('scripts/app.js') }}" defer></script>
|
|
13
|
-
<% if (isWP) { %> <link rel="pingback" href="{{ site.pingback_url }}" />
|
|
14
|
-
|
|
15
|
-
{{ function('wp_head') }}
|
|
16
|
-
<% } %>
|
|
17
|
-
{% block head %}
|
|
18
|
-
{% endblock %}
|
|
19
|
-
</head>
|
|
20
|
-
|
|
21
|
-
<body class="{{ body_class }}">
|
|
22
|
-
<% if (isWP) { %> {{ function('wp_body_open') }}
|
|
23
|
-
<% } %>
|
|
24
|
-
{% block header %}
|
|
25
|
-
{% include 'components/header.twig' %}
|
|
26
|
-
{% endblock %}
|
|
27
|
-
<% if (isWP) { %>
|
|
28
|
-
{% include 'components/main-nav.twig' %}<% } %>
|
|
29
|
-
|
|
30
|
-
<main class="o-wrapper">
|
|
31
|
-
{% block content %}
|
|
32
|
-
Sorry, no content
|
|
33
|
-
{% endblock %}
|
|
34
|
-
</main>
|
|
35
|
-
|
|
36
|
-
{% block footer %}
|
|
37
|
-
{% include 'components/footer.twig' %}
|
|
38
|
-
{% endblock %}
|
|
39
|
-
<% if (isWP) { %>
|
|
40
|
-
{{ function('wp_footer') }}<% } %>
|
|
41
|
-
</body>
|
|
42
|
-
</html>
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/* Project index styling */
|
|
2
|
-
html {
|
|
3
|
-
font-size: 1em;
|
|
4
|
-
line-height: 1.5;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@media (min-width: 768px) {
|
|
8
|
-
html {
|
|
9
|
-
font-size: 1.25em;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@media (min-width: 1024px) {
|
|
14
|
-
html {
|
|
15
|
-
font-size: 1.5em;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
body {
|
|
20
|
-
background: #f2e9da;
|
|
21
|
-
background-image: repeating-linear-gradient(
|
|
22
|
-
180deg,
|
|
23
|
-
transparent,
|
|
24
|
-
transparent 40px,
|
|
25
|
-
#eae3d7 40px,
|
|
26
|
-
#eae3d7 41px
|
|
27
|
-
),
|
|
28
|
-
repeating-linear-gradient(
|
|
29
|
-
90deg,
|
|
30
|
-
transparent,
|
|
31
|
-
transparent 40px,
|
|
32
|
-
#eae3d7 40px,
|
|
33
|
-
#eae3d7 41px
|
|
34
|
-
);
|
|
35
|
-
color: #1b3729;
|
|
36
|
-
font-family: 'Crimson Text', serif;
|
|
37
|
-
padding: 1em;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
a,
|
|
41
|
-
a:link {
|
|
42
|
-
color: #b08b31;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
a:hover {
|
|
46
|
-
color: #ecbb42;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
p {
|
|
50
|
-
margin: 0 0 1em 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Layouts */
|
|
54
|
-
.c-wrapper {
|
|
55
|
-
margin: 0 auto;
|
|
56
|
-
max-width: 860px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.c-section {
|
|
60
|
-
margin-top: 2em;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.c-section__note {
|
|
64
|
-
margin-top: 1em;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.c-section__note:not(:last-child) {
|
|
68
|
-
display: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Header */
|
|
72
|
-
.c-page-title {
|
|
73
|
-
margin: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.c-page-subtitle {
|
|
77
|
-
border-bottom: 7px solid #1b3729;
|
|
78
|
-
display: inline-block;
|
|
79
|
-
font-size: 1.25rem;
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
margin: 0;
|
|
82
|
-
padding-bottom: 0.25em;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.c-intro {
|
|
86
|
-
font-size: 1.25rem;
|
|
87
|
-
margin: 0 1em 1em 0;
|
|
88
|
-
line-height: 1.5;
|
|
89
|
-
font-weight: 600;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Headings */
|
|
93
|
-
.c-heading {
|
|
94
|
-
border-bottom: 5px solid #ecbb42;
|
|
95
|
-
display: inline-block;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
margin: 0 0 0.5em 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* Lists */
|
|
101
|
-
.c-list {
|
|
102
|
-
list-style: none;
|
|
103
|
-
margin: 0;
|
|
104
|
-
padding: 0;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.c-list li {
|
|
108
|
-
margin-bottom: 0.5em;
|
|
109
|
-
padding-left: 1em;
|
|
110
|
-
position: relative;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.c-list li::before {
|
|
114
|
-
background: #ecbb42;
|
|
115
|
-
content: '';
|
|
116
|
-
display: block;
|
|
117
|
-
height: 0.5em;
|
|
118
|
-
left: 0;
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 0.5em;
|
|
121
|
-
width: 0.5em;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* Pages list */
|
|
125
|
-
.c-page {
|
|
126
|
-
text-decoration: none;
|
|
127
|
-
position: relative;
|
|
128
|
-
display: block;
|
|
129
|
-
border-bottom: 1px dashed #ccc;
|
|
130
|
-
padding-bottom: 0.5em;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.c-page__link {
|
|
134
|
-
text-decoration: underline;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.c-page__name {
|
|
138
|
-
color: #1b3729;
|
|
139
|
-
margin-left: 0.5em;
|
|
140
|
-
position: absolute;
|
|
141
|
-
top: 0;
|
|
142
|
-
right: 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.c-page:hover .c-page__name {
|
|
146
|
-
color: #999;
|
|
147
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const { runLocal } = require('chisel-shared-utils');
|
|
2
|
-
|
|
3
|
-
module.exports = (api) => {
|
|
4
|
-
const runLocalCurrent = (args, opts) =>
|
|
5
|
-
runLocal(args, { ...opts, cwd: api.resolve() });
|
|
6
|
-
|
|
7
|
-
api.schedule(api.PRIORITIES.PROMPT, async () => {
|
|
8
|
-
await api.prompt([
|
|
9
|
-
{
|
|
10
|
-
type: 'checkbox',
|
|
11
|
-
name: 'additionalFeatures',
|
|
12
|
-
message: 'Additional features:',
|
|
13
|
-
choices: [
|
|
14
|
-
{
|
|
15
|
-
value: 'serveDist',
|
|
16
|
-
name: "Serve dist directory in dev / don't generate pages index",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
value: 'skipHtmlExtension',
|
|
20
|
-
name:
|
|
21
|
-
"Don't include html extension in links (posts API) & support them in dev",
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
]);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
api.schedule(api.PRIORITIES.COPY, async () => {
|
|
29
|
-
await api.copy();
|
|
30
|
-
|
|
31
|
-
if (!api.creator.data.fe.additionalFeatures.includes('serveDist')) {
|
|
32
|
-
await api.copy({ from: 'template-index' });
|
|
33
|
-
|
|
34
|
-
// lodash escaping seems to be broken, we use custom one
|
|
35
|
-
await api.modifyFile('index.html', (file) => {
|
|
36
|
-
return file.replace(/<\\%/g, '<%');
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
api.schedule(api.PRIORITIES.FE_ADD_INDEX, async () => {
|
|
41
|
-
if (api.creator.cmd.skipFeAddIndex) return;
|
|
42
|
-
if (!api.creator.data.fe.additionalFeatures.includes('serveDist')) return;
|
|
43
|
-
|
|
44
|
-
console.log('Adding index.twig page...');
|
|
45
|
-
await runLocalCurrent(
|
|
46
|
-
['chisel-scripts', 'add-page', 'Index', '--no-build'],
|
|
47
|
-
{ execaOpts: { stdio: 'inherit' } },
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Project Index - <%= app.name %></title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
-
<link
|
|
8
|
-
rel="stylesheet"
|
|
9
|
-
href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700"
|
|
10
|
-
>
|
|
11
|
-
<!-- prettier-ignore -->
|
|
12
|
-
<style>
|
|
13
|
-
html{font-size:1em;line-height:1.5}@media (min-width:768px){html{font-size:1.25em}}@media (min-width:1024px){html{font-size:1.5em}}body{background:#fff;color:#2a1468;font-family:Quicksand,sans-serif;padding:1em}a,a:link{color:#2a1468;text-decoration:underline}a:hover{color:#ff6d54}p{margin:0 0 1em}.c-wrapper{margin:0 auto;max-width:860px}.c-section{margin-top:.5em}.c-section__content{font-size:.75em}.c-section__text a{font-weight:500}.c-section__intro{font-size:1em;font-weight:600}.c-section:last-child{margin-top:2em}.c-section__note{margin-top:1em}.c-section__note:not(:last-child){display:none}.c-page-title{margin:0;font-size:1.5em}.c-page-subtitle{margin:1.5em 0 0;font-size:1em}.c-heading,.c-page-subtitle{border-bottom:3px solid #ff6d54;display:inline-block;font-weight:600}.c-intro{font-size:1em;font-weight:600;margin:0 1em 1.9em 0;line-height:1.5}.c-heading{margin:0 0 .5em;font-size:1.35em}.c-list{list-style:none;margin:0;padding:0}.c-list li{margin-bottom:.5em;padding-left:1em;position:relative}.c-list li::before{background:#ff6d54;content:"";display:block;height:.5em;left:0;position:absolute;top:.5em;width:.5em}.c-page{text-decoration:none;position:relative;display:block;border-bottom:1px dashed #ccc;padding-bottom:.5em}.c-page__link{font-weight:600}.c-page__name{color:#2a1468;margin-left:.5em;position:absolute;top:0;right:0}.c-page:hover .c-page__name{color:#ff6d54}.c-section__code{padding:.9rem .8rem;overflow:auto;display:block;background:#2d2b57;color:#e3dfff;border-radius:10px}
|
|
14
|
-
</style>
|
|
15
|
-
<script type="text/x-chisel-pages-template">
|
|
16
|
-
<ul class="c-list">
|
|
17
|
-
<!-- CHISEL-PAGES -->
|
|
18
|
-
</ul>
|
|
19
|
-
</script>
|
|
20
|
-
<script type="text/x-chisel-page-template">
|
|
21
|
-
<li>
|
|
22
|
-
<a href="dist/<\%= page.path %>" class="c-page">
|
|
23
|
-
<span class="c-page__link"><\%= page.name %></span>
|
|
24
|
-
<span class="c-page__name"><\%= page.slug %>.html</span>
|
|
25
|
-
</a>
|
|
26
|
-
</li>
|
|
27
|
-
</script>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="c-wrapper">
|
|
31
|
-
<h1 class="c-page-title"><%= app.name %></h1>
|
|
32
|
-
<h2 class="c-page-subtitle">Project index</h2>
|
|
33
|
-
|
|
34
|
-
<div class="c-section c-section--first">
|
|
35
|
-
<div class="c-section__content">
|
|
36
|
-
<p class="c-intro">
|
|
37
|
-
This project is powered by
|
|
38
|
-
<a href="https://www.getchisel.co/">Chisel</a>, a development
|
|
39
|
-
framework for creating easy to maintain and fast front-end
|
|
40
|
-
templates.
|
|
41
|
-
</p>
|
|
42
|
-
<h2 class="c-heading">Pages</h2>
|
|
43
|
-
<div class="c-section__note">
|
|
44
|
-
To add more pages run:
|
|
45
|
-
<pre><code class="c-section__code">npm run add-page 'My Awesome Page'</code></pre>
|
|
46
|
-
or
|
|
47
|
-
<pre><code class="c-section__code">yarn add-page 'My Awesome Page'</code></pre>
|
|
48
|
-
</div>
|
|
49
|
-
<!-- CHISEL-PAGES-LIST -->
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<!-- /c-section -->
|
|
53
|
-
|
|
54
|
-
<section class="c-section">
|
|
55
|
-
<div class="c-section__content">
|
|
56
|
-
<h2 class="c-heading">Documentation</h2>
|
|
57
|
-
<p>
|
|
58
|
-
<strong class="c-section__intro">Chisel supports modern web development workflows and helps
|
|
59
|
-
developers to create a code base which is easy to
|
|
60
|
-
maintain.</strong>
|
|
61
|
-
</p>
|
|
62
|
-
<p class="c-section__text">
|
|
63
|
-
For detailed information how Chisel works, please check out
|
|
64
|
-
<a href="https://www.getchisel.co/">www.getchisel.co</a>.
|
|
65
|
-
</p>
|
|
66
|
-
<p class="c-section__text">
|
|
67
|
-
If you are just looking for your deliverable files, they are located
|
|
68
|
-
inside the <code>dist</code> folder. No files found outside of that
|
|
69
|
-
folder should usually be uploaded to your server (e.g. this file).
|
|
70
|
-
</p>
|
|
71
|
-
</div>
|
|
72
|
-
</section>
|
|
73
|
-
<!-- /c-section -->
|
|
74
|
-
</div>
|
|
75
|
-
<!-- /c-wrapper -->
|
|
76
|
-
</body>
|
|
77
|
-
</html>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
diff a/packages/generator-chisel/lib/commands/create/creators/fe/template-index/index.chisel-tpl.html b/packages/generator-chisel/lib/commands/create/creators/fe/template-index/index.chisel-tpl.html (rejected hunks)
|
|
2
|
-
@@ -10,7 +10,11 @@
|
|
3
|
-
>
|
|
4
|
-
<!-- prettier-ignore -->
|
|
5
|
-
<style>
|
|
6
|
-
++<<<<<<< HEAD
|
|
7
|
-
+ html{font-size:1em;line-height:1.5}@media (min-width:768px){html{font-size:1.25em}}@media (min-width:1024px){html{font-size:1.5em}}body{background:#fff;color:#2a1468;font-family:Quicksand,sans-serif;padding:1em}a,a:link{color:#2a1468;text-decoration:underline}a:hover{color:#ff6d54}p{margin:0 0 1em}.c-wrapper{margin:0 auto;max-width:860px}.c-section{margin-top:.5em}.c-section__content{font-size:.75em}.c-section__text a{font-weight:500}.c-section__intro{font-size:1em;font-weight:600}.c-section:last-child{margin-top:2em}.c-section__note{margin-top:1em}.c-section__note:not(:last-child){display:none}.c-page-title{margin:0;font-size:1.5em}.c-page-subtitle{margin:1.5em 0 0;font-size:1em}.c-heading,.c-page-subtitle{border-bottom:3px solid #ff6d54;display:inline-block;font-weight:600}.c-intro{font-size:1em;font-weight:600;margin:0 1em 1.9em 0;line-height:1.5}.c-heading{margin:0 0 .5em;font-size:1.35em}.c-list{list-style:none;margin:0;padding:0}.c-list li{margin-bottom:.5em;padding-left:1em;position:relative}.c-list li:before{background:#ff6d54;content:"";display:block;height:.5em;left:0;position:absolute;top:.5em;width:.5em}.c-page{text-decoration:none;position:relative;display:block;border-bottom:1px dashed #ccc;padding-bottom:.5em}.c-page__link{font-weight:600}.c-page__name{color:#2a1468;margin-left:.5em;position:absolute;top:0;right:0}.c-page:hover .c-page__name{color:#ff6d54}.c-section__code{padding:.9rem .8rem;overflow:auto;display:block;background:#2d2b57;color:#e3dfff;border-radius:10px}
|
|
8
|
-
++=======
|
|
9
|
-
+ html{font-size:1em;line-height:1.5}@media (min-width: 768px){html{font-size:1.25em}}@media (min-width: 1024px){html{font-size:1.5em}}body{background:#fff;color:#2a1468;font-family:Quicksand,sans-serif;padding:1em}a,a:link{color:#2a1468;text-decoration:underline}a:hover{color:#ff6d54}p{margin:0 0 1em}.c-wrapper{margin:0 auto;max-width:860px}.c-section{margin-top:0.5em}.c-section__content{font-size:0.75em}.c-section__text a{font-weight:500}.c-section__intro{font-size:1em;font-weight:600}.c-section:last-child{margin-top:2em}.c-section__note{margin-top:1em}.c-section__note:not(:last-child){display:none}.c-page-title{margin:0;font-size:1.5em}.c-page-subtitle{margin:1.5em 0 0;font-size:1em}.c-page-subtitle,.c-heading{border-bottom:3px solid #ff6d54;display:inline-block;font-weight:600}.c-intro{font-size:1em;font-weight:600;margin:0 1em 1.9em 0;line-height:1.5}.c-heading{margin:0 0 0.5em;font-size:1.35em}.c-list{list-style:none;margin:0;padding:0}.c-list li{margin-bottom:0.5em;padding-left:1em;position:relative}.c-list li:before{background:#ff6d54;content:"";display:block;height:0.5em;left:0;position:absolute;top:0.5em;width:0.5em}.c-page{text-decoration:none;position:relative;display:block;border-bottom:1px dashed #ccc;padding-bottom:0.5em}.c-page__link{font-weight:600}.c-page__name{color:#2a1468;margin-left:0.5em;position:absolute;top:0;right:0}.c-page:hover .c-page__name{color:#ff6d54}.c-section__code{padding:0.9rem 0.8rem;overflow:auto;display:block;background:#2d2b57;color:#e3dfff;border-radius:10px}
|
|
10
|
-
++>>>>>>> Minimize index styles
|
|
11
|
-
</style>
|
|
12
|
-
<script type="text/x-chisel-pages-template">
|
|
13
|
-
<ul class="c-list">
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/dist
|