This commit is contained in:
Max Lynch
2017-02-07 12:40:50 -06:00
parent 63ab1a205e
commit 7226bcad50
4 changed files with 25 additions and 4 deletions
+1
View File
@@ -1,5 +1,6 @@
.DS_Store
node_modules/
.idea
.tmp
dist/
scripts/ionic-native-bower
+1 -1
View File
@@ -51,7 +51,7 @@
"start": "npm run test:watch",
"lint": "gulp lint",
"build": "npm run lint && npm run build:js && npm run build:esm && npm run build:bundle && npm run build:minify",
"build2:js": "tsc -p scripts/build/tsconfig-core.json",
"build:js2": "sh scripts/build/build.sh",
"build:js": "tsc -p tsconfig-es5.json",
"build:esm": "tsc -p tsconfig-esm.json",
"build:bundle": "browserify dist/es5/index.js > dist/ionic.native.js",
+21 -1
View File
@@ -1 +1,21 @@
tsc -p tsconfig-core.json
#tsc -p tsconfig-core.json
PLUGINS="./src/@ionic-native/plugins/*"
PLUGIN_TSCONFIG=`cat ./scripts/build/tsconfig-plugin.json.template`
BUILD_TMP='.tmp'
# Clean the old build dir
rm -rf $BUILD_TMP
# Make it again
mkdir $BUILD_TMP
# For each plugin, replace the values in tsconfig w/ the appropriate ones for this plugin
for d in $PLUGINS ; do
BASE=`basename $d`
PLUGIN_BUILD_DIR="$BUILD_TMP/plugins/$BASE"
mkdir -p "$PLUGIN_BUILD_DIR"
NEW_TSCONFIG="$(echo "$PLUGIN_TSCONFIG" | sed "s/{{PLUGIN}}/$BASE/g")"
echo "$NEW_TSCONFIG" > "$PLUGIN_BUILD_DIR/tsconfig.json"
done
@@ -8,7 +8,7 @@
"moduleResolution": "node",
"outDir": "../../dist/packages-dist/",
"paths": {
"@ionic-native/core": ["../../dist/packages-dist/"]
"@ionic-native/core": ["../../../dist/packages-dist/"]
},
"rootDir": "../../src/",
"sourceMap": true,
@@ -18,6 +18,6 @@
"lib": ["es2015", "dom"]
},
"files": [
"../../src/@ionic-native/plugins/{{PLUGIN}}/index.ts"
"../../../src/@ionic-native/plugins/{{PLUGIN}}/index.ts"
]
}