Skip to content

Commit

Permalink
only use parcel for client compilation/packaging as it doesn't provid…
Browse files Browse the repository at this point in the history
…e types; use tsc for server/framework compilation
  • Loading branch information
floodfx committed Jan 24, 2022
1 parent dfdb688 commit 68400ab
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,24 @@
"source": "src/client/liveview.ts",
"context": "browser",
"distDir": "dist/client"
},
"framework": {
"source": "src/server/index.ts",
"context": "node",
"isLibrary": true,
"distDir": "dist/framework"
},
"examples": {
"source": "src/examples/index.ts",
"context": "node",
"distDir": "dist/examples"
}
},
"main": "dist/framework/index.ts",
"main": "dist/server/index.js",
"types": "dist/server/index.d.ts",
"files": [
"dist/framework/**/*.js"
"dist/server/**/*.js",
"dist/server/**/*.d.ts"
],
"scripts": {
"examples": "nodemon -e js -w dist dist/examples/index.js",
"preexamples": "npm run build",
"build": "rm -rf dist; npm run check; parcel build",
"watch": "parcel watch",
"examples": "npm run prepublish; npm run client-build;nodemon -e js -w dist dist/examples/index.js",
"build": "tsc",
"watch": "tsc --watch",
"client-build": "npm run check; parcel build",
"client-watch": "parcel watch",
"check": "tsc --noEmit",
"test": "jest --expand"
"clean": "rm -rf dist",
"test": "jest --expand",
"prepublish": "npm run clean; npm run build"
},
"keywords": ["liveviewjs","liveview", "phoenix", "typescript", "javascript", "framework"],
"author": "Donnie Flood <[email protected]>",
Expand Down

0 comments on commit 68400ab

Please sign in to comment.