Coder Social home page Coder Social logo

pressbooks / pressbooks-build-tools Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.14 MB

NPM package which includes all asset linting and build tools for Pressbooks projects.

License: GNU General Public License v3.0

JavaScript 96.11% SCSS 2.04% Shell 1.86%
assets eslint laravel-mix npm prettier stylelint webpack

pressbooks-build-tools's Introduction

Pressbooks

Contributors: Pressbooks [email protected] Tags: ebooks, publishing, webbooks Requires at least: 6.6.1 Tested up to: 6.6.1

Stable tag: 6.19.2

Requires PHP: 8.1 License: GPL v3.0 or later License URI: https://github.com/pressbooks/pressbooks/blob/production/LICENSE.md

Pressbooks is an open source book publishing tool built on a WordPress multisite platform.

Description

Packagist Current Release Packagist PHP from Packagist

Packagist Code Coverage Translate Pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS. Pressbooks is free software, released under the GPL v3.0 or later license.

Our webbooks and EPUB/PDF exports are all driven by HTML + CSS. XML outputs have no styling.

Requirements

Pressbooks works with PHP 8.1 and WordPress 6.6.1. Lower versions are not supported.

Installing the Plugin

Pressbooks is not for use on an existing blog. Instead it should be used with a fresh, multisite WordPress installation.

To install Pressbooks on your site, download the latest release and follow our installation instructions.

You may want to try Pressbooks.com before deciding whether or not you wish to host and maintain your own instance of Pressbooks. We can also host and maintain an instance of Pressbooks for you.

Contributor guidelines

Developers who are interested in contributing to our project should consult our "Contributing" guidelines and the developer guides published on our documentation website.

Disclaimers

The Pressbooks plugin is supplied "as is" and all use is at your own risk.

Changelog

Please see the CHANGELOG file for more information.

pressbooks-build-tools's People

Contributors

arzola avatar cagp-dev-mtl avatar dac514 avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar github-actions[bot] avatar greatislander avatar richard015ar avatar steelwagstaff avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

greatislander

pressbooks-build-tools's Issues

[Research] Replace Mix with Vite as build tool

The dev team has used Vite instead of Mix/Pressbooks Build Tools for the last two plugins they've created. We replace should update Pressbooks Build Tools to use Vite and use it consistently across all our maintained repos.

DoD:

  • Research the use of Vite for build processes across all Pressbooks repo
  • Write a brief report/recommendation for team to agree on
  • Prepare Pressbooks Build Tools 5.0.0 release that uses the recommended approach

Resources

https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-laravel-mix-to-vite
https://christoph-rumpel.com/2022/6/moving-a-laravel-webpack-project-to-vite
https://creagia.com/blog/using-laravel-vite-with-bootstrap-and-sass

Standardize usage & update build tools

In old days, this repo was required as a dev dependency in most theme/plugin repos. When Ned left, Dac created a ‘no install build tools’ approach to reduce maintenance: pressbooks/pressbooks#1834. Ned preferred going the dev dependency route, so we reverted to that approach in some repos after Dac left. We’re kind of in between on which approach to take. Compare pressbooks-book: https://github.com/pressbooks/pressbooks-book/blob/065f0baacd232118ac3ca480c3614b4bd3c24c89/package.json#L21 with Malala: https://github.com/pressbooks/pressbooks-malala/blob/cecae23a35a8aa8eaa800ec516b7435cb9a6de36/package.json#L15.

Ned has historically been the expert here – but we should take this in house. See https://github.com/pressbooks/pressbooks-build-tools/pull/281/files + #279.

We also haven’t looked at or updated this repo itself in several months. I don’t think it supports node 16, for example. See: https://github.com/pressbooks/pressbooks-malala/runs/6281068108?check_suite_focus=true.

TODO:

  • Update this repo/package as desired
  • Decide whether we want to require this package as a dev dependency or use the no install method
  • Apply this consistently across all relevant repos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.