slark

3.0.2 • Public • Published

文档

ued

环境准备

系统软件

  • nodejs
  • grunt

nodejs

download from nodejs

grunt

   #linux
   $ npm install -g grunt-cli 
   #mac用户
   $ sudo npm install -g grunt-cli 

安装

安装slark

   #linux
   $ npm install -g slark 
   #mac用户
   $ sudo npm install -g slark 

初始化项目

   $ slark init your_project_path_here_or_there

安装插件

   $ cd your_project_path_here_or_there
   $ npm install

配置

   $ edit Gruntfile.js #更新Gruntfile里面的配置

启动

   $ grunt server

发布

   $ grunt

更新主模块

   $ npm update slark

   $ slark update path_for_project

目录结构

   /src    # slark源代码所在位置
   /lib    # slark 引用lib 所在位置
   /entry  # 业务代码所在地,project1 是一个示例代码
   /dist   # grunt 运行后的js和css的build目的地

更新日志

官网changelog

Package Sidebar

Install

npm i slark

Weekly Downloads

4

Version

3.0.2

License

ISC

Last publish

Collaborators

  • xiaoyuren