fix output dir issue, add test files
ignore lib js files