-
Notifications
You must be signed in to change notification settings - Fork 32
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
[WIP] Front end design & cleanup #14
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e4a7345
Start setting up harp
dignifiedquire 4ea603a
Basic readme
dignifiedquire fc8befc
Break things and start reorg
dignifiedquire b24a538
Development build working
dignifiedquire a84bb76
Start base implementation
dignifiedquire 2786145
Base design
dignifiedquire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
site/public/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": "standard" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
all: all_dists index | ||
|
||
all_dists: go-ipfs ipfs-app | ||
all_dists: go-ipfs | ||
|
||
ipfs-app: | ||
echo "** making $@ **" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const gulp = require('gulp') | ||
|
||
require('require-dir')('tasks') | ||
|
||
gulp.task('default', ['lint']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# HARP BUILD FOLDER | ||
www | ||
|
||
# BABELJS BUILDS | ||
public/build | ||
|
||
www | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# IPFS Distributions | ||
|
||
|
||
## Development | ||
|
||
Harpjs setup with | ||
|
||
* Live reload using browser-sync | ||
* JavaScript | ||
* bundeling using webpack | ||
* transpiling using babel | ||
* Linting using eslint | ||
|
||
|
||
```bash | ||
$ gulp | ||
$ open localhost:3000 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var webpack = require('webpack') | ||
|
||
module.exports = { | ||
entry: ['babel-polyfill', './public/_js/script.js'], | ||
output: { | ||
path: __dirname, | ||
filename: './public/build/script.js' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel', | ||
query: { | ||
cacheDirectory: true, | ||
presets: ['es2015'] | ||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new webpack.NoErrorsPlugin() | ||
], | ||
stats: { | ||
colors: true | ||
}, | ||
devtool: 'source-map' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var webpack = require('webpack') | ||
|
||
module.exports = { | ||
entry: ['babel-polyfill', './public/_js/script.js'], | ||
output: { | ||
path: __dirname, | ||
filename: './public/build/script.js' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel', | ||
exclude: /node_modules/, | ||
query: { | ||
cacheDirectory: true, | ||
presets: ['es2015'], | ||
plugins: ['transform-remove-console'] | ||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compressor: { | ||
warnings: false | ||
} | ||
}), | ||
new webpack.NoErrorsPlugin() | ||
], | ||
stats: { | ||
colors: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"globals": { | ||
"meta" :{ | ||
"title" : "IPFS Distributions", | ||
"desc" : "Distributions of IPFS" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "ipfs-distributions", | ||
"version": "1.0.0", | ||
"description": "IPFS Distributions page", | ||
"main": "app.js", | ||
"scripts": { | ||
"dev": "webpack --progress --colors --watch", | ||
"prod": "NODE_ENV=production webpack -p --config webpack.production.config.js", | ||
"lint": "gulp lint" | ||
}, | ||
"pre-commit": [ | ||
"lint" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ipfs/distributions.git" | ||
}, | ||
"author": "Friedel Ziegelmayer <dignifiedquire@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ipfs/distributions/issues" | ||
}, | ||
"homepage": "https://dist.ipfs.io", | ||
"devDependencies": { | ||
"babel-core": "^6.1.2", | ||
"babel-eslint": "^4.1.3", | ||
"babel-jscs": "^2.0.0", | ||
"babel-loader": "^6.0.0", | ||
"babel-plugin-transform-remove-console": "^6.0.14", | ||
"babel-polyfill": "^6.0.14", | ||
"babel-preset-es2015": "^6.0.15", | ||
"browser-sync": "^2.10.0", | ||
"eslint": "^1.8.0", | ||
"eslint-config-standard": "^4.4.0", | ||
"eslint-plugin-standard": "^1.3.1", | ||
"gulp": "^3.9.0", | ||
"gulp-batch": "^1.0.5", | ||
"gulp-eslint": "^1.1.1", | ||
"gulp-load-plugins": "^1.1.0", | ||
"gulp-watch": "^4.3.5", | ||
"harp": "^0.20.0", | ||
"pre-commit": "^1.1.2", | ||
"webpack": "^1.12.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
h1 404 | ||
h3 Whoops. Looks like what you're looking for can't be found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const $ = window.jQuery = require('jquery') | ||
window.Tether = require('tether') | ||
require('bootstrap') | ||
|
||
const init = () => { | ||
// LETS DO THIS! | ||
console.log('hello world') | ||
} | ||
|
||
$(init) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
doctype | ||
html(lang='en') | ||
head | ||
meta(charset='utf-8') | ||
meta(http-equiv='X-UA-Compatible' content='IE=edge')/ | ||
title= meta.title | ||
meta(name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no') | ||
meta(name='description' content='#{meta.desc}') | ||
link(rel='stylesheet' href='css/style.css') | ||
link( | ||
href='https://fonts.googleapis.com/css?family=Fira+Sans:500,300,400,400italic' | ||
rel='stylesheet' | ||
type='text/css' | ||
) | ||
body | ||
!= yield | ||
script(src='build/script.js') |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these required? why can't we keep these out? it makes it daunting to modify websites when suddenly you have to know a ton more tools and know how to debug them when something goes wrong.
there's a lot to be said for simplicity and reducing cognitive complexity to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of major points why I think we need them
js-ipf-api
The only thing that might not be needed is harpjs, though it was just a lot faster for me to use something working like that, than implementing all the tooling manually.
For me this is a lot simpler and more straight forward setup, especially while working with it than it was before. Also this enables me to add things like proper minification and asset bundeling which we need to have to ship this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sounds good. let's ship it