Copy only the production dependencies to the site directory
This commit is contained in:
parent
5fef463aba
commit
6717a76f21
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,4 +4,5 @@ docbuild
|
|||||||
__tests__
|
__tests__
|
||||||
coverage
|
coverage
|
||||||
dyna3.zip
|
dyna3.zip
|
||||||
|
tmpproj
|
||||||
*~
|
*~
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"private": "true",
|
"private": "true",
|
||||||
"main": "dyna3.js",
|
"main": "dyna3.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf site docbuild dyna3.zip",
|
"clean": "rm -rf site docbuild tmpproj __tests__ dyna3.zip coverage",
|
||||||
"doc:extra": "mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
|
"doc:extra": "mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
|
||||||
"doc:collate": "mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
|
"doc:collate": "mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
|
||||||
"doc": "npm run doc:extra && npm run doc:collate",
|
"doc": "npm run doc:extra && npm run doc:collate",
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"build:coffee": "coffee -o site -c -m src/*.litcoffee",
|
"build:coffee": "coffee -o site -c -m src/*.litcoffee",
|
||||||
"build:ext": "coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
|
"build:ext": "coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
|
||||||
"build:doc": "npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
|
"build:doc": "npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
|
||||||
"build:copy": "cp src/*.html site && cp -r node_modules site",
|
"build:copy": "mkdir -p site && rm -rf tmpproj && cp src/*.html site && mkdir tmpproj && rsync -av . tmpproj --exclude tmpproj --exclude node_modules && cd tmpproj && npm install --production && cp -r node_modules ../site && cd ..",
|
||||||
"build": "npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
|
"build": "npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
|
||||||
"dist": "npm run build && zip -r dyna3.zip site",
|
"dist": "npm run build && zip -r dyna3.zip site",
|
||||||
"pretest": "npm run build && coffee -o __tests__ -c -m coffeetest/*.coffee",
|
"pretest": "npm run build && coffee -o __tests__ -c -m coffeetest/*.coffee",
|
||||||
|
Loading…
Reference in New Issue
Block a user