Skip to content

Commit e285117

Browse files
committed
fully setup test folder publishing
1 parent 0bcd6b4 commit e285117

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"clean:dll": "npm run rimraf -- dll",
4242
"clean:compile": "npm run rimraf -- \"compiled\" ",
4343
"clean:publish": "npm run rimraf -- \"/var/www/html/*.*\" \"/var/www/html/assets\" ",
44-
"clean:publish:test": "npm run rimraf -- \"/var/www/test/*.*\" \"/var/www/test/assets\" ",
44+
"clean:publish:test": "npm run rimraf -- \"/var/www/html/test/*.*\" \"/var/www/html/test/assets\" ",
4545
"prodserver": "node prodserver",
4646
"publish": "npm run build:aot:prod:publish",
4747
"publish:noclean": "npm run build:aot:prod:publish:noclean",

src/assets/dist_root/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /test/

webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ const clientConfig = (function webpackConfig(): WebpackConfig {
313313

314314
if (!DLL) {
315315
config.output = {
316-
path: PUBLISH ? (!TEST ? '/var/www/html' : '/var/www/test') : root('dist'),
316+
path: PUBLISH ? (!TEST ? '/var/www/html' : '/var/www/html/test') : root('dist'),
317317
filename: !PROD ? '[name].bundle.js' : '[name].[chunkhash].bundle.js',
318318
sourceMapFilename: !PROD ? '[name].bundle.map' : '[name].[chunkhash].bundle.map',
319319
chunkFilename: !PROD ? '[id].chunk.js' : '[id].[chunkhash].chunk.js'

0 commit comments

Comments
 (0)