Giter Site home page Giter Site logo

ainehanta.github.io's Introduction

bildschirmfoto 2017-03-29 um 17 45 17

Makoto Uju's portfolio site

based "Middleman 4 + webpack 2" template.

Get started

git clone https://github.com/ainehanta/ainehanta.github.io
cd ainehanta.github.io
bundle install --apth vendor/bundle
yarn install

development

bundle exec middleman s

deploy

bundle exec rake publish

Middleman 4 + Webpack 2

A middleman v4 preconfigured to use the external pipeline with just webpack v2. Some helpful stuff is already integrated.

Features

Requirements

How to get started

(optional). Create yourself a .ruby-version and .ruby-gemset-file to not mess up your environment. I'd recommend to use rbenv to manage that environment. This has been tested with ruby version 2.3.3 and a gemset named middleman-webpack.

  1. gem install middleman

  2. Start a new middleman-project using

    $ middleman init my_new_site -T toadle/middleman-webpack
    

2b. middleman will run bundle install for you. So wait. 3. Run npm install. Wait. 4. Run middleman s. 5. You should be able to open the page at http://localhost:3000. 6. You can create a production-build by running middleman build. 7. Run tests by rake or rspec.

How does it work

  • Uses middleman's external pipeline to generate assets. Configuration is in the two environment-files development.rb and production.rb
  • Runs webpack as it's external pipeline, as configured in package.json.
  • webpack uses the the webpack.config.js as it's configuration.
  • When run as middleman s in development it'll start middleman, middleman-livereload, webpack and BrowserSync. So reloading of templates and JS/CSS-changes should be reflected without manual reloads.
  • BrowserSync is configured to proxy the middleman-server from localhost:4567 to localhost:3000 to inject itself.
  • Stuff webpack does is put into .webpack_build which middleman serves together with it's own files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.