A fork of metro-bootstrap that allows it to be used with webpack by using webpack-relative path names.
You need to have both this project and bootstrap installed via npm (not tested with bower, depends on webpack config).
In your application, reference the root file like so:
@import "~metro-bootstrap/app/less/metro-bootstrap.less";
This project fixes the path names from metro-bootstrap to bootstrap, so everything is linked correctly.
- Add a package.json to explicitly define the dependency on bootstrap
- Submit to NPM repository.
Simple bootstrap from Twitter with Metro style. TalksLab production by Guilherme Ferreira (http://gsferreira.com), Nelson Reis (http://nelsonreis.net/) and Rui Neves.
For a live preview of the theme, see http://talkslab.github.com/metro-bootstrap.
In the repository you will find the following directories:
app/
├── fonts/
│ └── (FontAwesome files)
└── less/
└── (metro-bootstrap less files)
dist/
├── fonts/
│ └── font-awesome/
│ │ └── (FontAwesome files)
└── css/
├── metro-bootstrap.css
└── metro-bootstrap.min.css
docs/
└── (metro-bootstrap GitHub Pages)
We provide compiled CSS (metro-bootstrap.css
) in the dist folder, as well as compiled and minified CSS (metro-bootstrap.min.css
).
We manage dependencies using Bower.
Run bower install
to download the required dependencies.
If don't have Grunt installed, execute the following steps from the command line:
- Make sure you have node.js installed.
- Install bower with
npm install -g bower
.
We compile metro-bootstrap using Grunt.
Run grunt build
to compile the CSS into /dist
.
If don't have Grunt installed, execute the following steps from the command line:
- Make sure you have node.js installed.
- Install
grunt-cli
globally withnpm install -g grunt-cli
. - Go to the
metro-bootstrap
directory, then runnpm install
. npm will look at package.json and automatically install the necessary dependencies.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.