Skip to content

Commit

Permalink
fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TanninOne committed Nov 11, 2016
1 parent 49b559f commit 1dcea8f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
18 changes: 18 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "nmm-api",
"version": "0.0.1",
"description": "Library exporting nmm components extensions may use",
"main": "lib/index.js",
"scripts": {
"build": "tsc -p ."
},
"typings": "lib/index",
"files": [
"lib/"
],
"author": "Black Tree Gaming Ltd",
"license": "GPL-3.0",
"peerDependencies": {
"bluebird": "^3.4.6"
}
}
21 changes: 21 additions & 0 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compileOnSave": true,
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"rootDir": "../src",
"outDir": "./lib",
"sourceMap": false,
"jsx":"react",
"declaration": true
},
"files": [
"../typings/index.d.ts",
"../typings.custom/index.d.ts",
"../src/index.ts"
]
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
"_babel_app": "cross-env BABEL_ENV=production babel app -d app --ignore node_modules",
"_assets_out": "node InstallAssets.js out",
"_assets_app": "node InstallAssets.js app && npm run _babel_app",
"_install_app": "cd app && npm install",
"_install_app": "cd app && rm-local-modules && npm install && npm update",
"prestart": "npm run _assets_out",
"prepackage": "npm run _install_app && npm run _assets_app",
"prepackage": "npm run build_nexusapi && npm run _install_app && npm run _assets_app",
"package": "build",
"postinstall": "typings install",
"start": "cross-env NODE_ENV=development electron .",
"quickstart": "cross-env NODE_ENV=development electron .",
"preinstallex": "npm install rm-local-modules && rm-local-modules",
"build_leveldown": "cd node_modules/leveldown && node-gyp rebuild --target=1.4.3 --arch=x64 --dist-url=https://atom.io/download/electron",
"installex": "npm install && npm run build_leveldown && electron-rebuild -w icon-extract,ffi,node-7z,winreg,ref,leveldown && cd node_modules/redux-persist && npm run build:commonjs",
"installex": "npm run build_api && npm install && npm run build_leveldown && electron-rebuild -w icon-extract,ffi,node-7z,winreg,ref,leveldown && cd node_modules/redux-persist && npm run build:commonjs",
"build_nexusapi": "cd lib/js/nexus-api && npm run build",
"build_api": "tsc -p ./api",
"build_out": "tsc -p . && npm run lessc",
"buildwatch": "concurrently --kill-others \"tsc -p . -w\" npm-watch",
Expand Down

0 comments on commit 1dcea8f

Please sign in to comment.