GithubHelp home page GithubHelp logo

zugazagoitia / minify-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jossydevers/minify-js

4.0 0.0 2.0 14 KB

Minify html, javascript and css files.

Home Page: https://github.com/marketplace/actions/minify-js-action

License: MIT License

Dockerfile 11.36% Shell 88.64%

minify-js's Introduction

Minify-JS Action

Info

Forked to change default behaviour, files are overwritten instead of duplicated.

License

MIT License

Version

GitHub Release

Github action to minify html, javascript and css files, using minify.

Usage

First you need to check out your repository, then configure the Minify-JS job, at the end you can commit to your repository. Below is an example of how to do all of this.

name: Minify Workflow
on:
  push:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.ref }}

      # Job for Minify-JS
      - name: Web minifier
        uses: zugazagoitia/[email protected]
        with:
          directory: 'src/component.js' # (OPTIONAL)
          output: 'minify/src/' # (OPTIONAL)
          
      # Auto-commit to repository
      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: 'Minify-JS : Commit Pipeline'
          branch: ${{ github.ref }}

minify-js's People

Contributors

jossydevers avatar zugazagoitia avatar

Stargazers

 avatar  avatar  avatar  avatar

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.