All Projects → pingyhq → Pingy Cli

pingyhq / Pingy Cli

Licence: mit
The Simple Frontend Build Tool. No Configuration, No Plugins.

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to Pingy Cli

Gulp Pure Start
Start your project with 'Gulp Pure Start' easily than ever!
Stars: ✭ 89 (-77.18%)
Mutual labels:  frontend, sass, pug
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+252.31%)
Mutual labels:  babel, sass, pug
Bulmaswatch
Themes for Bulma
Stars: ✭ 1,525 (+291.03%)
Mutual labels:  frontend, sass, website
Generator Angular Fullstack
Yeoman generator for an Angular app with an Express server
Stars: ✭ 6,135 (+1473.08%)
Mutual labels:  babel, sass, pug
Frontplate
フロントエンド開発の効率をあげるフルスタックテンプレート
Stars: ✭ 175 (-55.13%)
Mutual labels:  babel, frontend, sass
Portfolio one Page Template
Free responsive one page portfolio template
Stars: ✭ 106 (-72.82%)
Mutual labels:  sass, website, pug
Online Bling
Stars: ✭ 9 (-97.69%)
Mutual labels:  babel, sass, website
Papogen
Use Sass/CSS + Pug + Node.js to generate beautiful static website.
Stars: ✭ 37 (-90.51%)
Mutual labels:  sass, website, pug
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (-65.64%)
Mutual labels:  babel, sass, pug
Webpack Starter
✨ A lightweight foundation for your next webpack based frontend project.
Stars: ✭ 1,745 (+347.44%)
Mutual labels:  babel, frontend, sass
Instapack
All-in-one TypeScript and Sass compiler for web applications! 📦 🚀
Stars: ✭ 131 (-66.41%)
Mutual labels:  build-tool, babel, sass
Pug Starter
Simple pug (jade) starter [framework] enabling faster delivery of HTML & CSS projects to a private server and/or automatic deployment of GitHub pages.
Stars: ✭ 328 (-15.9%)
Mutual labels:  sass, website, pug
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (-67.69%)
Mutual labels:  babel, frontend, sass
Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (-41.54%)
Mutual labels:  babel, sass, pug
Uix Kit
A free UI toolkit based on some common libraries for building beautiful responsive website, compatible with Bootstrap v4.
Stars: ✭ 318 (-18.46%)
Mutual labels:  frontend, sass, website
Gulp Boilerplate
A boilerplate for building web projects with Gulp.js.
Stars: ✭ 840 (+115.38%)
Mutual labels:  build-tool, sass
Baumeister
👷 The aim of this project is to help you to build your things. From Bootstrap themes over static websites to single page applications.
Stars: ✭ 171 (-56.15%)
Mutual labels:  build-tool, frontend
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (-96.15%)
Mutual labels:  babel, pug
Poi
⚡A zero-config bundler for JavaScript applications.
Stars: ✭ 5,291 (+1256.67%)
Mutual labels:  build-tool, babel
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-95.13%)
Mutual labels:  babel, build-tool

Not actively maintained. Caveat Emptor.

I'm not actively maintaining Pingy CLI anymore. I'm happy to look at and merge PRs however if you wish to contribute.

Pingy CLI Join the chat at https://gitter.im/pingy-cli/Lobby

npm Build Status: Linux & Mac Build Status: Windows

The Simple Frontend Build Tool. No Configuration, No Plugins.

Install

npm install @pingy/cli --global

Usage

Usage: pingy [command]

Commands:

  init            Initialise a new or existing website
  dev [options]   Serve local development version of website
  export          Export website to a folder for distribution
  -h, --help      output usage information
  -V, --version   output the version number

init

Usage: pingy init [options]

Initialise a new or existing website using Pingy

Options:

  --yarn          Use Yarn instead of NPM for installing packages
  --global-pingy  Don't install local version of Pingy CLI, use global version instead
  --ask           Ask for all init options (don't prompt to use existing init options)
  -h, --help      output usage information

pingy init will initialise a new or existing website in the current directory. An interactive prompt will ask you a few questions and can then install requested dependencies (e.g. Sass, Less, Babel, CoffeeScript etc..). Optionally, init can also scaffold some boilerplate files for your website.

Pingy is zero-configuration but it does place a .pingy.json file in your website folder to help Pingy identify the root of your website. Currently, this only contains the default folder name exporting files to ('dist'), you can change this if you like.

dev

Usage: pingy dev [options]

Serve local development version of website

Options:

  -h, --help         output usage information
  -p, --port [port]  Use chosen port (otherwise random port will be used)
  -q, --no-open      Don't automatically launch site in web browser

Will create a local development server and open the site in your default web browser. Automatically supports live browser reload, compilation/transpilation (with smart caching) and sourcemaps without any configuration.

Note: If you created your project with pingy init, then Pingy will try to add a run script (if it doesn't already exist) to your package.json. In this case, you can run npm start, instead of pingy dev.

scaffold

Usage: scaffold [options] <alias/url/path>

Scaffold a new website using a third-party project template

<alias/url/path> can be:

  Alias: 'bootstrap' (View alias registry at: https://github.com/pingyhq/scaffolds)
  Git URL: 'https://github.com/pingyhq/pingy-scaffold-bootstrap.git'
  Shorthand GitHub URL: 'pingyhq/bootstrap'
  Filesystem path: '/Users/dave/code/pingy-scaffolds/bootstrap'


Options:

  --yarn          Use Yarn instead of NPM for installing packages
  --global-pingy  Don't install local version of Pingy CLI, use global version instead
  -h, --help      output usage information

export

pingy export will export the website so that it's ready to be uploaded wherever you like. Assets will be minified so that your website is super fast.

Configuring Export

You can edit the .pingy.json file in your website root to change which folder your site will be exported to. You can also add/remove to the exclusions array to exclude files/folder from being exported or compiled.

This is what the default .pingy.json file looks like:

{
  "exportDir": "dist",
  "exclusions": [
    {
      "path": "node_modules",
      "action": "exclude",
      "type": "dir"
    }
  ]
}

This will export your site to a folder named 'dist' within your website's folder. It will also exclude the 'node_modules' folder from your exported build.

Let's try changing our .pingy.json to something a bit different:

{
  "exportDir": "exported-site",
  "exclusions": [
    {
      "path": "bower_components",
      "action": "dontCompile",
      "type": "dir"
    },
    {
      "path": "*.json",
      "action": "exclude",
      "type": "file"
    }
  ]
}

This will export your site to a folder named 'exported-site' within your website's folder. It will exclude any files that have the 'json' extension and it will copy the 'bower_components' folder and internal file but it won't compile any of those files. For example, if Pingy CLI sees a SASS or CoffeeScript file then it won't try to compile it, it also won't try to minify HTML, CSS or JS files within 'bower_components'.

Better documentation for this functionality is coming soon. For the moment, feel free to create an issue if you want more information.

Is there an example repo where I can try out Pingy CLI?

Sure, you can clone the repo for the website. It uses Sass and Babel.

License

(The MIT License)

Copyright (c) 2018 Pingy mailto:[email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].