Giter Club home page Giter Club logo

mnml's Introduction

MNML

What is this?

View the project page at http://mn-ml.cc

MNML is a highly unopinionated starting point for prototyping responsive HTML5 projects with PostCSS. Uses browser-sync to create a livereloading server for rapidly prototyping sites.

Features

  • Css compiling with postcss
  • Css minification
  • Autoprefixer (automatically adds appropriate vendor prefixes)
  • Browser reload on filesave using browser-sync
  • Local server for serving a static site
  • Uses normalize.css

Getting started

Instructions

  • Clone the repo from GitHub and make it your own.
  • In terminal run each line as a separate command
    git clone https://github.com/mrmrs/mnml.git yourNewRepoName
    git clone [email protected]:mrmrs/mnml.git yourNewRepoName

Then

    cd yourNewRepoName
    rm -rf .git
    git init
    git remote add origin [email protected]:yourUserName/yourNewRepoName.git
  • git remote -v will allow you to check that you have changed the remote origin correctly. The output should look like:
    origin [email protected]:yourUserName/yourNewRepoName.git (fetch)
    origin [email protected]:yourUserName/yourNewRepoName.git (push)

Dev environment

To set up a convenient dev environment run this at the root of mnml

npm install && npm start

Directory structure

mnml/
  ├── README.md
  ├── css
  │   ├── mnml.css
  │   └── mnml.min.css
  ├── index.html
  ├── index.js
  ├── package.json
  └── src
      ├── _base.css
      ├── _debug.css
      ├── _grid.css
      ├── _media-queries.css
      ├── _styles.css
      ├── _typography.css
      ├── _variables.css
      ├── lib
      │   └── _normalize.css
      └── mnml.css

Author

MRMRS

Contributors

  • @xiaogwu
  • @cbracco
  • @franciscogo
  • @nolastan
  • @markphd
  • @amirahaile
  • @roylodder
  • @shakyShane
  • @andrew
  • @filipelinhares
  • @mattcdowning
  • @cwonrails
  • @mrzool

License

The MIT License (MIT)

Copyright (c) 2016 @mrmrs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mnml's People

Contributors

amirahaile avatar andrew avatar cbracco avatar cwonrails avatar filipelinhares avatar mrmrs avatar mrzool avatar nolastan avatar radrice avatar shakyshane avatar xiaogwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mnml's Issues

What about JS ?

Hi,
great work, love it.
I feel like JS should be handled as well with gulp ?
Thanks

Some suggestions

Before anything, thank you for publishing things like this, awesome work!
What do you think about these sugestions:

  • Tag some kind of "stable" version.
  • Support themes.

The last sugestion would be great for people like me, that is looking for clean bootstrap.

Thanks.

Tablet Support - Need it fixed

Hello There,
I am a stickler for perfection and your template it awesome.. It really helps me out. Since I am not a guru at adding tablet support I was wondering if you could take a little time to sort out the code issues listed here:

http://nibbler.silktide.com/reports/mn-ml.cc

There are 3 items that need to be addressed and can probably be done by you in 10 minutes. I just know you are that awesome.

Thanks in advance.. I just want to use this template and I need those things addressed before I redo a single page website, giving you props of course.

Kind regards,
Saxamo

CSS includes not compiling into css/mnml.css

No error before the new update, but after updated code. I am receiving this error.

/Users/okayjeffrey/Development/mnml-theme/node_modules/node-minify/lib/node-minify.js:104
          throw new Error(bin + ' not found !');
          ^

Error: sqwish not found !
    at getPath (/Users/okayjeffrey/Development/mnml-theme/node_modules/node-minify/lib/node-minify.js:104:17)
    at Object.minify.fn.compress (/Users/okayjeffrey/Development/mnml-theme/node_modules/node-minify/lib/node-minify.js:137:27)
    at Object.minify (/Users/okayjeffrey/Development/mnml-theme/node_modules/node-minify/lib/node-minify.js:83:10)
    at Object.<anonymous> (/Users/okayjeffrey/Development/mnml-theme/index.js:30:1)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:429:10)
    at startup (node.js:139:18)
[BS] File changed: css/mnml.css

Please note I am a noob to Node so I don't know how to search out sqwish

With latest gulp update, gulp-watch plugin breaks due to function

Hi Adam -

It appears that a gulp update may have broken the gulp-watch plugin using your current configuration in the gulpfile. I'm receiving the following error:

[13:50:33] Using gulpfile /Users/_____/Documents/www/mnml/gulpfile.js
[13:50:33] Starting 'pre-process'...
[13:50:33] 'pre-process' errored after 4.81 ms
[13:50:33] Error in plugin 'gulp-watch'
Message:
    glob should be String or Array, not function

Looked into it a bit, and it seems to be referencing line 53 of gulpfile.js.

I'm running gulp v3.8.11

node-minify throw new Error(setting + ' is mandatory.'); on npm start

Initial output

node-minify deprecated Instantiate is no longer necessary.
new compressor.minify() is deprecated.
Please use:

var compressor = require("node-minify");
compressor.minify();

node_modules/node-minify/lib/node-minify.js:30:3
node-minify deprecated type was renamed to compressor node_modules/node-minify/lib/node-minify.js:30:3
node-minify deprecated fileIn was renamed to input node_modules/node-minify/lib/node-minify.js:30:3
node-minify deprecated fileOut was renamed to output node_modules/node-minify/lib/node-minify.js:30:3
/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:201
throw new Error(setting + ' is mandatory.');
^

Error: compressor is mandatory.
at mandatory (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:201:11)
at /Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:188:5
at Array.forEach (native)
at checkMandatories (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:187:5)
at setup (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:43:3)
at new minify (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/node-minify.js:31:14)
at Object. (/Users/mattdowning/Desktop/test/index.js:31:1)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

Updating index.js

Per the deprecation errors, I updated index.js with this:
compressor.minify({ type: 'clean-css', input: './css/mnml.css', output: './css/mnml.min.css' }); which cleans the output to:

node-minify deprecated type was renamed to compressor node_modules/node-minify/lib/node-minify.js:30:3
/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:201
throw new Error(setting + ' is mandatory.');
^

Error: compressor is mandatory.
at mandatory (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:201:11)
at /Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:188:5
at Array.forEach (native)
at checkMandatories (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:187:5)
at setup (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/setup.js:43:3)
at Object.minify (/Users/mattdowning/Desktop/test/node_modules/node-minify/lib/node-minify.js:31:14)
at Object. (/Users/mattdowning/Desktop/test/index.js:31:12)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

Anyone have ideas on how to fix?

I'm not sure how to update the node-minify type to compressor as indicated.

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.