nodebox/img.js

语言: JavaScript

git: https://github.com/nodebox/img.js

像素操作库
A pixel manipulation library
README.md (中文)

img.js

img.js是一个用于像素操作的JavaScript库。

发展

我们使用一组npm脚本来构建版本:

在开发期间

运行npm run watchify将在源更改时自动在构建目录中创建新构建。

更新dist

运行npm run dist将在dist文件夹中构建完整且缩小版的g.js.你也可以跑 npm分别运行browserify和npm run uglify。

发布发布

  1. 更新package.json和bower.json中的版本号。
  2. 运行npm run dist以更新dist文件夹中的文件。
  3. 提交(git commit -a)并创建一个标签(例如git tag 1.2.1)。推和推标签(git push && git push --tags)。
  4. 运行npm publish将包发布到npm。你不需要为Bower做任何事情。

积分

  • StefanGabriëlsstefan@emrg.be

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

img.js

img.js is a JavaScript library for pixel manipulation.

Development

We use a set of npm scripts to build releases:

During development

Running npm run watchify will automatically create new builds in the build directory whenever the source changes.

Updating the dist

Running npm run dist will build a complete and minified version of g.js in the dist folder. You can also run
npm run browserify and npm run uglify separately.

Publishing a release

  1. Update the version number in package.json and bower.json.
  2. Run npm run dist to update the files in the dist folder.
  3. Commit (git commit -a) and create a tag (e.g. git tag 1.2.1). Push and push tags (git push && git push --tags).
  4. Run npm publish to publish the package to npm. You don't have to do anything for Bower.

Credits