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
insecure
rubaxa:sortable
dburles:mongo-collection-instances
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
callback-hook@1.0.3
check@1.0.5
dburles:mongo-collection-instances@0.3.3
dburles:mongo-collection-instances@0.3.4
ddp@1.1.0
deps@1.0.7
ejson@1.0.6
@ -21,7 +21,7 @@ id-map@1.0.3
insecure@1.0.3
jquery@1.11.3_2
json@1.0.3
lai:collection-extensions@0.1.3
lai:collection-extensions@0.1.4
launch-screen@1.0.2
livedata@1.0.13
logging@1.0.7
@ -39,13 +39,13 @@ reactive-var@1.0.5
reload@1.1.3
retry@1.0.3
routepolicy@1.0.5
rubaxa:sortable@1.2.0
rubaxa:sortable@1.2.1
session@1.1.0
spacebars@1.0.6
spacebars-compiler@1.0.6
templating@1.1.1
tracker@1.0.7
twbs:bootstrap@3.3.4
twbs:bootstrap@3.3.5
ui@1.0.6
underscore@1.0.3
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
to the right.
## Usage
The example uses the local package from the checkout, so it needs to wire
up some files (`package.js` and `package.json`). This is done by the handy
run script:
The example uses the local package from the checkout, with the help of the run script:
### Windows
git clone https://github.com/RubaXa/Sortable.git
cd Sortable
git checkout dev
cd meteor\example
run.bat
# git checkout dev # optional
meteor\example\run.bat
### Elsewhere
git clone https://github.com/RubaXa/Sortable.git
cd Sortable
git checkout dev
meteor/example./run.sh
# git checkout dev # optional
meteor/example/run.sh
## Prior art
## [Prior art](http://slides.com/dandv/prior-art)
### Differential

11
meteor/example/run.bat

@ -1,4 +1,7 @@
mklink ..\..\package.js "meteor/package.js"
mklink package.json "../../package.json"
meteor run
del ..\..\package.js package.json
@echo off
REM Sanity check: make sure we're in the directory of the script
set DIR=%~dp0
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
cd "$( dirname "$0" )"
# delete temp files even if Ctrl+C is pressed
int_trap() {
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
# let Meteor find the local package
PACKAGE_DIRS=../../ meteor run "$@"

2
meteor/runtests.bat

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

Loading…
Cancel
Save