承接 twohill/silverstripe-standard-base 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

twohill/silverstripe-standard-base

Composer 安装命令:

composer require twohill/silverstripe-standard-base

包简介

The base SilverStripe installation recipe with development tools. Uses Webpack for frontend and Docker for hosting

README 文档

README

This is the standard base recipe used by Twohill & Co to get up and running in SilverStripe 4 quickly.

Prerequisites

  • Composer
  • Yarn
  • Docker

Getting Started

  1. Create a composer project and build the frontend

    composer create-project twohill/silverstripe-standard-base
    yarn build
  2. Copy/rename example.env to .env and update the details as required.

    copy example.env .env

    You will need to update the WEBPACK_IP and WEBPACK_PORT to suit your environment for the hot reload feature to work correctly.

    Please ensure you change the SQL root password in this file!

  3. Start up the docker container

    docker-compose up
  4. Open a new terminal and start webpack

    yarn watch

Building for production

yarn build

This process will build and minify your scss, bundle your js, and copy in any image files you have in app/client/src/ and deploy it to app/client/dist/. Your templates should use the dist directory when published.

Known issues

  • You need to run yarn build whenever you add or change images as this is not picked up by the webpack hot reloader
  • The build process generates .js files for the css bundles as well. You can just ignore these.
  • There's effectively a doubleup of image files between src and dist. Ideas to improve on this are welcome

How to use this recipe

Javascript

app/client/src/js/main.js is the starting point of the javascript application. You can use ES6 and it will be transpiled by babel for you. jQuery is bundled in along with Bootstrap 4.

Add additional javascript frameworks with yarn add --dev PACKAGE_NAME.

If you are running webpack via yarn watch your page should automatically refresh as you make changes.

Stylesheets

There are two stylesheet bundles created: editor.scss for the HTMLTextEditor, and bundle.scss for everything else. bundle.scss includes editor.scss so you do not need to repeat styles. You can split up your styles into multiple files to increase maintainablilty and webpack will minify them for you.

Layout and default styling is managed with Bootstrap 4.

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固