{"id":15043180,"url":"https://github.com/praxisnetau/silverstripe-webpack2-starter","last_synced_at":"2025-04-14T21:13:08.279Z","repository":{"id":57044346,"uuid":"84161910","full_name":"praxisnetau/silverstripe-webpack2-starter","owner":"praxisnetau","description":"Starter kit for SilverStripe 4, Webpack 2 and Bootstrap 4.","archived":false,"fork":false,"pushed_at":"2017-03-08T00:12:34.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T21:13:00.074Z","etag":null,"topics":["bootstrap","bootstrap4","silverstripe","starter-kit","theme","webpack","webpack2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praxisnetau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-07T06:12:31.000Z","updated_at":"2017-11-06T08:38:20.000Z","dependencies_parsed_at":"2022-08-24T04:50:27.515Z","dependency_job_id":null,"html_url":"https://github.com/praxisnetau/silverstripe-webpack2-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praxisnetau%2Fsilverstripe-webpack2-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praxisnetau%2Fsilverstripe-webpack2-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praxisnetau%2Fsilverstripe-webpack2-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praxisnetau%2Fsilverstripe-webpack2-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praxisnetau","download_url":"https://codeload.github.com/praxisnetau/silverstripe-webpack2-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961237,"owners_count":21189993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap4","silverstripe","starter-kit","theme","webpack","webpack2"],"created_at":"2024-09-24T20:48:40.286Z","updated_at":"2025-04-14T21:13:08.254Z","avatar_url":"https://github.com/praxisnetau.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SilverStripe Webpack2 Starter\n\n#### SilverStripe 4 + Webpack 2 + Bootstrap 4 = awesome! 😎\n\nThis starter kit expands upon\n[silverstripe-webpack-starter](https://github.com/unclecheese/silverstripe-webpack-starter) and has been\nrevised to work with [SilverStripe 4](https://github.com/silverstripe/silverstripe-framework),\n[Webpack 2](https://github.com/webpack/webpack) and [Bootstrap 4](https://github.com/twbs/bootstrap).\n[Modernizr](https://github.com/modernizr/modernizr) is also included for easy browser feature detection.\n\n## Installation\n\nInstallation is via [Composer](https://getcomposer.org).\n\nCreate a new project based on this repo by running:\n\n```shell\n$ composer create-project praxisnetau/silverstripe-webpack2-starter /path/to/project dev-master\n```\n\nAlternatively, clone the repo, and then run:\n\n```shell\n$ composer install\n```\n\nOnce Composer has finished downloading packages, you'll need to create a `.env` file either in the project root, or the\nparent directory. An example file `.env.example` is included in the repo to give you a head start. The `.env` file\nconfigures the environment and database settings for SilverStripe 4. Make sure you don't commit any `.env` files with\nsensitive information (such as passwords) to version control!\n\nYou'll also need to install the frontend dependencies in the `themes/app` folder. You can either use Yarn or NPM to\ninstall:\n\n### Yarn\n\n```shell\n$ cd themes/app\n$ yarn install\n```\n\n### NPM\n\n```shell\n$ cd themes/app\n$ npm install\n```\n\n## Development\n\nOnce the frontend dependencies are installed in `node_modules`, you'll need to start the Webpack development server:\n\n### Yarn\n\n```shell\n$ yarn run start\n```\n\n### NPM\n\n```shell\n$ npm run start\n```\n\nIf everything goes according to plan, the Webpack development server should start running on `http://localhost:8080` and\nWebpack will compile the theme source files.\n\nYou can now access your app host in your browser. SilverStripe will build it's database, and CSS changes will be hot\nloaded by Webpack.\n\n## Configuration\n\nThe theme uses `bootstrap-loader` and `modernizr-loader` for easy customisation of your theme via configuration files:\n\n* `themes/app/.bootstraprc` - YAML configuration for Bootstrap\n* `themes/app/.modernizrrc` - YAML configuration for Modernizr\n\nUsing these files, you can selectively enable or disable features of both Bootstrap and Modernizr for your custom app\nbuild.\n\n## Production\n\nTo prepare files for distribution to production servers, you can run Webpack in production mode by using:\n\n### Yarn\n\n```shell\n$ yarn run build\n```\n\n### NPM\n\n```shell\n$ npm run build\n```\n\nWebpack will clear your `themes/app/production` folder and output optimised and minified CSS and JavaScript.\n\n## Deployment\n\nWhen deploying your project to a live server, you do not need to deploy the `themes/app/source` folder. Only deploy\n`themes/app/production`.\n\n## Attribution\n\n* Thanks to [Aaron Carlino](https://github.com/unclecheese) and [Stevie Mayhew](https://github.com/stevie-mayhew) for\nlaying the groundwork for this repo to be built.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraxisnetau%2Fsilverstripe-webpack2-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraxisnetau%2Fsilverstripe-webpack2-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraxisnetau%2Fsilverstripe-webpack2-starter/lists"}