** 최소버전 Node version >= 6.0 and NPM >= 3**
git clone --depth 1 https://github.com/luxurymini/mini-erp.git
cd
npm install
npm start
npm install --global electron, webpack, karma-cli, typescript
### development
npm run build:dev
npm run build:prod
npm run build:aot
npm run launch
빌드 먼저 할것
npm run package
npm run package:linux
npm run package:mac
npm run package:windows
### if you use yarn
yarn run install-app-deps
### otherwise
npm run install-app-deps
When you include a module that doesn't include Type Definitions inside of the module you can include external Type Definitions with @types
i.e, to have youtube api support, run this command in terminal:
npm i @types/youtube @types/gapi @types/gapi.youtube
In some cases where your code editor doesn't support Typescript 2 yet or these types weren't listed in tsconfig.json
, add these to "src/custom-typings.d.ts" to make peace with the compile check:
import '@types/gapi.youtube';
import '@types/gapi';
import '@types/youtube';
When including 3rd party modules you also need to include the type definition for the module if they don't provide one within the module. You can try to install it with @types
npm install @types/node
npm install @types/lodash
If you can't find the type definition in the registry we can make an ambient definition in this file for now. For example
declare module "my-module" {
export function doesSomething(value: string): string;
}
If you're prototyping and you will fix the types later you can also declare it as type any
declare var assert: any;
declare var _: any;
declare var $: any;
If you're importing a module that uses Node.js modules which are CommonJS you need to import as
import * as _ from 'lodash';