Skip to content

Commit

Permalink
añadi el mqpacker
Browse files Browse the repository at this point in the history
  • Loading branch information
elcoach290 committed Apr 25, 2017
1 parent a93daa2 commit e22514c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
26 changes: 16 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"postfonts": "exec-notify echo Copied fonts from source to dist",
"main:scss": "mkdir -p dist/css/main && node-sass --output-style nested --indent-type tab --indent-width 1 --source-map true -o dist/css/main source/scss/main/main.scss",
"main:scss:min": "mkdir -p dist/css/main && node-sass --output-style compressed source/scss/main/main.scss > dist/css/main/main.min.css",
"main:autoprefixer": "postcss -u autoprefixer -r dist/css/main/*.css",
"main:build:css": "npm run main:scss && npm run main:scss:min && npm run main:autoprefixer",
"main:postcss": "postcss -u css-mqpacker autoprefixer -r dist/css/main/*.css",
"main:build:css": "npm run main:scss && npm run main:scss:min && npm run main:postcss",
"login:scss": "mkdir -p dist/css/login && node-sass --output-style nested --indent-type tab --indent-width 1 --source-map true -o dist/css/login source/scss/login/login.scss",
"login:scss:min": "mkdir -p dist/css/login && node-sass --output-style compressed source/scss/login/login.scss > dist/css/login/login.min.css",
"login:autoprefixer": "postcss -u autoprefixer -r dist/css/login/*.css",
"login:build:css": "npm run login:scss && npm run login:scss:min && npm run login:autoprefixer",
"login:postcss": "postcss -u css-mqpacker autoprefixer -r dist/css/login/*.css",
"login:build:css": "npm run login:scss && npm run login:scss:min && npm run login:postcss",
"all:build:css": "parallelshell 'npm run main:build:css' 'npm run login:build:css' ",
"main:transpile:js": "mkdir -p source/transpiled_js && browserify -v -d source/js/main.js -o source/transpiled_js/main.js",
"main:build:js": "npm run main:transpile:js && mkdir -p dist/js && uglifyjs source/transpiled_js/main.js -m -c --name-cache /tmp/cache.json -o dist/js/main.min.js --lint --source-map dist/js/main.min.js.map",
"all:build:js":"parallelshell 'npm run main:build:js'",
"all:build:js": "parallelshell 'npm run main:build:js'",
"imagemin": "mkdir -p dist/img && imagemin source/img dist/img -p",
"favicon": "real-favicon generate faviconDescription.json faviconData.json .",
"serve": "browser-sync start --server --files 'dist/css/**/*.css, dist/js/**/*.js' --index static_site/index.html",
Expand All @@ -44,11 +44,16 @@
},
"browserify": {
"transform": [
["babelify", {
"presets": ["es2015"],
"sourceMap": true,
"sourceMapRelative": "."
}]
[
"babelify",
{
"presets": [
"es2015"
],
"sourceMap": true,
"sourceMapRelative": "."
}
]
]
},
"repository": {
Expand All @@ -65,6 +70,7 @@
"browser-sync": "^2.11.1",
"browserify": "^14.0.0",
"cli-real-favicon": "0.0.5",
"css-mqpacker": "^5.0.1",
"exec-notify": "^0.1.3",
"imagemin-cli": "^2.1.0",
"node-sass": "^3.4.2",
Expand Down
17 changes: 17 additions & 0 deletions source/scss/main/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,20 @@
"components/mobile-menu",
"components/header",
"components/footer";


body{
background-color: #f90;
@media screen and (max-width: 960px){
background-color: #ff0;
}
}

h1{
font-size: 90px;
@media screen and (max-width: 960px){
font-size: 30px;
color: #00f;
text-decoration: underline;
}
}
19 changes: 2 additions & 17 deletions static_site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,8 @@
</head>

<body class="">
<h1>This is the static site template index</h1>


<nav>
<h3>Suggested steps</h3>
<ol>
<li>npm install</li>
<li>bower install</li>
<li>Define your projects color and font variables in <i>source/scss/main/toolbox/</i></li>
<li>Delete and adapt the scss components files <i>sources/scss/main/components</i></li>
<li>Update your scss imports accordingly <i>source/scss/main/main.scss</i></li>
<li>Make a link like this for any static page you are making: <br>
<a href="static_site/example-page.html">Example page</a>
</li>
</ol>
</nav>

<h1>HELLO WORLD</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas quae quos modi cum voluptas sapiente sunt, itaque nihil commodi nisi voluptate, unde exercitationem aperiam repellat fugit distinctio cupiditate nulla?</p>

</body>

Expand Down

0 comments on commit e22514c

Please sign in to comment.