Command line interface to PostCSS theft plugin.
$ npx larceny -ca -u https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css -s .btn -t .my-button -f my-style.css
$ npm -g install larceny
You can skip this step if you use -c
to create target file and -a
to append then missing .my-button target selector.
$ echo '.my-button {}' > style.css
$ larceny -u https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css -s .btn -t .my-button -f style.css
$ cat style.css
.my-button {
display: inline-block;
font-weight: 400;
line-height: 1.25;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: .5rem 1rem;
font-size: 1rem;
border-radius: .25rem;
-webkit-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
-V, --version output the version number
-u, --url [url] Url of remote file.
-s, --source-selector [selector] Source selector
-t, --target-selector [selector] Target selector (in local file)
-f, --file [path] Add the specified type of cheese [styles.css]
-c, --create-file Create css file if it does not exist
-a, --append-target Create target selector if missing
-h, --help output usage information