Permalink
Browse files

Slim manifest

  • Loading branch information...
1 parent 05b117b commit 57f619ee856758c5fed3a6ee6ddcb9a351e0a7b6 @andreyvit andreyvit committed Dec 12, 2013
Showing with 14 additions and 23 deletions.
  1. +6 −16 SLIM.lrplugin/manifest.json
  2. +0 −6 SLIM.lrplugin/versions.json
  3. +1 −0 install-gem-package
  4. +2 −0 install-npm-package
  5. +5 −1 strip-craft
@@ -8,24 +8,14 @@
"input": "*.slim",
"output": "*.html",
- "packageConfigurations": [
- {
- "packages": [
- { "type": "gem", "name": "slim", "version": "*" }
- ]
- }
- ],
+ "packages": [["gem:slim:*"]],
- "defaults": [
+ "info": [
{
- "requirements": [
- { "type": "gem", "name": "slim", "versions": "*" }
- ],
-
"cmdline": [
"$(ruby)",
"$(plugin)/gem/bin/slimrb",
- "_$(gem_slim_ver)_",
+ "_$(gem:slim.ver)_",
"$(additional)",
"$(src_path)",
"$(dst_path)"
@@ -76,9 +66,9 @@
"Optional": true,
"CommandLine": [
"$(ruby)",
- "-I$(plugin)/lib/temple/lib",
- "-I$(plugin)/lib/tilt/lib",
- "$(plugin)/lib/slim/bin/slimrb",
+ "-I$(plugin)/gem/gems/temple-0.6.7/lib",
+ "-I$(plugin)/gem/gems/tilt-2.0.0/lib",
+ "$(plugin)/gem/gems/slim-2.0.2/bin/slimrb",
"$(additional)",
"$(src_path)",
"$(dst_path)"
@@ -1,6 +0,0 @@
-{
- ".": "0.9.1.alpha.2",
- "tilt": "2.0.0.beta1",
- "slim": "0.9.1.alpha.2",
- "temple": "0.6.7"
-}
View
@@ -20,6 +20,7 @@ fi
if test -n "$package_version"; then
mkdir -p gem
run gem install -V -V -V -i ./gem --conservative $package_name -v $package_version
+ run $(dirname $0)/strip-craft
else
# npm --json info $package_name | read_json /dev/stdin 'JSON.stringify({versions: versions.map(function(v) { return v + " - " + time[v]; }), tags: this["dist-tags"]}, null, 2)'
run gem list --all --remote --prerelease \^$package_name\$
View
@@ -18,6 +18,8 @@ if test -n "$package_version"; then
mkdir -p npm
run mv node_modules/$package_name npm/$package_name-$package_version
rmdir node_modules 2>/dev/null
+
+ run $(dirname $0)/strip-craft
else
npm --json info $package_name | read_json /dev/stdin 'JSON.stringify({versions: versions.map(function(v) { return v + " - " + time[v]; }), tags: this["dist-tags"]}, null, 2)'
fi
View
@@ -1,2 +1,6 @@
#!/bin/bash
-find . -name example -or -name examples -or -name test -or -name tests -or -name spec -or -name docs -or -name tmp -or -name .idea -or -name dist -or -name cache | xargs rm -rf
+find_offenders() {
+ find . -name example -or -name examples -or -name test -or -name tests -or -name spec -or -name docs -or -name tmp -or -name .idea -or -name dist -or -name cache
+}
+find_offenders
+find_offenders | xargs rm -rf

0 comments on commit 57f619e

Please sign in to comment.