Skip to content

Commit f4a9e60

Browse files
Alter bower to Yarn and Gulp
1 parent 6564259 commit f4a9e60

File tree

248 files changed

+8581
-1871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+8581
-1871
lines changed

.DS_Store

6 KB
Binary file not shown.

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "es2015" ]
3+
}

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 2
8+
9+
[{package.json,.travis.yml}]
10+
indent_style = space
11+
indent_size = 2

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"airbnb-base",
4+
"plugin:flowtype/recommended"
5+
],
6+
"rules": {
7+
"semi": 0,
8+
"flowtype-errors/show-errors": 2,
9+
"import/no-extraneous-dependencies": 0,
10+
},
11+
"globals": {
12+
"$": false
13+
},
14+
"plugins": [
15+
"flowtype",
16+
"flowtype-errors"
17+
],
18+
}

.gitignore

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1-
.DS_Store
1+
# Distribution Folder
2+
dist/
3+
bower_components/
4+
node_modules/
5+
6+
rev-manifest.json
7+
8+
# Environment files
9+
.env
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
23+
.grunt
24+
25+
# node-waf configuration
26+
.lock-wscript
27+
28+
# Compiled binary addons (http://nodejs.org/api/addons.html)
29+
build/Release

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Requirements
2+
3+
- Working personal computer
4+
- Node.js
5+
6+
## Getting Started
7+
8+
You can also `git clone`.
9+
10+
### Install dependencies
11+
12+
```bash
13+
yarn install
14+
```
15+
16+
### Run
17+
18+
```bash
19+
gulp
20+
```
21+
22+
## What's included?
23+
24+
### Technology
25+
26+
- [Gulp.js](http://gulpjs.com/) – Automate and enhance your workflow.
27+
- [BrowserSync](https://www.browsersync.io/) – Time-saving synchronised browser testing.
28+
- [Rsync](https://en.wikipedia.org/wiki/Rsync) – Deployment made easy.
29+
30+
### Stylesheets
31+
32+
- [Autoprefixer](https://github.com/postcss/autoprefixer) – Parse CSS and add vendor prefixes to rules by Can I Use.
33+
- [Sass](http://sass-lang.com/) – Sass makes CSS fun again.
34+
- [CSSO](http://css.github.io/csso/) - CSS Optimization.
35+
- [PostCSS](https://github.com/postcss/postcss) – A tool for transforming styles with JS plugins.
36+
37+
### Javascript (ES6)
38+
39+
- [Browserify](http://browserify.org/) – Bundling up all of your dependencies.
40+
- [Babel](https://babeljs.io/) – A compiler for writing next generation JavaScript.
41+
- [ESLint](http://eslint.org/) – The pluggable linting utility for JavaScript and JSX.
42+
- [UglifyJS](https://github.com/mishoo/UglifyJS2) – A JavaScript parser, minifier, compressor or beautifier toolkit.
43+
44+
### Miscellaneous
45+
46+
- [SVGStore](https://github.com/w0rm/gulp-svgstore) – Combine svg files into one with <symbol> elements.

about.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

config.js

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
2+
import { join } from 'path';
3+
import babelify from 'babelify';
4+
5+
const sourceFolder = 'source';
6+
const distFolder = 'dist';
7+
8+
module.exports = {
9+
// ----------------------------
10+
// LIBRARIES module
11+
// ----------------------------
12+
libraries: {
13+
// The entries in js are needed to be a *glob*
14+
js: [
15+
join(__dirname, 'node_modules', 'jquery', 'dist', 'jquery.min.js'),
16+
join(__dirname, 'source', 'scripts', 'lib', '**', '*.js'),
17+
join(__dirname, 'node_modules', 'fotorama', '*.js'),
18+
join(__dirname, 'node_modules', 'jquery.maskedinput', 'src', '*.js'),
19+
// TODO: Add some more libraries to work with them in your js files
20+
],
21+
22+
// The entries in scss are needed to be *folders*
23+
scss: [
24+
join(__dirname, 'node_modules', 'bootstrap', 'scss'),
25+
join(__dirname, 'node_modules', 'fotorama', '*.css'),
26+
join(__dirname, 'node_modules', 'nouislider', 'distribute', 'nouislider', '*.css')
27+
// TODO: Add some more libraries to include them in your scss files
28+
],
29+
},
30+
31+
// ----------------------------
32+
// RSYNC module
33+
// ----------------------------
34+
rsync: {
35+
src: `${distFolder}/`,
36+
dest: 'user@host:folder/to/script',
37+
ssh: true,
38+
recursive: true,
39+
deleteAll: true,
40+
exclude: ['.DS_Store'],
41+
},
42+
43+
// ----------------------------
44+
// IMAGEMIN module
45+
// ----------------------------
46+
imagemin: {},
47+
48+
// ----------------------------
49+
// WATCH module
50+
// ----------------------------
51+
watch: {
52+
images: join(sourceFolder, 'images', '**/*'),
53+
scss: join(sourceFolder, 'styles', '**/*.{scss,sass}'),
54+
js: undefined, // JavaScript is watched using watchify
55+
html: join(sourceFolder, 'html', '**/*.ejs'),
56+
fonts: join(sourceFolder, 'fonts', '**/*'),
57+
},
58+
59+
// ----------------------------
60+
// SERVER module
61+
// ----------------------------
62+
server: {
63+
src: `${sourceFolder}/`,
64+
dest: `${distFolder}/`,
65+
66+
// ----------------------------
67+
// BROWSERSYNC module
68+
// ----------------------------
69+
browserSync: {
70+
port: 3000,
71+
notify: false,
72+
server: {
73+
baseDir: distFolder,
74+
},
75+
},
76+
},
77+
78+
// ----------------------------
79+
// BROWSERSYNC module
80+
// ----------------------------
81+
browserify: {
82+
entries: join(sourceFolder, 'scripts', 'main.js'),
83+
extensions: ['.js'],
84+
debug: process.env.NODE_ENV === 'development',
85+
transform: [
86+
babelify,
87+
],
88+
},
89+
}

contact.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)