Skip to content

Commit

Permalink
ignore files that start with "_", useful for template files that incl…
Browse files Browse the repository at this point in the history
…ude other template files
  • Loading branch information
cengebretson committed Jun 10, 2016
1 parent 4d5af44 commit e681e43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/package.coffee
Expand Up @@ -297,12 +297,16 @@ class JsPackage extends Package
# check if folder or file
results = []
for file in files
# treat as normal javascript
# treat as normal javascript string
if utils.endsWith(file,";")
results.join(file)
# else load as file/dir
else
slash = if parentDir is "" then "" else path.sep
# ignore files that start with "_", used for template files that process
# includes (ex stylus), so they don't get compiled twice.
continue if file.startsWith("_")
# set full path for following code checks
file = parentDir + slash + file
if fs.existsSync(file)
stats = fs.lstatSync(file)
Expand Down

0 comments on commit e681e43

Please sign in to comment.