Skip to content

Add stylelint Dockerfile. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ This repository has several Docker images for Drupal code quality analysis...
* `eslint-es6-drupal` which runs Drupal's ECMAScript 6 coding standards lints,
* `phpcs-drupal` which runs Drupal's coding standards lints,
* `phpcs-drupalpractice` which runs Drupal's best practices lints,
* `stylelint` which runs Drupal's CSS coding standards lints,

As well as some other useful tools...
* `dephpend` which performs dependency analysis on a PHP project and its classes,
@@ -30,6 +31,7 @@ docker build -t phpcs-drupal ./phpcs-drupal/
docker build -t phpcbf-drupal ./phpcbf-drupal/
docker build -t phpcs-drupalpractice ./phpcs-drupalpractice/
docker build -t phpcbf-drupalpractice ./phpcbf-drupalpractice/
docker build -t stylelint ./stylelint/
docker build -t dephpend ./dephpend/
docker build -t jsonlint ./jsonlint/
@@ -49,6 +51,7 @@ docker run --rm -v $PWD:/app phpcs-drupal $path_to_lint # --report=summary
docker run --rm -v $PWD:/app phpcbf-drupal $path_to_lint
docker run --rm -v $PWD:/app phpcs-drupalpractice $path_to_lint # --report=summary
docker run --rm -v $PWD:/app phpcbf-drupalpractice $path_to_lint
docker run --rm -v $PWD:/app stylelint $path_to_lint
docker run --rm -v $PWD:/app dephpend text $path_to_lint
docker run --rm -v $PWD:/app jsonlint $path_to_lint
@@ -69,6 +72,7 @@ docker run --rm -v $PWD:/app mparker17/phpcbf-drupalpractice $path_to_lint
docker run --rm -v $PWD:/app mparker17/dephpend text $path_to_lint
docker run --rm -v $PWD:/app mparker17/jsonlint $path_to_lint
docker run --rm -v $PWD:/app mparker17/stylelint $path_to_lint
docker run --rm -v $PWD:/app mparker17/phpcpd $path_to_lint
docker run --rm -v $PWD:/app mparker17/phpmetrics $path_to_lint
docker run --rm -v $PWD:/app mparker17/phpstan-drupal $path_to_lint
8 changes: 8 additions & 0 deletions stylelint/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:10.15
WORKDIR /opt/drupal
RUN curl -o 'package.json' -L 'https://git.drupalcode.org/project/drupal/-/raw/8a9f88169a7c3b6a00636d5e0c4c9f8988d92499/core/package.json' && \
npm install && \
curl -o '.stylelintrc.json' -L 'https://git.drupalcode.org/project/drupal/-/raw/8a9f88169a7c3b6a00636d5e0c4c9f8988d92499/core/.stylelintrc.json'
WORKDIR /app
VOLUME /app
ENTRYPOINT ["/opt/drupal/node_modules/.bin/stylelint", "--config", "/opt/drupal/.stylelintrc.json"]