Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

New YUI build tool based on Gearjs, so let's shift some gears

License

NotificationsYou must be signed in to change notification settings

yui/shifter

Repository files navigation

The purpose of this project is to replace YUI's use of our old antBuilder.

We have out grown our old builder, so it was time to build a new one!

Linting

As of0.1.0,JSHint is the default lint tool used byshifter. We maintain alist of our lint preferences in theyui-lint project.shifter willdefault to our rules unless--lint config is passed. Then it will search up the file tree and attemptto load your custom.jshintrc file.

Documentation

Documentation can be found here

Build Status

Build Status

Install

npm -g install shifter

Some Options

More detail can be found in thedocumentation

$ shifter -hblazingly fast builds with shifterpass no arguments and shifter will build the module from the current directory   -v/--version            show version   -h/--help               show this stuff   -m/--modules <module>   limit the modules to build (array: -m foo -m bar)   --strict                add "use strict" to module wrapper   --walk                  Walk the current directory and shift all builds. (cd yui3/src && shifter --walk)                               -m/--modules also supported here for filtering   --watch                 Watch the current module and rebuild on file change (if meta file, a loader build will launch)                               --quiet to mute stdout from sub build

Usage

Shifter will parse your current*.properties files and convert them into abuild.json file thatit can process. It only imports the relevant settings required to build the module.

It does not import module meta-data

Instead, Shifter parses the meta-data from the modulesmeta/*.json files and uses that instead.So you don't have to declare your meta-data in more than one place now.

Watching

Shifter can watch your module for changes and build for you. It will only watch files in the./js,./css,./assets and./meta directories. If a file is changed, it will rebuild the currentmodule. If a meta file is changes,Loader will also be built (requires latest code).

Migrating

Shifter is designed to work side by side with our current builder (for now) so you don't have toswitch over to using it fully if it doesn't work properly for you. Just don't delete your*.propertiesfiles until you are sure that Shifter builds your module properly. If it doesn't, file a ticket andwe'll get it fixed up ASAP.

Shifter will read abuild.json file if it exists, if one doesn't and it finds a*.properties fileit will generate thebuild.json from them. So if you have issues with the build, just delete thebuild.jsonfile and have Shifter regenerate it after your issue is fixed.

GearJS

Shifter is built usingGearJS


[8]ページ先頭

©2009-2025 Movatter.jp