Skip to content

Commit

Permalink
main: add font & dist files, disallow globs; Ref #43
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Apr 10, 2015
1 parent c02b09c commit da21ba9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ Let's say your package looks like this:
motion.png
walk.png
run.png
fonts/
icons.woff2
icons.woff
dist/
movement.js
movement.min.js
movement.css
movement.min.css

`motion.js` has module imports for `run.js` and `walk.js`. `motion.scss` has module imports for `run.scss` and `walk.scss`. `main` would be

Expand All @@ -76,11 +84,12 @@ Let's say your package looks like this:
]
```

The image files may be used or referenced within the JS or Sass files, but are not `main` files as they are not entry-points.
Image and font files may be used or referenced within the JS or Sass files, but are not `main` files as they are not entry-points.

* Use source files with module exports and imports over pre-built distribution files.
* Do not include minified files.
* Filenames should not be versioned (Bad: `package.1.1.0.js`; Good: `package.js`).
* Use source files with module exports and imports over pre-built distribution files.
* Globs like `js/*.js` are not allowed.

### moduleType

Expand Down

0 comments on commit da21ba9

Please sign in to comment.