Browse Source

Simplify running the example

pull/534/head
Dan Dascalescu 9 years ago
parent
commit
0455fa4fee
  1. 2
      meteor/example/.meteor/packages
  2. 2
      meteor/example/.meteor/release
  3. 8
      meteor/example/.meteor/versions
  4. 17
      meteor/example/README.md
  5. 11
      meteor/example/run.bat
  6. 14
      meteor/example/run.sh
  7. 2
      meteor/runtests.bat

2
meteor/example/.meteor/packages

@ -7,6 +7,4 @@ meteor-platform
autopublish autopublish
insecure insecure
rubaxa:sortable rubaxa:sortable
dburles:mongo-collection-instances
fezvrasta:bootstrap-material-design fezvrasta:bootstrap-material-design
# twbs:bootstrap

2
meteor/example/.meteor/release

@ -1 +1 @@
METEOR@1.1.0.2 METEOR@1.1.0.3

8
meteor/example/.meteor/versions

@ -7,7 +7,7 @@ blaze-tools@1.0.3
boilerplate-generator@1.0.3 boilerplate-generator@1.0.3
callback-hook@1.0.3 callback-hook@1.0.3
check@1.0.5 check@1.0.5
dburles:mongo-collection-instances@0.3.3 dburles:mongo-collection-instances@0.3.4
ddp@1.1.0 ddp@1.1.0
deps@1.0.7 deps@1.0.7
ejson@1.0.6 ejson@1.0.6
@ -21,7 +21,7 @@ id-map@1.0.3
insecure@1.0.3 insecure@1.0.3
jquery@1.11.3_2 jquery@1.11.3_2
json@1.0.3 json@1.0.3
lai:collection-extensions@0.1.3 lai:collection-extensions@0.1.4
launch-screen@1.0.2 launch-screen@1.0.2
livedata@1.0.13 livedata@1.0.13
logging@1.0.7 logging@1.0.7
@ -39,13 +39,13 @@ reactive-var@1.0.5
reload@1.1.3 reload@1.1.3
retry@1.0.3 retry@1.0.3
routepolicy@1.0.5 routepolicy@1.0.5
rubaxa:sortable@1.2.0 rubaxa:sortable@1.2.1
session@1.1.0 session@1.1.0
spacebars@1.0.6 spacebars@1.0.6
spacebars-compiler@1.0.6 spacebars-compiler@1.0.6
templating@1.1.1 templating@1.1.1
tracker@1.0.7 tracker@1.0.7
twbs:bootstrap@3.3.4 twbs:bootstrap@3.3.5
ui@1.0.6 ui@1.0.6
underscore@1.0.3 underscore@1.0.3
url@1.0.4 url@1.0.4

17
meteor/example/README.md

@ -9,28 +9,27 @@ It also shows list grouping and control over what lists can give or receive
elements. You can only drag elements from the list to the left onto the list elements. You can only drag elements from the list to the left onto the list
to the right. to the right.
## Usage ## Usage
The example uses the local package from the checkout, so it needs to wire The example uses the local package from the checkout, with the help of the run script:
up some files (`package.js` and `package.json`). This is done by the handy
run script:
### Windows ### Windows
git clone https://github.com/RubaXa/Sortable.git git clone https://github.com/RubaXa/Sortable.git
cd Sortable cd Sortable
git checkout dev # git checkout dev # optional
cd meteor\example meteor\example\run.bat
run.bat
### Elsewhere ### Elsewhere
git clone https://github.com/RubaXa/Sortable.git git clone https://github.com/RubaXa/Sortable.git
cd Sortable cd Sortable
git checkout dev # git checkout dev # optional
meteor/example./run.sh meteor/example/run.sh
## Prior art ## [Prior art](http://slides.com/dandv/prior-art)
### Differential ### Differential

11
meteor/example/run.bat

@ -1,4 +1,7 @@
mklink ..\..\package.js "meteor/package.js" @echo off
mklink package.json "../../package.json" REM Sanity check: make sure we're in the directory of the script
meteor run set DIR=%~dp0
del ..\..\package.js package.json cd %DIR%
set PACKAGE_DIRS=..\..\
meteor run %*

14
meteor/example/run.sh

@ -1,15 +1,5 @@
# sanity check: make sure we're in the root directory of the example # sanity check: make sure we're in the root directory of the example
cd "$( dirname "$0" )" cd "$( dirname "$0" )"
# delete temp files even if Ctrl+C is pressed # let Meteor find the local package
int_trap() { PACKAGE_DIRS=../../ meteor run "$@"
echo "Cleaning up..."
}
trap int_trap INT
ln -s "meteor/package.js" ../../package.js 2>/dev/null
ln -s "../../package.json" package.json 2>/dev/null
meteor run "$@"
rm ../../package.js package.json

2
meteor/runtests.bat

@ -1,5 +1,5 @@
REM Test Meteor package before publishing to Atmospherejs.com
@echo off @echo off
REM Test Meteor package before publishing to Atmospherejs.com
REM Sanity check: make sure we're in the directory of the script REM Sanity check: make sure we're in the directory of the script
set DIR=%~dp0 set DIR=%~dp0

Loading…
Cancel
Save