• Stars
    star
    133
  • Rank 271,640 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 12 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CSS/Stylus live editor

Web based tool for rapid stylesheet development with live preview and debug information.

Styler screenshot

Introduction video from LxJS: http://www.youtube.com/watch?v=2VSU4gjxYpU

Installation

[sudo] npm install -g styler
styler --help
styler

Getting started

Once you have Styler running you need to connect your own webpage to it. Follow the directions on the Styler frontpage to do that.

If your connecting to the site for the first time you need to make a new project for it.

Base URL

Defines what pages are part of the project. You would usually want to set it to the domain name you are using so that all the subpages also work.

Source locations

Mappings between the URLs you page is using and the folders from your hard drive containing the source files. You have to make sure they are in the right level. For example if your URL is http://mydomain.com/css/ it matches the path /path/to/my/app/public_dir/css and if the URL is just http://mydomain.com/ it means matching path is /path/to/my/app/public_dir.

All paths are automatically validated. If you see green checkmarks you have probably found the correct folder.

If you want Styler to automatically create source files based on the stylesheets it sees on the page set the Source folder to an empty directory.

Tutorials

Live preview in iOS/Android

More tutorials and a list of features are on the way. If you get into trouble start a new issue.

Command line options

allowed - For security reasons by default Styler only allows local connections. If you want to allow other computers to connect(either as clients or controllers) you must list their IPs(or wildcards) in here.

root - Styler can't access files outside this directory. Defaults to / or primary hard drive on Windows.

port - Server port. Defaults to 5100.

log - One of debug, info, notice, warning, error. Defaults to info.

nologfile - Switches off writing debug log files. These logs will be never sent but they may be useful if you want to report (crashing) bugs.

reset - Clear all previous projects info and configuration.

pfx - Directory where the configuration is saved/loaded. Defaults to your user directory.

Building from source:

git clone https://github.com/tonistiigi/styler.git styler
cd styler
git submodule update --init --recursive
npm install
lib/backend/styler --help
lib/backend/styler

More Repositories

1

binfmt

Cross-platform emulator collection distributed with Docker images.
Go
933
star
2

audiosprite

Jukebox/Howler/CreateJS compatible audio sprite generator
JavaScript
680
star
3

xx

Dockerfile cross-compilation helpers
Shell
375
star
4

buildkit-pack

buildkit frontend for buildpacks
Go
129
star
5

mega

THIS REPO IS NOT MAINTAINED. Unofficial Node.js SDK for Mega
JavaScript
118
star
6

wasm-cli-plugin

Go
56
star
7

fsutil

Go
52
star
8

presentty

Go
45
star
9

buildcache

Go
42
star
10

go-actions-cache

Go
38
star
11

llb-gobuild

Go
21
star
12

ipizza

Node.js implementation for Estonian(and some other) banklink payments.
JavaScript
16
star
13

vzor

gvisor hacks
Go
13
star
14

megaspeaker

Mobile phones playing together in perfect sync
JavaScript
13
star
15

go-archvariant

Go
6
star
16

vendor.js

Javascript assets downloader. This repo is no longer maintained. Use visionmedia/asset instead, or browserify or component.
CoffeeScript
5
star
17

dockerfile

development happens in https://github.com/moby/buildkit/tree/master/frontend/dockerfile
Go
5
star
18

go-rosetta

Go
4
star
19

buildkit-alpine

Buildkit Alpine frontend. Only demo purposes for now
Go
4
star
20

riscv-dockerfiles

Dockerfile
3
star
21

redisparse

Streaming Redis response parser
JavaScript
3
star
22

copy

Go
2
star
23

ci-token-server

Go
2
star
24

docker-bpftool

Dockerfile
2
star
25

go-csvvalue

Single line CSV parser
Go
2
star
26

units

Go
1
star
27

drawmusic

Children game where you draw stuff and hear it play
JavaScript
1
star
28

kv-redis

Redis endpoint for dominictarr/kv
JavaScript
1
star
29

retina.js

High quality images on every zoom level. This project has been abandoned. Just use media queries or -webkit-image-set.
CoffeeScript
1
star
30

repo-copy

Go
1
star
31

pangalink.net-client

Node.js client and CLI utility for pangalink.net
JavaScript
1
star
32

buildkit_http_sample

Go
1
star
33

nsenter

Dockerfile
1
star