1 Star 1 Fork 1

Song/webpack-gulp-env

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
snippets.cson 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
eyas 提交于 2015-07-24 15:35 . Signed-off-by: eyas
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.source.js':
'react Class':
'prefix': 'rcc'
'body': """
import React from 'react';
export default class ${1:ComponentName} extends React.Component{
constructor(){
super();
this.state = {};
}
render(){
return (
<div>$2</div>
)
}
}
"""
'import':
'prefix': 'ip'
'body': 'import $1 from \'$2\'; '
'import React':
'prefix': 'iprc'
'body': 'import React from \'react\'; '
'require':
'prefix':'re'
'body': 'var $1 = require("$2");'
'Gulp Task':
'prefix': 'gt',
'body': """
gulp.task('${1:taskName}',function(){
${2:console.log('This is a New task');}
})
"""
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/yuesong/webpack-gulp-env.git
[email protected]:yuesong/webpack-gulp-env.git
yuesong
webpack-gulp-env
webpack-gulp-env
master

搜索帮助