自用 脚手架 cxn-cli use vue-template & publish https://www.npmjs.com/package/cxn-cli - 续更 填坑之路: [1] .cxnrc 文件: 在 C:\Users\Administrator.PC-20170224PLKZ 用户目录下 registry=xn213 type=users [2] Error: Couldn't find preset "env" relative to directory "D:\\Acx\\xn-cli" debugger: 安装依赖 babel-preset-env [3] 发布: 需要登录npm: npm login, 完了使用 npm publish 发布到npm上 [4] 关于包名: 在 package.json → "name": "cxn-cli", 发布的包名, 不能和npm上的重复, 重复会报错没有权限上传这个包, 因为是别人发布的,,, 版本: "version": "1.0.1", 升级一版根据相关规则修改,然后发布; [5] 命令行创建项目命令: cxn init vue-template myvue 其中 vue-template 是要克隆的github上模板, myvue 是创建在本地的 自己的项目名字

Continue reading

常用 git

git 常用 Cmder 集成工具, 可以使用别名 命令: git branch git checkout <branchname> git status git add . git commit -m 'gitmessage' git push 生成公钥: ssh-keygen -t rsa -C "youremail" 配置账户: git config --global user.name <username> git config --global user.email <useremail> 远端: 查看远端仓库: git remote -v 克隆修改文件夹名字: git clone <repo> <filename>, filename 为本地文件夹名, 将内容克隆到这个文件夹 git clone git@github.com:xn213/blog.git public 远端为blog的项目克隆到 public 下 Problems: 问题:gitlab 配置了SSH key,但是每次提交的时候还是要输入用户名和密码

Continue reading

Chrome Extensions

自用谷歌浏览器插件 - 持续更新 Chrome Extension vuetools web前端助手: FeHelper,Chrome浏览器插件,包含一些前端实用的工具 chrome 跨域问题解决 Allow-Control-Allow-Origin Allow CORS: Access-Control-Allow-Origin 下载 Vimium: 键盘操作更便捷 Vimium = Vim + Chromium 超方便的快捷键 画词翻译: google应用商店 下载.crx文件 crxMouse Top Gestures Clear Cache 拷贝为 Markdown wappalyzer JSON Viewer: The most beautiful and customizable JSON/JSONP highlighter that your eyes have ever seen. It is a Chrome extension for printing JSON and JSONP.

Continue reading

VSCode Extensions

自用 VSCode 插件 - 持续更新 Settings Sync 编辑器设置同步(到github),包括插件,配置等。 Vue 插件 Vetur 目前 VSCode 上面最好用的 Vue 插件。能够实现在 .vue 文件中: 语法错误检查,包括 CSS/SCSS/LESS/Javascript/TypeScript 语法高亮,包括 html/jade/pug css/sass/scss/less/stylus js/ts emmet 支持 代码自动补全(目前还是初级阶段),包括 HTML/CSS/SCSS/LESS/JavaScript/TypeScript 配合 ESLint 插件食用效果更佳。 Vue VSCode Snippets Vue语法片段, 增强您的 Vue 工作流程 VueHelper 另一款 Vue 语法片段 Import Cost 引入包大小计算, 对于项目打包后体积掌握很有帮助 代码格式化 AutoFileName // Auto Close Tag // Auto Rename Tag

Continue reading

Author's picture

xn213

余生 倾尽天下

FE

Peking