Sign inSign up

inswave/websquare-min

By inswave

•Updated over 9 years ago

WebSquare minify image

Image
0

557

inswave/websquare-min repository overview

⁠websquare-min

Minify WebSquare XML ( include internal javascript )
변경사항은 Changes from 0.5.x to 1.x⁠ 참조

⁠이미지 사용 방법

$ docker pull inswave/websquare-min $ docker run -d -i --name websquare-min
-v "$PWD/src":/app/src
-v "$PWD/dest":/app/dest
-v "$PWD/test":/app/test
-v "$PWD/tmp":/app/tmp
inswave/websquare-min $ docker exec -it websquare-min /bin/ash

  • 내려받은 이미지로 컨테이너를 생성
    • docker run -d -i —name 컨테이너명 [옵션] 이미지명
      • v 옵션을 이용하여 컨테이너의 폴더( 예: /app/src ) 를 host 장비에 연결( 예: working directory 에 연결, 절대 경로 가능 )
        • src : 변환 대상 소스
        • desc : 변환 결과 디렉토리
      • 자세한 사항은 Docker 문서⁠ 참조
  • exec 를 통해 컨테이너에 접속하여 작업 수행
    • 이미지를 경량화 하기 위해서 Alpine Linux⁠ 를 이용했음으로 ash 을 사용
  • 컨테이너에 openssh 도 설치되어 있음으로 원격 서버로 부터 소스를 가져와 변환 후 업로드가 가능하다.

⁠Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt⁠ before, be sure to check out the Getting Started⁠ guide, as it explains how to create a Gruntfile⁠ as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install websquare-min --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('websquare-min');

This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade⁠.

⁠Websquaremin task

Run this task with the grunt websquaremin command.

⁠Detailed Guide

websquare-min 사용 방법⁠

⁠Docker Image

inswave/websquare-min⁠

⁠Release History

  • 2014-03-03   v0.5.0   Initial release.
  • 2017-03-08 v1.0.0 Add Docker image

Tag summary

Content type

Image

Digest

Size

98.6 MB

Last updated

over 9 years ago

docker pull inswave/websquare-min