README.md is now copied to the output and included for npm publish
README.* was added to the files section of the package.json instead of README.md because a find/replace operation changes .md to .html
This commit is contained in:
parent
028425ca08
commit
4ffd72aee0
2 changed files with 3 additions and 2 deletions
|
|
@ -150,6 +150,7 @@ module.exports = function(grunt) {
|
|||
comparisons: {expand: true, cwd: inputFolder + "/layout/comparisons/", src: "./**", dest: currentVersionArchiveFolder + "/comparisons/"},
|
||||
unminified: {src: "mithril.js", dest: currentVersionArchiveFolder + "/mithril.js"},
|
||||
minified: {src: "mithril.min.js", dest: currentVersionArchiveFolder + "/mithril.min.js"},
|
||||
readme: {src: "README.md", dest: currentVersionArchiveFolder + "/README.md"},
|
||||
map: {src: "mithril.min.js.map", dest: currentVersionArchiveFolder + "/mithril.min.js.map"},
|
||||
typescript: {src: "mithril.d.ts", dest: currentVersionArchiveFolder + "/mithril.d.ts"},
|
||||
publish: {expand: true, cwd: currentVersionArchiveFolder, src: "./**", dest: outputFolder},
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@
|
|||
"repository": {"type": "git", "url": "https://github.com/lhorie/mithril"},
|
||||
"main": "mithril.js",
|
||||
"licenses": [{"type": "MIT", "url": "http://opensource.org/licenses/MIT"}],
|
||||
"files": ["mithril.min.js", "mithril.min.map", "mithril.js"]
|
||||
}
|
||||
"files": ["mithril.min.js", "mithril.min.map", "mithril.js", "README.*"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue