ethanlin-twer / frontend-nanodegree-arcade-game Goto Github PK
View Code? Open in Web Editor NEWhttp://linesh.tw/frontend-nanodegree-arcade-game
http://linesh.tw/frontend-nanodegree-arcade-game
yad babel-core babel-preset-es2015 babel-preset-stage-0
work with es7 for babel:
自己根据 ES6 Styleguide 进行了一些取舍:
npm install -g eslint
yad eslint
eslint --init
or copy existing eslint styleguideeslint js/ test/
to npm scriptsnpm run lint
to .travis.yml but disable it for the moment后两个太难,暂时放弃了。
#!/bin/sh
commit_regex="\[Linesh\]\[#\d*\]\s\(Chore\|Feature\|Fix\|Docs\|Style\|Refactor\|Test\):\s[a-z]"
error_msg="Aborting commit, please double check your commit message."
if ! echo "$1" | grep -iqE "$commit_regex" ;
then
echo "$error_msg" >&2
exit 1
fi
build
script: browserify js/*.js -o dist/bundle.js
buildDev
script: watchify js/*.js -o dist/bundle.js -t babelify
code to copy:
yad babel-register
for mocha to compile es6 tests"test": "mocha test/ --recursive --compilers js:babel-core/register"
index.html
1 on 1 scheduled: https://calendly.com/udacity-china/1-on-1/03-20-2017
yad mocha chai sinon
Read recommended es6 styleguide and eslint configurations:
npm init
npm install -g yarn
yarn.lock
filenpm test
in travis script sectionnode_modules
to .gitignore
filePitfall: use yarn to install dependencies every time after yarn.lock is introduced instead of using npm. Otherwise dependencies can't get resolved correctly by travis calling yarn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.