Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
chore: remove designkit from alva build steps (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuechler authored and marionebl committed May 30, 2018
1 parent a640258 commit bad763d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
13 changes: 1 addition & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,14 @@
"appId": "io.github.meetalva",
"productName": "Alva",
"copyright": "Copyright (c) 2017-2018 SinnerSchrader Deutschland GmbH",
"npmArgs": "npm i @types/react",
"files": [
"build/**/*",
"package.json",
{
"from": "build/designkit/node_modules/@types",
"to": "build/designkit/node_modules/@types",
"filter": [
"**/*.d.ts"
]
}
"package.json"
],
"directories": {
"buildResources": "src/resources",
"output": "dist"
},
"asarUnpack": [
"build/designkit/**"
],
"mac": {
"category": "public.app-category.graphics-design"
},
Expand Down
20 changes: 1 addition & 19 deletions scripts/dist-preprocess.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
const { execSync } = require('child_process');

execSync('standard-version --no-verify');
console.info('Clean build enviroment.');
console.info('Clean build environment.');
execSync('npm run build:clean');

console.info('Starting to copy designkit to build folder.');
execSync(`
git clone [email protected]:meetalva/designkit.git --depth=1 build/designkit &&
rm -r build/designkit/.[^.]*
`)

console.info('Install node packages for designkit.');
execSync(`
npm i &&
npm run build &&
rm -rf node_modules &&
npm i --production
`, {
cwd: 'build/designkit'
}
);

console.info('Distrubution preperation finished.');
console.info('Starting Alva application build.');
execSync('npm run build:electron');

0 comments on commit bad763d

Please sign in to comment.