Skip to content

Commit 6369057

Browse files
author
Javril Bavogui
committed
Zawui 00
1 parent c0a87d2 commit 6369057

File tree

10 files changed

+170
-0
lines changed

10 files changed

+170
-0
lines changed

frontend/.babelrc

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

frontend/.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
# Force Unix-style newlines with a newline ending every file & trim trailing whitespace
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.{js,html,css,styl}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.md]
18+
indent_style = space
19+
indent_size = 4
20+
trim_trailing_whitespace = false
21+

frontend/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
.tmp
3+
.git
4+
node_modules
5+
.settings
6+
*.log
7+
src/bundle.js
8+
src/bundle.js.map
9+
.idea

frontend/gulpfile.babel.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
'use strict';
2+
3+
import gulp from 'gulp';
4+
import path from 'path';
5+
import sync from 'run-sequence';
6+
import browserSync from 'browser-sync';
7+
8+
let reload = () => browserSync.reload();
9+
let root = 'src';
10+
11+
// helper method for resolving paths
12+
let resolveToApp = (glob) => {
13+
glob = glob || '';
14+
return path.join(root, 'app', glob); // app/{glob}
15+
};
16+
17+
// map of all paths
18+
let paths = {
19+
js: resolveToApp('**/*!(.spec.js).js'), // exclude spec files
20+
styl: resolveToApp('**/*.styl'), // stylesheets
21+
html: [
22+
resolveToApp('**/*.html'),
23+
path.join(root, 'index.html')
24+
],
25+
entry: path.join(root, 'app/app.js'),
26+
output: root
27+
};
28+
29+
gulp.task('reload', done => {
30+
reload();
31+
done()
32+
});
33+
34+
gulp.task('serve', () => {
35+
browserSync({
36+
port: process.env.PORT || 3000,
37+
open: false,
38+
server: { baseDir: root }
39+
});
40+
});
41+
42+
gulp.task('watch', ['serve'], () => {
43+
let allPaths = [].concat([paths.js], paths.html, [paths.styl]);
44+
gulp.watch(allPaths, ['reload']);
45+
});
46+
47+
gulp.task('default', ['watch']);

frontend/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "zawui",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "Javril Bavogui [email protected]",
10+
"license": "ISC",
11+
"dependencies": {
12+
"angular": "^1.6.4",
13+
"angular-animate": "^1.6.4",
14+
"angular-ui-router": "^0.4.2",
15+
"bootstrap-css-only": "^3.3.7",
16+
"lodash": "^4.17.4",
17+
"normalize.css": "^6.0.0"
18+
},
19+
"devDependencies": {
20+
"angular-mocks": "^1.6.4",
21+
"babel-core": "^6.24.1",
22+
"babel-loader": "^6.4.1",
23+
"babel-preset-es2015": "^6.24.1",
24+
"browser-sync": "^2.18.8",
25+
"css-loader": "^0.28.0",
26+
"file-loader": "^0.11.1",
27+
"fs-walk": "0.0.1",
28+
"gulp": "^3.9.1",
29+
"gulp-rename": "^1.2.2",
30+
"gulp-template": "^4.0.0",
31+
"jasmine": "^2.5.3",
32+
"jasmine-core": "^2.5.2",
33+
"karma": "^1.6.0",
34+
"karma-jasmine": "^1.1.0",
35+
"karma-phantomjs-launcher": "^1.0.4",
36+
"karma-sourcemap-loader": "^0.3.7",
37+
"karma-spec-reporter": "0.0.31",
38+
"karma-webpack": "^2.0.3",
39+
"ng-annotate-loader": "^0.2.0",
40+
"node-libs-browser": "^2.0.0",
41+
"phantomjs-prebuilt": "^2.1.14",
42+
"raw-loader": "^0.5.1",
43+
"run-sequence": "^1.2.2",
44+
"style-loader": "^0.16.1",
45+
"stylus": "^0.54.5",
46+
"stylus-loader": "^3.0.1",
47+
"url-loader": "^0.5.8",
48+
"webpack": "^2.4.1",
49+
"webpack-stream": "^3.2.0",
50+
"yargs": "^7.1.0"
51+
}
52+
}
15.8 KB
Loading

frontend/src/data/bookmarks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{"id":1, "title": "AngularJS", "url": "http://angularjs.org", "category": "Development" },
3+
{"id":2, "title": "Egghead.io", "url": "http://egghead.io", "category": "Development" },
4+
{"id":3, "title": "A List Apart", "url": "http://alistapart.com/", "category": "Design" },
5+
{"id":4, "title": "One Page Love", "url": "http://onepagelove.com/", "category": "Design" },
6+
{"id":6, "title": "MobilityWOD", "url": "http://www.mobilitywod.com/", "category": "Exercise" },
7+
{"id":6, "title": "Robb Wolf", "url": "http://robbwolf.com/", "category": "Exercise" },
8+
{"id":7, "title": "Senor Gif", "url": "http://memebase.cheezburger.com/senorgif", "category": "Humor" },
9+
{"id":8, "title": "Wimp", "url": "http://wimp.com", "category": "Humor" },
10+
{"id":9, "title": "ViralViralVideos", "url": "http://viralviralvideos.com", "category": "Humor" }
11+
]

frontend/src/data/categories.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{"id": 0, "name": "Development"},
3+
{"id": 1, "name": "Design"},
4+
{"id": 2, "name": "Exercise"},
5+
{"id": 3, "name": "Humor"}
6+
]

frontend/src/favicon.jpg

2.46 KB
Loading

frontend/src/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Zawui | Angular with ES6</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<meta name="mobile-web-app-capable" content="yes">
9+
<meta name="apple-mobile-web-app-capable" content="yes">
10+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
11+
<meta name="description" content="A bookmark manager built with AngularJS, and ES6">
12+
<link rel="icon" href="favicon.jpg">
13+
<base href="/">
14+
</head>
15+
16+
<body>
17+
18+
<h1>Hello World ES6!</h1>
19+
</body>
20+
21+
</html>

0 commit comments

Comments
 (0)