Skip to content

Develop #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Alter bower to Yarn and Gulp
  • Loading branch information
leonardoelias4 committed Sep 13, 2017
commit f4a9e60c2ce59a377da90a941a0db50fd2ce78ff
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [ "es2015" ]
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
18 changes: 18 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"airbnb-base",
"plugin:flowtype/recommended"
],
"rules": {
"semi": 0,
"flowtype-errors/show-errors": 2,
"import/no-extraneous-dependencies": 0,
},
"globals": {
"$": false
},
"plugins": [
"flowtype",
"flowtype-errors"
],
}
30 changes: 29 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
.DS_Store
# Distribution Folder
dist/
bower_components/
node_modules/

rev-manifest.json

# Environment files
.env

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

# 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
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Requirements

- Working personal computer
- Node.js

## Getting Started

You can also `git clone`.

### Install dependencies

```bash
yarn install
```

### Run

```bash
gulp
```

## What's included?

### Technology

- [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.

### 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.
3 changes: 0 additions & 3 deletions about.html

This file was deleted.

89 changes: 89 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@

import { join } from 'path';
import babelify from 'babelify';

const sourceFolder = 'source';
const distFolder = 'dist';

module.exports = {
// ----------------------------
// LIBRARIES module
// ----------------------------
libraries: {
// The entries in js are needed to be a *glob*
js: [
join(__dirname, 'node_modules', 'jquery', 'dist', 'jquery.min.js'),
join(__dirname, 'source', 'scripts', 'lib', '**', '*.js'),
join(__dirname, 'node_modules', 'fotorama', '*.js'),
join(__dirname, 'node_modules', 'jquery.maskedinput', 'src', '*.js'),
// TODO: Add some more libraries to work with them in your js files
],

// The entries in scss are needed to be *folders*
scss: [
join(__dirname, 'node_modules', 'bootstrap', 'scss'),
join(__dirname, 'node_modules', 'fotorama', '*.css'),
join(__dirname, 'node_modules', 'nouislider', 'distribute', 'nouislider', '*.css')
// TODO: Add some more libraries to include them in your scss files
],
},

// ----------------------------
// RSYNC module
// ----------------------------
rsync: {
src: `${distFolder}/`,
dest: 'user@host:folder/to/script',
ssh: true,
recursive: true,
deleteAll: true,
exclude: ['.DS_Store'],
},

// ----------------------------
// IMAGEMIN module
// ----------------------------
imagemin: {},

// ----------------------------
// WATCH module
// ----------------------------
watch: {
images: join(sourceFolder, 'images', '**/*'),
scss: join(sourceFolder, 'styles', '**/*.{scss,sass}'),
js: undefined, // JavaScript is watched using watchify
html: join(sourceFolder, 'html', '**/*.ejs'),
fonts: join(sourceFolder, 'fonts', '**/*'),
},

// ----------------------------
// SERVER module
// ----------------------------
server: {
src: `${sourceFolder}/`,
dest: `${distFolder}/`,

// ----------------------------
// BROWSERSYNC module
// ----------------------------
browserSync: {
port: 3000,
notify: false,
server: {
baseDir: distFolder,
},
},
},

// ----------------------------
// BROWSERSYNC module
// ----------------------------
browserify: {
entries: join(sourceFolder, 'scripts', 'main.js'),
extensions: ['.js'],
debug: process.env.NODE_ENV === 'development',
transform: [
babelify,
],
},
}
3 changes: 0 additions & 3 deletions contact.html

This file was deleted.

25 changes: 0 additions & 25 deletions crossdomain.xml

This file was deleted.

12 changes: 0 additions & 12 deletions en/index.html

This file was deleted.

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 });
Loading