Skip to content

Commit

Permalink
fix: Fixed scripts so that yarn startdev.prepare work
Browse files Browse the repository at this point in the history
- Changes electron build config so that server/assets is included.
- Fixed a typo in package-scripts.js
  • Loading branch information
jaysoo authored and vsavkin committed Nov 14, 2018
1 parent 1d41c69 commit 425f8fa
Show file tree
Hide file tree
Showing 3 changed files with 1,730 additions and 136 deletions.
2 changes: 1 addition & 1 deletion package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = {
'builder-dist': 'electron-builder --win -p never'
},
dev: {
'patch-clid': 'node ./tools/scripts/patch-cli.js',
'patch-cli': 'node ./tools/scripts/patch-cli.js',
'compile-server': npsUtils.series.nps('server.compile', withPlatform('copy-assets')),
'prepare': npsUtils.series.nps(withPlatform('clean'), 'dev.compile-server', 'frontend.build', withPlatform('copy-frontend'), withPlatform('pack'), 'dev.patch-cli'),
'server': npsUtils.series.nps('dev.compile-server', withPlatform('start-server')),
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
"productName": "Angular Console",
"copyright": "Copyright © 2018 Narwhal Technologies Inc",
"asar": false,
"files": ["dist/server/assets/**/*"],
"extraResources": [
{
"from": "dist/server/assets",
"to": "app/assets",
"filter": [
"**/*"
]
}
],
"removePackageScripts": false,
"directories": {
"app": "dist/server",
Expand Down
Loading

0 comments on commit 425f8fa

Please sign in to comment.