This repository was archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Mod postcss to accept directories as input while keeping the directory structure #6
Copy link
Copy link
Open
Description
change the css command in firefund-cli to accept a directory and pass all the files to postcss
Sub tasks:
- transpile one file to target directory
- directory to directory, file by file (retain structure)
- file and directory to directory, file by file (retain structure)
- directory and directory to directory, file by file (retain structure)
- directory to replace, throw "Not implemented by postcss"
- directory to file throw "Not implemented by postcss"
- file and directory to replace, throw "Not implemented by postcss"
- directory and directory to replace throw "Not implemented by postcss"
- file to replace, pass on to postcss
- file to directory pass on to postcss
- file to file, pass on to postcss
- file and file to replace, pass on to postcss
- file and file to directory, pass on to postcss but warn structure fuck up
- file and file to file, pass on to postcss (postscss will error)
- file and directory to file, pass on to postcss (postscss will error)
- directory and directory to file, pass on to postcss (postscss will error)
argument combinations to postcss
--replacecan be replaced with-r--dircan be replaced with-d--outputcan be replaced with-o
--replace inputFile[1]--dir outputDir inputFile[1]--output outputFile inputFile[1]--replace inputDir[5]--dir outputDir inputDir[2]--output outputFile inputDir[3]--replace inputFile inputFile ...[1]--dir outputDir inputFile inputFile[1.1]--output outputFile inputFile inputFile ...[1] - postscss will error--replace inputFile inputDir ...[5]--dir outputDir inputFile inputDir ...[2]--output outputFile inputFile inputDir ...[1] - postscss will error--replace inputDir inputDir[5]--dir outputDir inputDir inputDir ...[2]--output outputDir inputDir inputDir[1]- postscss will error--output outputDir inputDir[4]--output outputDir inputFile[4]--dir outputFile intputDir[4]--dir outputFile intputFile[4]
ACTIONS:
[1] - transpile files to output - direct pass on args to postcss
[1.1] direct pass on args to postcss - warn that folder structure is lost
[2] - recursively transpile all files in dir to output dir while retaining the dir structure
[3] - throw new Error("Can not transpile a directory to a file - yet")
[4] - throw new Error("output has to be a directory when input is a directory - did you mean to use --dir")
[5] - throw new Error("Not implemented by postcss-cli")