{"id":20383538,"url":"https://github.com/smerth/bootstrap-4-sandbox","last_synced_at":"2026-05-10T00:47:25.928Z","repository":{"id":147044299,"uuid":"68747816","full_name":"smerth/bootstrap-4-sandbox","owner":"smerth","description":"A Bootstrap 4 sandbox built on top of the excellent Yeoman generator: generator-bootstrap4","archived":false,"fork":false,"pushed_at":"2019-01-07T23:46:29.000Z","size":332,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T07:58:56.278Z","etag":null,"topics":["bootstrap","bower","gruntjs","yeoman"],"latest_commit_sha":null,"homepage":"https://smerth.github.io/bootstrap-4-sandbox/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smerth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-20T19:48:24.000Z","updated_at":"2022-06-16T22:33:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e5c9a37-773f-42db-852d-aead581f5429","html_url":"https://github.com/smerth/bootstrap-4-sandbox","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/smerth%2Fbootstrap-4-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smerth%2Fbootstrap-4-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smerth%2Fbootstrap-4-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smerth%2Fbootstrap-4-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smerth","download_url":"https://codeload.github.com/smerth/bootstrap-4-sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241935267,"owners_count":20044826,"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","bower","gruntjs","yeoman"],"created_at":"2024-11-15T02:23:17.441Z","updated_at":"2026-05-10T00:47:25.891Z","avatar_url":"https://github.com/smerth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bootstrap4 Sandbox\n\n\u003e Built on Yeoman generator-bootstrap4 with the following additions:\n\u003e\n\u003e 1. grunt-gh-pages to push the dist folder to github pages\n\n![App Screenshot](https://raw.githubusercontent.com/smerth/bootstrap-4-sandbox/master/screenshot.png)\n\n## Yeoman Generator\n\nThis Bootstrap 4 Sandbox is based on a Yeoman generator: [Generator Bootstrap4 by bassjobsen](https://github.com/bassjobsen/generator-bootstrap4/)\n\n## Install from the generator\n\n### Install the generator\n\n```bash\nInstall: npm install -g generator-bootstrap4\n```\n\n### Run the generator\n\n```bash\nyo bootstrap4\n```\n\n### Choose options\n\nDuring the installation for this generator you can choose several configurations:\n\n1. Choose font-awesome and Octicons - because they are both great icon libraries...\n2. Enable flexbox\n\n## Install from this repo\n\n```bash\ngit clone https://github.com/smerth/bootstrap-4-sandbox.git\n```\n\nInstall bower deps\n\n```bash\nbower install\n```\n\ninstall npm deps\n\n```bash\nnpm install\n```\n\n@ test folder \u003c- check this...\n\n```bash\nbower install\n```\n\n### Build the App\n\n```bash\ngrunt\n```\n\nThis builds the app from the app folder and runs the Mocha test suite.\n\nLeave this terminal window open to keep tests running in the background.\n\n**Testing Note**: a project checked into source control and later checked out needs to have `bower install` run from the test folder as well as from the project root.\n\nThat's what it says in the docs for the generator but there isn't a package.json file in the test folder, so don't know what that is about...\n\nHowever, after downloading and installing from this repo (as opposed to using the generator) I kept having a complaint from grunt\n\n`\u003e\u003e Local Npm module \"grunt-cafe-mocha\" not found. Is it installed?`\n\nwhich I fixed with\n\n```bash\nnpm install grunt-cafe-mocha --save-dev\n```\n\nNot sure why that isn't covered in the generator...\n\n### Serve the dev environment\n\n```bash\ngrunt serve\n```\n\nServes the files from: .tmp\nServes files from: app\nWatches files...\n\nSo in development you are editing the app folder and changes are updated automatically in the browser.\n\n### Serve the dist folder\n\n```bash\ngrunt serve:dist\n```\n\nServes files from: dist (after building it...)\n\n### Editing, Building and Watching\n\n@ app/index.html\n\nupdate the site title\n\n```html\n\u003ch3 class=\"text-muted\"\u003eBootstrap 4 Sandbox\u003c/h3\u003e\n```\n\nThe dev server updates the content change automatically.\n\nThe dist folder needs to be rebuilt before the changes can be seen.\n\nStop the server ctl-c. and restart...\n\n```bash\ngrunt serve:dist\n```\n\nRemember if you are pushing the dist folder to github pages using `grunt-gh-pages` you need to rebuild the dist folder before pushing to github.\n\n## Pushing to Github Pages\n\nPush using (grunt-gh-pages)[https://www.npmjs.com/package/grunt-gh-pages]\n\n### grunt-gh-pages\n\ninstall the plugin\n\n```bash\nnpm install grunt-gh-pages --save-dev\n```\n\nenable (require) the plugin\n\n@ Gruntfile.js\n\n```javascript\nmodule.exports = function (grunt) {\n\n  // load module\n  require('grunt-gh-pages')(grunt);\n\n  ...\n```\n\nAdd task to deploy the dist folder to gh-pages\n\n@ Gruntfile.js\n\n```javascript\n  // Define the configuration for all the tasks\n  grunt.initConfig({\n\n    // Project settings\n    config: config,\n\n    // Push the dist folder to gh-pages\n    'gh-pages': {\n      options: {\n        base: 'dist'\n      },\n      src: ['**']\n    },\n\n    ...\n```\n\n### Setup Git\n\nEdit .gitignor\n\n```txt\n# Apple stuff\n.DS_Store\n.tmp\n\n# Caches\n.sass-cache\n\n# Modules\nbower_components\nnode_modules\n\n# Grunt generated builds\ndist\n\n```\n\nInitialize git\n\n```bash\ngit init\n```\n\nand\n\n```bash\ngit add .\n```\n\nand\n\n```bash\ngit commit -m \"first commit\"\n```\n\n### Push dist to gh-pages\n\n```bash\n grunt gh-pages\n```\n\n## Processing HTML additional pages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmerth%2Fbootstrap-4-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmerth%2Fbootstrap-4-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmerth%2Fbootstrap-4-sandbox/lists"}