Skip to content

Commit

Permalink
add target to copy root view ejs template to dist for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Jan 30, 2022
1 parent 4b6f09a commit 21af1ae
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 38 deletions.
110 changes: 74 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@
"types": "dist/server/index.d.ts",
"files": [
"dist/server/**/*.js",
"dist/server/**/*.d.ts"
"dist/server/**/*.d.ts",
"dist/server/**/*.ejs"
],
"scripts": {
"examples": "npm run prepublish; npm run client-build;nodemon -e js -w dist dist/examples/index.js",
"build": "tsc",
"watch": "tsc --watch",
"copy-root-view": "mkdir -p dist/server/web/views;cp src/server/web/views/index.html.ejs dist/server/web/views/index.html.ejs",
"client-build": "npm run check; parcel build",
"client-watch": "parcel watch",
"check": "tsc --noEmit",
"clean": "rm -rf dist",
"test": "jest --expand",
"prepublish": "npm run clean; npm run build"
"prepublish": "npm run clean; npm run test; npm run build; npm run copy-root-view"
},
"keywords": [
"liveviewjs",
Expand Down

0 comments on commit 21af1ae

Please sign in to comment.