mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-09 15:28:13 -07:00
chore: install cssbundling rails and set up compilation
This commit is contained in:
parent
09ab4d214e
commit
99ef1cb2c8
4670 changed files with 393937 additions and 25 deletions
30
spec/dummy/node_modules/postcss-cli/lib/DependencyGraph.js
generated
vendored
Normal file
30
spec/dummy/node_modules/postcss-cli/lib/DependencyGraph.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import path from 'path'
|
||||
import { DepGraph } from 'dependency-graph'
|
||||
|
||||
export default function createDependencyGraph() {
|
||||
const graph = new DepGraph()
|
||||
return {
|
||||
add(message) {
|
||||
message.parent = path.resolve(message.parent)
|
||||
graph.addNode(message.parent)
|
||||
|
||||
if (message.type === 'dir-dependency') {
|
||||
message.dir = path.resolve(message.dir)
|
||||
graph.addNode(message.dir)
|
||||
graph.addDependency(message.parent, message.dir)
|
||||
} else {
|
||||
message.file = path.resolve(message.file)
|
||||
graph.addNode(message.file)
|
||||
graph.addDependency(message.parent, message.file)
|
||||
}
|
||||
|
||||
return message
|
||||
},
|
||||
dependantsOf(node) {
|
||||
node = path.resolve(node)
|
||||
|
||||
if (graph.hasNode(node)) return graph.dependantsOf(node)
|
||||
return []
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue