Skip to content

Commit

Permalink
Configuracion inicial de Reven boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Revod committed Feb 25, 2016
0 parents commit a45b599
Show file tree
Hide file tree
Showing 28 changed files with 592 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [ "es2015" ]
}
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "airbnb/base",
"globals": {
"$": false
}
}
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Distribution Folder
dist/
bower_components/
node_modules/

rev-manifest.json

# Environment files
.env

# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js

node_js:
- 4.0
- 0.12
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contribution Guidelines

The following is a set of guidelines for contributing to this project and its packages, which are most likely hosted on a private GitLab server of Kreativgebiet.

### Making a commit

- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- Consider starting the commit message with an applicable emoji:
- :art: `:art:` when improving the format/structure of the code
- :racehorse: `:racehorse:` when improving performance
- :memo: `:memo:` when doing something on the styleguide
- :bug: `:bug:` when fixing a bug
- :fire: `:fire:` when removing code or files
- :arrow_up: `:arrow_up:` when upgrading dependencies
- :arrow_down: `:arrow_down:` when downgrading dependencies
- :shirt: `:shirt:` when removing linter warnings

#### When using CI
When only changing documentation, include [ci skip] in the commit description
:green_heart: `:green_heart:` when fixing the CI build
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Revod

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.
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# :gem: Reven

[![Dependency Status](https://david-dm.org/kreativgebiet/kickup/dev-status.svg)](https://david-dm.org/kreativgebiet/kickup) [![Part of the Kreativgebiet - Laboratory Project](https://img.shields.io/badge/laboratory-project-red.svg)](http://labs.kreativgebiet.com/)

Boilerplate for your perfect front-end environment (utilizing Gulp.js, Babel, ED-Grid and more)

## Requirements

The only requirement needed is Node.js installed. The rest is up to the neat `npm install` command later.

## Getting Started
Change into your directory and run the following command in the Terminal of your choice:

```bash
curl -fsSL https://github.com/revod/reven/archive/master.tar.gz | tar -xz --strip-components 1
```

You can also `git clone` or [download](https://github.com/revod/reven/archive/master.zip) this repo and remove the `.git` folder.

### Install dependencies

```bash
npm install && bower install
```

### Run

```bash
gulp
```

## What's included?

### Technology

- [Jade](http://jade-lang.com/) - A clean, whitespace-sensitive template language for writing HTML.
- [Gulp.js](http://gulpjs.com/) – Automate and enhance your workflow.
- [BrowserSync](https://www.browsersync.io/) – Time-saving synchronised browser testing.
- [Rsync](https://en.wikipedia.org/wiki/Rsync) – Deployment made easy.

### Stylesheets

- [Autoprefixer](https://github.com/postcss/autoprefixer) – Parse CSS and add vendor prefixes to rules by Can I Use.
- [Sass](http://sass-lang.com/) – Sass makes CSS fun again.
- [CSSO](http://css.github.io/csso/) - CSS Optimization.
- [PostCSS](https://github.com/postcss/postcss) – A tool for transforming styles with JS plugins.
- [ED-Grid](https://github.com/escueladigital/ED-GRID) - A Perfect CSS Framework for Responsive Design

### Javascript (ES6)

- [Browserify](http://browserify.org/) – Bundling up all of your dependencies.
- [Babel](https://babeljs.io/) – A compiler for writing next generation JavaScript.
- [ESLint](http://eslint.org/) – The pluggable linting utility for JavaScript and JSX.
- [UglifyJS](https://github.com/mishoo/UglifyJS2) – A JavaScript parser, minifier, compressor or beautifier toolkit.

### Miscellaneous

- [SVGStore](https://github.com/w0rm/gulp-svgstore) – Combine svg files into one with <symbol> elements.

## License

MIT © [Ernesto Graterol](https://twitter.com/TheRevod)
33 changes: 33 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Reven",
"version": "0.5.0",
"homepage": "https://github.com/revod/reven",
"authors": [
"Ernesto Graterol <therevod@gmail.com>"
],
"description": "Boilerplate for a combination of ECMAScript 6, ED-Grid, Jade and Gulp.js",
"main": "gulpfile.babel.js",
"moduleType": [
"es6",
"node"
],
"keywords": [
"boilerplate",
"preset",
"gulp",
"es6",
"gulpjs",
"edgrid"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"ed-grid": "*"
}
}
6 changes: 6 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Kreativgebiet GmbH
//
// Require all gulp tasks from the subfolder
// and let them call themselves

require('require-dir')('./tasks', { recurse: true });
58 changes: 58 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "Reven",
"version": "0.5.0",
"description": "Boilerplate for a combination of ECMAScript 6, ED-Grid, Jade and Gulp.js",
"repository": "git@github.com:revod/reven.git",
"main": "gulpfile.babel.js",
"scripts": {
"test": "gulp test"
},
"keywords": [
"boilerplate",
"preset",
"gulp",
"es6",
"gulpjs",
"edgrid"
],
"author": "Ernesto Graterol <therevod@gmail.com>",
"license": "MIT",
"devDependencies": {
"autoprefixer": "^6.0.3",
"babel-core": "^6.1.19",
"babel-eslint": "^4.1.3",
"babel-preset-es2015": "^6.1.18",
"babelify": "^7.2.0",
"browser-sync": "^2.10.1",
"browserify": "^13.0.0",
"debowerify": "^1.3.1",
"gulp": "^3.9.0",
"gulp-changed": "^1.3.0",
"gulp-cheerio": "^0.6.2",
"gulp-csso": "^1.0.0",
"gulp-file-include": "^0.13.7",
"gulp-imagemin": "^2.3.0",
"gulp-inject": "^3.0.0",
"gulp-jade": "^1.1.0",
"gulp-plumber": "^1.0.1",
"gulp-postcss": "^6.0.0",
"gulp-rev": "^6.0.1",
"gulp-rev-replace": "^0.4.3",
"gulp-sass": "^2.0.4",
"gulp-svgmin": "^1.2.0",
"gulp-svgstore": "^5.0.5",
"gulp-uglify": "^1.4.1",
"gulp-util": "^3.0.6",
"object-assign": "^4.0.1",
"require-dir": "^0.3.0",
"rimraf": "^2.4.3",
"rsyncwrapper": "^1.0.0",
"run-sequence": "^1.1.5",
"style-paths": "^0.1.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.5.0",
"yargs": "^3.29.0"
},
"dependencies": {}
}
7 changes: 7 additions & 0 deletions source/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hola!');
6 changes: 6 additions & 0 deletions source/styles/_site-settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// ====================
// Site Settings
// =====================

//Site Variales

4 changes: 4 additions & 0 deletions source/styles/layout/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.welcome--text {
font-size: 2em;
text-align: center;
}
21 changes: 21 additions & 0 deletions source/styles/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// * React ED-Grid Boilerplate
// * Author: @Revod
// * Date: 25 Feb 2015
// *
// * https://github.com/Revod/react-es6-boilerplate
// *


// Site settings

@import 'site-settings';


// Bower Components

@import 'ed-grid/ed-grid';


// Layouts

@import 'layout/header';
2 changes: 2 additions & 0 deletions source/views/includes/_scripts.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
script(src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js")
script(src="bundle.js")
42 changes: 42 additions & 0 deletions source/views/index.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
doctype html
html(lang="es")
head
meta(charset="UFT-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
link(rel="stylesheet", href="styles/main.css")
title Reven
body
header
.ed-container
.ed-item.web-20
img(src="images/logo.svg").logo
.ed-item.web-80.main-end.cross-center
| Versión 1.3
nav
.ed-container
.ed-item
ul.ed-menu.nav-bar.web-horizontal
li
a(href="#") Item 1
ul
li: a(href="#") Subitem 1
li: a(href="#") Subitem 2
li
a(href="#") Subitem 3
ul
li: a(href="#") Sub-item 1
li: a(href="#") Sub-item 2
li: a(href="#") Sub-item 3
li: a(href="#") Sub-item 4
li: a(href="#") Subitem 4
li: a(href="#") Item 2
li: a(href="#") Item 3
li: a(href="#") Item 4
li: a(href="#") Item 5
li: a(href="#") Item 6
li: a(href="#") Item 7
.ed-container
.ed-item
.welcome--text
h1 Welcome, Reven now are Running
include ./includes/_scripts
6 changes: 6 additions & 0 deletions tasks/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import gulp from 'gulp';
import sequence from 'run-sequence';

gulp.task('build', ['clean'], () => {
sequence('images:build', 'styles:build', 'scripts:build', 'fonts', 'markup');
});
8 changes: 8 additions & 0 deletions tasks/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import gulp from 'gulp';

import rimraf from 'rimraf';
import { dest } from './config';

gulp.task('clean', done => {
rimraf(dest, done);
});
14 changes: 14 additions & 0 deletions tasks/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
src: 'source/',
dest: 'dist/',
server: {
port: 3000,
path: 'dist/',
lr: true,
},
remote: {
host: '',
dest: '',
user: '',
},
};
Loading

0 comments on commit a45b599

Please sign in to comment.