 OUT_DIR = 'build/styles'
 QUERIES = './build/styles/queries.json'
 DEFAULT_STYLES = pathUtils.join __dirname, '/styles/default'
+STYLE_EXT_NAMES = ['.js', '.nml']
 
 getQueryPriority = (val) ->
     Document.Element.Tag.query.getSelectorCommandsLength val

            inputDirPriorities[dir.prefix] = i
        filesToLoad++
        cliUtils.forEachFileDeep dir.path, (path, stat) ->
            unless pathUtils.extname(path) in ['.js', '.nml']
                return

            filesToLoad++

    # main styles folder
    inputDirs.push {path: IN_DIR, prefix: ''}

    # use default __view__ if needed
    isMainViewExists = false
    for ext in STYLE_EXT_NAMES
        if isMainViewExists = fs.existsSync(pathUtils.join(IN_DIR, '/__view__' + ext))
            break
    unless isMainViewExists
        inputDirs.push {path: DEFAULT_STYLES, prefix: ''}

    inputDirs
