Version: 0.1
This tool use W3C validation service to examine css output.
- This tool is based on thew3c-css project.
- We use 'gulp'
- Output is a 'json' report.
- Report parameters are controlled by the W3c API
- Paths for 'target' file are configurable
Configurable via '.gulpconfig.json'
Output:
- "report": 'Json' output name.
Pathes:
- "project": project path
- "theme": theme path
- "css": css file name.
- "dist": destination of output.
- Install NPM dependencies.
npm i
- configure paths for: project, theme and CSS.
- configure parametes for 'validate' (optional)
- invoke default task:
gulp
- fix issues.
- 'cssbeautify': we format the CSS
- Target is a minimized file in order to get the correct line numbers and for readability.
- Output is an expanded CSS
- 'validate': this invokes the validation service using arguments available.
- we use only 'errors' by default.
- CSS 3 in a service default.
- 'jsonFormat': formating 'json' report for readability.
- 'rename': using defined name for report.
- destination of 'dist' output file.