mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
fixes for debian, use local npm modules
This commit is contained in:
parent
c472358979
commit
586206ac1a
5 changed files with 13 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
HARP="harp"
|
||||
HARP="node_modules/harp/bin/harp"
|
||||
TARGET="${1:-www}"
|
||||
|
||||
function main() {
|
||||
|
|
@ -19,14 +19,14 @@ function main() {
|
|||
munge_html
|
||||
|
||||
echo "* inline CSS"
|
||||
$DIR/inline-css.rb "$TARGET"
|
||||
ruby -w $DIR/inline-css.rb "$TARGET"
|
||||
|
||||
echo "* minify js"
|
||||
minify_js
|
||||
}
|
||||
|
||||
function compile_rss() {
|
||||
$DIR/rss.rb public
|
||||
ruby -w $DIR/rss.rb public
|
||||
}
|
||||
|
||||
function munge_html() {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env ruby -w -rrubygems
|
||||
#!/usr/bin/env ruby -w
|
||||
|
||||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
require 'nokogiri'
|
||||
require 'css_parser'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
UGLIFY="uglifyjs"
|
||||
UGLIFY="node_modules/uglify-js/bin/uglifyjs"
|
||||
|
||||
function minify() {
|
||||
INPUT="$1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env ruby -w -rrubygems
|
||||
#!/usr/bin/env ruby -w
|
||||
# encoding: utf-8
|
||||
|
||||
require 'rubygems'
|
||||
require 'time'
|
||||
require 'bundler/setup'
|
||||
require 'builder'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
{ "name": "samhuri.net",
|
||||
{
|
||||
"name": "samhuri.net",
|
||||
"description": "samhuri.net",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"harp": "0.11.x",
|
||||
"uglify-js": "2.4.x"
|
||||
"harp": "^0.11.2",
|
||||
"uglify-js": "^2.4.17"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue