# cmis-angularjs-directive **Repository Path**: weiqin_chen/cmis-angularjs-directive ## Basic Information - **Project Name**: cmis-angularjs-directive - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2017-07-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #cmis-angularjs-directive * 安装NodeJS https://nodejs.org/en/ * 安装Sass http://sass-lang.com/install -- sudo gem install sass * 安装开发工具 sudo npm install -g bower gulp-cli coffee-script * 下载js依赖 (在项目目录下) bower install * 下载开发环境依赖 (在项目目录下) npm install 如果npm 下载缓慢.可以安装cnpm来替代npm sudo npm install -g cnpm 安装成功后就可以cnpm install这样了 window系统需要先 cd demo 目录 ./fixSoftlinkInWinSys 重新生成下softlink 启动demo gulp serve 打包项目 gulp ###开发流程 * terminal.app * cd your_project_path * (if you do not have pip) run easy_install pip * run sudo pip install requirement.txt * cd demo * copy config-template.html to config.html add your own env config * run python configCmis.py yourEnv #目录结构 - src 开发文件目录 - dist 打包后的目录 - demo 演示目录 ##开发IED PHPSTORM * 需要添加CoffeeScript和Scss 的 File Watchers * 打开coffee或scss文件时IDE会提示. * 如自己配置需要: PhpStorm -> Preferences -> File Watchers -> + #测试 ### 准备 * sudo npm install * sudo npm install -g protractor * sudo webdriver-manager update (可能需要翻墙) * 可能需要升级nodejs ### 单元测试 * 代码 tests/unit * karma start karma.conf.js ### 端对端测试 * 代码 tests/e2e * protractor e2e.conf.js * 参考: http://angular.github.io/protractor/#/tutorial