mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
chore(e2e): remove experimental deeplink arg, add deepLinksDir
This commit is contained in:
@ -190,18 +190,20 @@ export function runWebpack(pathToWebpackConfig: string, done: Function) {
|
|||||||
|
|
||||||
export function runAppScriptsServe(testOrDemoName: string, appEntryPoint: string, appNgModulePath: string, srcDir: string, distDir: string, tsConfig: string, ionicAngularDir: string, sassConfigPath: string, copyConfigPath: string, watchConfigPath: string) {
|
export function runAppScriptsServe(testOrDemoName: string, appEntryPoint: string, appNgModulePath: string, srcDir: string, distDir: string, tsConfig: string, ionicAngularDir: string, sassConfigPath: string, copyConfigPath: string, watchConfigPath: string) {
|
||||||
console.log('Running ionic-app-scripts serve with', testOrDemoName);
|
console.log('Running ionic-app-scripts serve with', testOrDemoName);
|
||||||
|
const deepLinksDir = dirname(dirname(appNgModulePath));
|
||||||
let scriptArgs = [
|
let scriptArgs = [
|
||||||
'serve',
|
'serve',
|
||||||
'--appEntryPoint', appEntryPoint,
|
'--appEntryPoint', appEntryPoint,
|
||||||
'--appNgModulePath', appNgModulePath,
|
'--appNgModulePath', appNgModulePath,
|
||||||
|
'--deepLinksDir', deepLinksDir,
|
||||||
'--srcDir', srcDir,
|
'--srcDir', srcDir,
|
||||||
'--wwwDir', distDir,
|
'--wwwDir', distDir,
|
||||||
'--tsconfig', tsConfig,
|
'--tsconfig', tsConfig,
|
||||||
'--readConfigJson', 'false',
|
'--readConfigJson', 'false',
|
||||||
'--experimentalParseDeepLinks', 'true',
|
|
||||||
'--ionicAngularDir', ionicAngularDir,
|
'--ionicAngularDir', ionicAngularDir,
|
||||||
'--sass', sassConfigPath,
|
'--sass', sassConfigPath,
|
||||||
'--copy', copyConfigPath
|
'--copy', copyConfigPath,
|
||||||
|
'--enableLint', 'false',
|
||||||
];
|
];
|
||||||
|
|
||||||
if (watchConfigPath) {
|
if (watchConfigPath) {
|
||||||
|
@ -57,7 +57,6 @@ export function createWorker(msg: MessageToWorker): any {
|
|||||||
|
|
||||||
// default it to use the test/basic, or test/xyz directory
|
// default it to use the test/basic, or test/xyz directory
|
||||||
const deepLinksDir = dirname(dirname(msg.appNgModulePath));
|
const deepLinksDir = dirname(dirname(msg.appNgModulePath));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let scriptArgs = [
|
let scriptArgs = [
|
||||||
'build',
|
'build',
|
||||||
@ -68,7 +67,6 @@ export function createWorker(msg: MessageToWorker): any {
|
|||||||
'--wwwDir', msg.distDir,
|
'--wwwDir', msg.distDir,
|
||||||
'--tsconfig', msg.tsConfig,
|
'--tsconfig', msg.tsConfig,
|
||||||
'--readConfigJson', 'false',
|
'--readConfigJson', 'false',
|
||||||
'--experimentalParseDeepLinks', 'true',
|
|
||||||
'--experimentalManualTreeshaking', 'false',
|
'--experimentalManualTreeshaking', 'false',
|
||||||
'--experimentalPurgeDecorators', 'false',
|
'--experimentalPurgeDecorators', 'false',
|
||||||
'--ionicAngularDir', msg.ionicAngularDir,
|
'--ionicAngularDir', msg.ionicAngularDir,
|
||||||
|
Reference in New Issue
Block a user