Got rid of bower as useless, added fonts to digest and updated README
This commit is contained in:
parent
e1dd322112
commit
50d8088e7b
6 changed files with 19 additions and 31 deletions
|
@ -4,7 +4,7 @@
|
|||
Mebe -- _the Minimalistic Elixir Blog Engine_ -- is a simple blog engine written in [Elixir](https://elixir-lang.org),
|
||||
using the [Phoenix Framework](http://www.phoenixframework.org/).
|
||||
|
||||
The engine consists of two parts, both in the `apps/` directory:
|
||||
The engine consists of two parts:
|
||||
|
||||
1. MebeEngine, which handles parsing the data files into an ETS (_Erlang Term Storage_) in-memory database, and
|
||||
2. MebeWeb, which uses the Phoenix Framework to serve the blog data to clients.
|
||||
|
@ -12,8 +12,8 @@ The engine consists of two parts, both in the `apps/` directory:
|
|||
## Installation for development
|
||||
|
||||
* `git clone`
|
||||
* Copy `*.exs.dist`, removing the `.dist` ending and go through the configs.
|
||||
* `npm install && bower install && gulp` to build the frontend.
|
||||
* Copy `config/*.exs.dist`, removing the `.dist` ending and go through the configs.
|
||||
* `npm install && gulp` to build the frontend.
|
||||
* `mix phoenix.server` to run the development server.
|
||||
|
||||
## Features
|
||||
|
@ -24,6 +24,7 @@ The engine consists of two parts, both in the `apps/` directory:
|
|||
* RSS feeds for all posts and for tags
|
||||
* Override templates by putting replacements into a directory
|
||||
* Expect script for refreshing blog from the command line
|
||||
* Splitting of posts so that only the beginning will be shown in a list view or feed
|
||||
|
||||
## Possible future features
|
||||
|
||||
|
|
20
bower.json
20
bower.json
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"name": "mebe_web",
|
||||
"version": "0.0.1",
|
||||
"authors": [
|
||||
"Mikko Ahlroth <mikko.ahlroth@gmail.com>"
|
||||
],
|
||||
"description": "Minimalistic Elixir Blog Engine",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"bootstrap-sass": "~3.3.4",
|
||||
"jquery": "~2.1.4"
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ var del = require('del');
|
|||
// Source maps
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
var bower_path = 'bower_components/';
|
||||
var node_path = 'node_modules/';
|
||||
|
||||
var dest_path = 'priv/static/';
|
||||
|
||||
|
@ -29,8 +29,8 @@ var dest_path = 'priv/static/';
|
|||
gulp.task('js', function() {
|
||||
return gulp.src([
|
||||
// Uncomment these two lines if you need bootstrap or jQuery
|
||||
//bower_path + 'jquery/dist/jquery.js',
|
||||
//bower_path + 'bootstrap-sass/assets/javascripts/bootstrap.js',
|
||||
//node_path + 'jquery/dist/jquery.js',
|
||||
//node_path + 'bootstrap-sass/assets/javascripts/bootstrap.js',
|
||||
'web/static/js/*.js'
|
||||
])
|
||||
|
||||
|
@ -60,7 +60,7 @@ gulp.task('css', function() {
|
|||
|
||||
// Copies fonts
|
||||
gulp.task('fonts', function() {
|
||||
return gulp.src(bower_path + 'bootstrap-sass/assets/fonts/bootstrap/*')
|
||||
return gulp.src(node_path + 'bootstrap-sass/assets/fonts/bootstrap/*')
|
||||
.pipe(gulp.dest(dest_path + 'fonts/'));
|
||||
});
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ defmodule MebeWeb.Endpoint do
|
|||
# Serve at "/" the given assets from "priv/static" directory
|
||||
plug Plug.Static,
|
||||
at: "/", from: :mebe_web,
|
||||
only: ~w(css images js favicon.ico robots.txt)
|
||||
only: ~w(css images js fonts favicon.ico robots.txt)
|
||||
|
||||
# Code reloading can be explicitly enabled under the
|
||||
# :code_reloader configuration of your endpoint.
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"name": "mebe_web",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"repository": {},
|
||||
"license": "MIT",
|
||||
"description": "Minimalistic Elixir Blog Engine",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"bower": "~1.4.1",
|
||||
"chalk": "^1.0.0",
|
||||
|
@ -18,5 +21,9 @@
|
|||
"gulp-sourcemaps": "^1.5.2",
|
||||
"gulp-uglify": "~1.2.0",
|
||||
"vinyl-paths": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap-sass": "^3.3.5",
|
||||
"jquery": "^2.1.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@import "../../../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/variables";
|
||||
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables";
|
||||
@import "variables";
|
||||
@import "../../../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";
|
||||
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
|
||||
@import "bootswatch";
|
||||
|
||||
/* Scale images with the width of the site */
|
||||
|
|
Reference in a new issue