flow-view

v2.1.0
is a visual editor for Dataflow programming, powered by React/Redux
dataflow visual svg editor react redux

babel

for x in Canvas.js flow-view.js containers actions components reducers util; do npm run babel:$x; done

babel:Canvas.js

BABEL_ENV=umd babel --out-dir lib Canvas.js

babel:flow-view.js

BABEL_ENV=umd babel --out-dir lib flow-view.js

babel:components

BABEL_ENV=umd babel components --out-dir lib/components

babel:reducers

BABEL_ENV=umd babel reducers --out-dir lib/reducers

babel:containers

BABEL_ENV=umd babel containers --out-dir lib/containers

babel:actions

BABEL_ENV=umd babel actions --out-dir lib/actions

babel:util

BABEL_ENV=umd babel util --out-dir lib/util

browserify

browserify -r ./${npm_package_name}.js:${npm_package_name} -t babelify -o dist/${npm_package_name}.js

check-deps

npm outdated

cp

npm run cp:examples

cp:examples

cp examples/basic/usage.js gh-pages/_includes/jscode/basic

build

npm run browserify && npm run minify && npm run jekyll; git status

gh-pages:_data

for x in package.json tags.json; do npm run gh-pages:_data:$x; done

gh-pages:_data:package.json

cp package.json gh-pages/_data/

gh-pages:_data:tags.json

wget https://api.github.com/repos/fibo/algebra/tags -O gh-pages/_data/tags.json

gh-pages:push

git subtree --prefix gh-pages push origin gh-pages

gh-pages:pull

git subtree --prefix gh-pages pull origin gh-pages

homepage

echo "--- title: $npm_package_name flow: /empty.json ---" > gh-pages/index.md; cat README.md >> gh-pages/index.md

jekyll

npm run homepage; npm run cp; cd gh-pages; jekyll build; cd ..

jekyll:serve

npm run browserify; npm run homepage; npm run cp; cd gh-pages; jekyll serve; cd ..

lint

standard flow-view.js Canvas.js reducers/*js util/*js containers/*js; npm run lint:components; npm run lint:test

lint:components

cd components; standard; cd ..

lint:test

cd test; standard; cd ..

minify

cd dist; uglifyjs ${npm_package_name}.js --source-map ${npm_package_name}.map --output ${npm_package_name}.min.js --compress --mangle --preamble "// Software: ${npm_package_name} // Version: ${npm_package_version} // Homepage: ${npm_package_homepage} // License: ${npm_package_license}"; cd -

pretest

npm run babel

preversion

npm run build; npm run babel

postversion

git push origin v${npm_package_version}; npm publish; npm run push

pull

git pull origin master && npm run gh-pages:pull

push

git push origin master && npm run gh-pages:push

start

BABEL_ENV=development NODE_PATH=. budo --open examples/basic/usage.js -- -t babelify -p livereactload

postpublish

npm run gh-pages:_data; git commit -am ':arrow_up: updated version'; npm run push

postupdate-deps

npm test && git commit -am 'updated deps' || git checkout -- package.json

test

for x in serverside components; do npm run test:$x; done

test:serverside

NODE_PATH=lib tape test/serverside/*.js

test:components

NODE_PATH=. tape -r babel-register test/components/*.js

update-deps

npm update --save --dev

Metadata

  • MIT
  • Whatever
  • Gianluca Casati
  • released 6/18/2016

Downloads

Maintainers