Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
generator-kissy-pie
Advanced tools
A yeoman generator for kissy pie 【v0.2】
npm install yo -g
第一步:
$ npm install generator-kissy-pie -g
第二步, 在你的应用目录内:
$ mkdir my-app && cd myapp
$ yo kissy-pie #执行yeoman
第三步,创建page
$ yo kissy-pie:page
打开abc.json
,找到这个部分:
"_kissy_pie" : {
"groups": {},
"styleEngine": "sass",
"defaults": {
"timestamp": "201279879",
"buildPages": [ "home/1.0" ]
}
}
设置你需要打包的page,原码版本和对应的时间戳:
如,需要将index
页面的1.0
版本打包到时间戳20130508
:
"defaults": {
"timestamp": "20130508",
"buildPages": [ "index/1.0" ]
}
之后则可以直接使用 grunt
或者 grunt page
进行打包,或者使用grunt common
对common目录进行打包。
另外还可以使用grunt watch
进行文件监控。
使用命令行将覆盖Gruntfile.js
中对于build目标的配置,具体使用如下:
单个页面:
* 打包: `grunt page --target home/1.0 --ts 20130412`
* watch: `grunt watch --target home/1.0 --ts 20130412`
多个页面:
* 打包: `grunt page --target home/1.0,intro/2.0 --ts 20130506`
* watch: `grunt watch --target home/1.0,intro/2.0 --ts 20130506`
FAQs
Yeoman Generator for kissy pie
We found that generator-kissy-pie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.