lanxyou / spm-build

Standard cmd module build.

Home Page:https://spmjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spm-build

the build tools for spmjs.org


spm build is designed to build standard cmd modules.

自定义构建,请不要用这个库,除非你清楚自己在做什么!

Customized building should use these grunt tasks:

Standard Module

A standard module contains:

  • a package.json
  • a src directory
  • a dist directory
package.json
src/
  module-name.js
dist/
  module-name.js   <-- will be created by spm-build

Learn more on package.json.

Install

Install spm-build with npm:

$ npm install spm-build -g

API

var builder = require('spm-build')

builder.loadTasks()

It will load all tasks of the default build. Including:

  • grunt-cmd-transport
  • grunt-cmd-concat
  • grunt-contrib-uglify
  • grunt-contrib-copy
  • grunt-contrib-cssmin
  • grunt-contrib-clean
  • spm-install
  • spm-newline

If you are using spm-build to run the grunt task, you can also load these tasks with:

grunt.loadGlobalTasks('spm-build')

Changelog

Jan 24th, 2013 0.3.13

Lock grunt-contrib-uglify's version to avoid uglify-js being update to high version.

Sep 5th, 2013 0.3.10

Update dependencies

Aug 15, 2013 0.3.9

Fix #34

Aug 15, 2013 0.3.8

Update dependencies

Jul 30, 2013 0.3.7

export parseOptions

Jun 26, 2013 0.3.6

support styleBox option

Jun 25, 2013 0.3.5

  • support include config
  • install will throw exception

Jun 24, 2013 0.3.4

  • force option for spm.install
  • output support for object

Jun 18, 2013 0.3.3

  • Update dependencies

Jun 03, 2013 0.3.2

  • Fix source option in package.json
  • Update dependencies

May 21, 2013 0.3.1

  • Pass options from command line to config

May 5, 2013 0.3.0

  • Update dependencies.
  • Fix on options, -I, -O.

April 23, 2013 0.2.0

  • Fix on commander options.
  • Add --include option for build.

April 23, 2013 0.1.2

  • Update dependencies.
  • Show error on postinstall scripts.

April 16, 2013 0.1.1

Update dependencies.

April 15, 2013 0.1.0

First version.

About

Standard cmd module build.

https://spmjs.org


Languages

Language:JavaScript 100.0%