Changeset - bd0c83b063df
[Not reviewed]
default
0 3 0
Drew Perttula - 7 years ago 2018-05-04 07:58:13
drewp@bigasterisk.com
bower, polymer, coffee updates
Ignore-this: 39b3c5edc1ea34c1f138c538341269f
3 files changed with 10 insertions and 4 deletions:
0 comments (0 inline, 0 general)
light9/web/lib/bower.json
Show inline comments
 
@@ -4,27 +4,32 @@
 
    "N3.js": "https://github.com/RubenVerborgh/N3.js.git#04f4e21f4ccb351587dc00a3f26340b28d4bb10f",
 
    "QueryString": "http://unixpapa.com/js/QueryString.js",
 
    "async": "https://github.com/caolan/async.git#^1.5.2",
 
    "color": "https://github.com/One-com/one-color.git#^3.0.4",
 
    "iron-ajax": "PolymerElements/iron-ajax#~2.1.3",
 
    "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^2.1.0",
 
    "isotope": "^3.0.4",
 
    "isotope-fit-columns": "^1.1.3",
 
    "jquery": "^3.3.1",
 
    "jquery-ui": "~1.11.4",
 
    "jquery.columnizer": "https://github.com/adamwulf/Columnizer-jQuery-Plugin.git#^1.6.2",
 
    "knockout": "knockoutjs#^3.4.2",
 
    "paper-button": "PolymerElements/paper-button#^2.1.0",
 
    "paper-dialog": "PolymerElements/paper-dialog#^2.1.0",
 
    "paper-item": "PolymerElements/paper-item#2.1.0",
 
    "paper-listbox": "PolymerElements/paper-listbox#2.1.0",
 
    "paper-radio-button": "PolymerElements/paper-radio-button#^2.1.0",
 
    "paper-radio-group": "PolymerElements/paper-radio-group#^2.1.0",
 
    "paper-slider": "PolymerElements/paper-slider#~2.0.6",
 
    "paper-styles": "PolymerElements/paper-styles#^2.1.0",
 
    "rdflib.js": "https://github.com/linkeddata/rdflib.js.git#920e59fe37",
 
    "rdfstore": "https://github.com/antoniogarrote/rdfstore-js.git#b3f7c0c9c1da9b26261af0d4858722fa982411bb",
 
    "shortcut": "http://www.openjs.com/scripts/events/keyboard_shortcuts/shortcut.js",
 
    "sylvester": "~0.1.3",
 
    "underscore": "~1.8.3"
 
    "underscore": "~1.8.3",
 
    "polymer": "Polymer/polymer#^2.0.0"
 
  },
 
  "resolutions": {
 
    "webcomponentsjs": "^v1.1.0",
 
    "polymer": "^2.0.0"
 
  }
 
}
makefile
Show inline comments
 
@@ -54,49 +54,49 @@ bower: node_modules/bower/bin/bower bin/
 

	
 
npm:
 
	npm install
 
	cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js
 

	
 
bin/ascoltami2: gst_packages link_to_sys_packages
 

	
 
effect_node_setup: create_virtualenv packages binexec install_python_deps
 

	
 
tkdnd_build:
 
	# get tkdnd r95 with subversion
 
	# then apply tkdnd-patch-on-r95 to that
 
	cd tkdnd/trunk
 
	./configure
 
	make
 

	
 
env-mypy/bin/mypy:
 
	mkdir -p env-mypy
 
	virtualenv -p /usr/bin/python3  env-mypy/
 
	env-mypy/bin/pip install mypy==0.590 lxml==4.2.1
 

	
 
### build ###
 

	
 
coffee:
 
	zsh -c 'coffee --map -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
 
	zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee'
 

	
 
mypy-collector: env-mypy/bin/mypy
 
	env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
 

	
 
mypy-paint: env-mypy/bin/mypy
 
	env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
 

	
 
### show ###
 

	
 
darcs_show_checkpoint:
 
	darcs add --quiet --recursive ${LIGHT9_SHOW} 
 
	darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
 

	
 
### pi setup ###
 

	
 
raspberry_pi_packages:
 
	sudo apt-get install python-picamera python-dev python-twisted python-virtualenv
 

	
 
raspberry_pi_virtualenv:
 
	mkdir -p env_pi
 
	virtualenv --system-site-packages env_pi
 
	env_pi/bin/pip install cyclone 'coloredlogs==6.0'
 

	
 
### arduino build ###
 
@@ -105,30 +105,30 @@ raspberry_pi_virtualenv:
 
	sudo aptitude install arduino-mk
 

	
 
arduino_upload: /usr/share/arduino/Arduino.mk
 
	cd rgbled
 
	make upload
 

	
 
### testing ###
 

	
 
NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect"
 

	
 
tests:
 
	eval env/bin/nosetests -x $(NOSEARGS)
 

	
 
tests_watch:
 
	eval env/bin/nosetests --with-watcher $(NOSEARGS)
 

	
 

	
 
tests_coverage:
 
	eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/  --cover-package=light9 --cover-branches $(NOSEARGS)
 

	
 
test_js_init:
 
	npm install
 

	
 
test_js:
 
	coffee -c light9/web/*.coffee
 
	node_modules/coffeescript/bin/coffee -c light9/web/*.coffee
 
	node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
 

	
 
test_js_watch:
 
	# have coffee continuously running
 
	watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors
package.json
Show inline comments
 
{
 
  "name": "light9",
 
  "version": "1.0.0",
 
  "repository": "...",
 
  "license": "MIT",
 
  "description": "Mini instructions:",
 
  "main": "index.js",
 
  "directories": {
 
    "test": "test"
 
  },
 
  "dependencies": {
 
    "@webcomponents/shadycss": "^1.1.3",
 
    "@webcomponents/webcomponentsjs": "^1.2.0",
 
    "bower": "^1.8.0",
 
    "bower": "^1.8.4",
 
    "browserify": "^16.2.0",
 
    "chai": "^3.5.0",
 
    "coffeescript": "^2.3.0",
 
    "d3": "^5.1.0",
 
    "mocha": "^2.5.3",
 
    "n3": "^1.0.0-alpha",
 
    "pixi.js": "^4.7.3"
 
  },
 
  "devDependencies": {
 
    "mocha": "^2.5.3"
 
  },
 
  "scripts": {
 
    "test": "mocha"
 
  }
 
}
0 comments (0 inline, 0 general)