Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @yproximite/yprox-cli with all npm packages installed. Try it out:

@yproximite/yprox-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

require("eslint/package.json"); // eslint is a peer dependency. require("stylelint/package.json"); // stylelint is a peer dependency. require("vue-template-compiler/package.json"); // vue-template-compiler is a peer dependency. // require("@yproximite/yprox-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@yproximite/yprox-cli v3.3.23

CLI tools for yProx CMS

yProx-CLI

npm (scoped) Build Status (Travis) Build status (AppVeyor)

A tool for bulk linting and building assets.

Another tool?

Yes, but linting and building a lot of assets is now easier than ever!

Out of the box, yProx-CLI comes with:

  • JavaScript support (+ Buble)
  • CSS and Sass support
  • Rollup support (JavaScript, Vue, GraphQL) for modern apps
  • ESLint for linting JavaScript files
  • Stylelint for linting CSS and Sass support
  • Copy/Paste files
  • Images optimization

yProx-CLI is really useful for us because it allowed us to package all the tools we need in only big package.

We have ~150 WordPress projects and it was really hard to maintain ~25 dev dependencies (for Gulp) for each project. Using yProx-CLI saves us some huge amount of time because:

  • we were able to externalize all those dependencies in one package
  • we were able to externalize the tooling in one package. Before, everything was in a Gulp file configuration

Documentation

Read the documentation.

Development workflow

You need to install dependencies first:

$ yarn

Tests

Tests are located inside the test folder. You can run them with:

$ yarn test

Be sure to always add a test when you are modifying something!

Linting

We use ESlint, the AirBnb preset, the Recommended rules for TypeScript, and Prettier.

You can lint the code with:

$ yarn lint
$ yarn lint --fix # will automatically fix some errors

Contribution

Publishing a new release

This is automatically done by Travis every day if there was a build in the last 24 hours.

I don't want to wait

When being authenticated to npm and GitHub, run:

$ yarn semantic-release --no-ci

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free