refactor: build

This commit is contained in:
cha0s 2021-03-23 16:24:57 -05:00
parent b37cb18039
commit f48d26046c
4 changed files with 2483 additions and 60 deletions

View File

@ -3,6 +3,7 @@
"private": true,
"scripts": {
"build": "lerna run build",
"build:lat": "latus-build",
"clean": "lerna run clean",
"docker": "yarn run build && docker build",
"electron": "NODE_ENV=production NODE_PATH=./node_modules electron build/electron.js",
@ -51,6 +52,7 @@
"dotenv": "^8.2.0"
},
"devDependencies": {
"@latus/build": "1.x"
"@latus/build": "1.x",
"lerna": "^3.22.1"
}
}

View File

@ -1,5 +1,3 @@
import './universe.scss';
import {useIsNative} from '@humus/core';
import {useSelector} from '@latus/redux';
import {PropTypes, React} from '@latus/react';

View File

@ -30,7 +30,11 @@ module.exports = process.env.LATUS_LINTING
.reduce(
(r, [name, config]) => ({
...r,
...(-1 === onlyBuilds.indexOf(name) ? {} : {[name]: config}),
...(
(0 === onlyBuilds.length || -1 === onlyBuilds.indexOf(name))
? {[name]: config}
: {}
),
}),
{},
)

2531
yarn.lock

File diff suppressed because it is too large Load Diff