Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly Summary - 1 #3

Open
guitong opened this issue Feb 22, 2018 · 0 comments
Open

Weekly Summary - 1 #3

guitong opened this issue Feb 22, 2018 · 0 comments
Labels
weekly Weekly Summary

Comments

@guitong
Copy link
Owner

guitong commented Feb 22, 2018

🐿 安装node-sass的正确姿势

参考issue链接:lmk123/blog#28

我一般使用下面的命令:

SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass

还可以添加.npmrc文件,或者使用梯子。


🐿 命令行工具 - concurrently

npm install concurrently

同时运行多个命令。

Usage

需要用引号包裹单独的命令:

concurrently "cmd1 arg" "cmd2 arg"

package.json中需要转义:

"start": "concurrently \"cmd1 arg\" \"cmd2 arg\""

🐿 Moment.js

Parse, validate, manipulate, and display dates and times in JavaScript.

时间..日期..格式.. 这么麻烦的东西,还是交给库去做吧.. 🔨link

Format Dates

moment().format('MMMM Do YYYY, h:mm:ss a'); // February 26th 2018, 6:59:21 pm
moment().format('dddd');                    // Monday
moment().format("MMM Do YY");               // Feb 26th 18
moment().format('YYYY [escaped] YYYY');     // 2018 escaped 2018
moment().format();                         

Relative Time , Calendar Time , Multiple Locale Support ...


@guitong guitong added the weekly Weekly Summary label Feb 22, 2018
@guitong guitong changed the title Weekly Summary - FEB[19 ... 25] Weekly Summary - 1 Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
weekly Weekly Summary
Projects
None yet
Development

No branches or pull requests

1 participant