All Projects → cssmagic → stylus-playground

cssmagic / stylus-playground

Licence: MIT license
Stylus environment for practice and testing.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to stylus-playground

Angular-Gulp-Boilerplate
Clean but full-featured AngularJS boilerplate using Gulp workflow and best practices
Stars: ✭ 30 (+87.5%)
Mutual labels:  browsersync, autoprefixer
Long Haul
A minimal, type-focused Jekyll theme.
Stars: ✭ 524 (+3175%)
Mutual labels:  browsersync, autoprefixer
gulp-starter-kit
My Gulp Starter Kit
Stars: ✭ 91 (+468.75%)
Mutual labels:  browsersync, autoprefixer
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (+306.25%)
Mutual labels:  browsersync, autoprefixer
frontie
Frontie is a front-end boilerplate. Gulp | Twig.js | Sass | Autoprefixer | Browsersync | Bootstrap 4 Grid System & Responsive Breakpoints
Stars: ✭ 28 (+75%)
Mutual labels:  browsersync, autoprefixer
Dev Toolkit
Universal Development Toolkit for Javascript People
Stars: ✭ 134 (+737.5%)
Mutual labels:  browsersync, autoprefixer
genesis-sample-task-runner
Gulp workflow for Auto prefixing, Sass compiling, CSS minification, automatic browser reloading and more
Stars: ✭ 23 (+43.75%)
Mutual labels:  browsersync, autoprefixer
Fabium
+100 for productivity
Stars: ✭ 108 (+575%)
Mutual labels:  browsersync, autoprefixer
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+212.5%)
Mutual labels:  browsersync, autoprefixer
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (+668.75%)
Mutual labels:  browsersync, autoprefixer
html-sass-jumpstart
Minimal Sass/HTML Template Site - dart sass powered, includes stylelint and prettier, and autoprefix upon build. develop script includes hot-reload via browsersync.
Stars: ✭ 82 (+412.5%)
Mutual labels:  browsersync, autoprefixer
gw-starter-kit
PEPELAC - Современный инструментарий для вёрстки и создания статичных сайтов с использованием Webpack
Stars: ✭ 30 (+87.5%)
Mutual labels:  browsersync
magento-2-gulp
Gulp for Magento 2. It works with core Magento styles (less) and structure. Uses default theme configs from dev/tools/grunt/configs/local-themes.js.
Stars: ✭ 37 (+131.25%)
Mutual labels:  browsersync
Forward-Framework
A killer WordPress theme framework built using underscores, gulp, sass, bourbon neat, bower & browsersync.
Stars: ✭ 23 (+43.75%)
Mutual labels:  browsersync
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+1143.75%)
Mutual labels:  browsersync
selene
A opinionated Wordpress base theme based on Sage.
Stars: ✭ 31 (+93.75%)
Mutual labels:  browsersync
Frontend-StarterKit
Frontend StarterKit - [Gulp 4, Pug, SCSS, ES6+]
Stars: ✭ 13 (-18.75%)
Mutual labels:  browsersync
Lite Server
Lightweight node server
Stars: ✭ 2,137 (+13256.25%)
Mutual labels:  browsersync
Gopablo
🐺 Static site generator.
Stars: ✭ 166 (+937.5%)
Mutual labels:  browsersync
Shopify Webpack Themekit
Shopify development tool using webpack and themekit
Stars: ✭ 157 (+881.25%)
Mutual labels:  browsersync

Stylus-Playground

Stylus environment for practice and testing.

用于实践和测试 Stylus 的简易开发环境。无需配置,开箱即用!

背景

Stylus 是一款 CSS 预处理器,与 Sass 和 Less 相比,它更像是一门编程语言,功能强大,语法灵活。同时,Stylus 完全由 JavaScript 实现,对 Node.js 工具链极为友好。

功能亮点

  • 已配置好 Stylus 语言的编译程序
  • 已内置 Autoprefixer 自动添加浏览器前缀
  • 默认加载 Normalize 和 CSS Reset
  • 修改文件时自动刷新浏览器 😍
  • 编译错误消息直接推送到浏览器 😍

stylus-playground
(工作模式示意:一边编辑源码、一边在浏览器中立即看到效果)

error-report
(错误消息示意:编译错误直接推送到浏览器)

使用方法

注意:以下使用方法可用,但将来有可能会有变化。建议你在升级之后重新阅读 README。

如何上手

  1. 把这个 repo 克隆到你本地的工作目录下,安装必要的依赖:

    $ git clone https://github.com/cssmagic/stylus-playground.git
    $ cd stylus-playground
    $ npm install
  2. 运行以下命令启动服务(请不要关闭终端窗口):

    $ npm start

    此时你的默认浏览器会自动打开 index.html 页面。

  3. 编辑 src/index.htmlsrc/css/index.styl 文件,每次保存时浏览器都会自动更新,无需手动刷新。

    注意:强烈建议你新开一个开发分支,随便折腾无压力。

  4. 如果需要终止服务,在终端窗口按 Ctrl + C 即可。

如何升级

注意:在升级之前需要先终止服务。升级后请再次启动服务。

  • 如果你写的代码没有保留价值,直接删掉 stylus-playground 目录,然后重新走一遍上述 “如何上手” 步骤。

  • 如果想保留你在开发分支上写的代码,则可以先切回 master 分支,拉取最新代码,然后 rebase 你的开发分支即可。

鸣谢


License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].