Skip to content

Commit caada0b

Browse files
committed
Migrated Travis config to new webpack-config-jaid
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent 78839bd commit caada0b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.travis.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ jobs:
88
- stage: Deploy
99
before_deploy:
1010
- npm run build:prod
11-
- export PKG_NAME=$(node -e "console.log(require('./dist/package').name)")
12-
- export PKG_VERSION=$(node -e "console.log(require('./dist/package').version)")
13-
- cd dist
14-
- zip -9 --recurse-paths ../${PKG_NAME}_v$PKG_VERSION.zip **
15-
- zip -9 --recurse-paths ../${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
16-
- cd ..
11+
- export PKG_NAME=$(node -e "console.log(require('./dist/package/production/package').name)")
12+
- export PKG_VERSION=$(node -e "console.log(require('./dist/package/production/package').version)")
13+
- cd dist/package/production
14+
- zip -9 --recurse-paths ../../${PKG_NAME}_v$PKG_VERSION.zip **
15+
- zip -9 --recurse-paths ../../${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
16+
- cd ../../..
1717
deploy:
1818
- provider: pages
19-
local_dir: dist-jsdoc/$PKG_NAME/$PKG_VERSION
19+
local_dir: dist/homepage/$PKG_NAME/$PKG_VERSION
2020
fqdn: $PKG_NAME.jaid.codes
2121
skip_cleanup: true
2222
github_token: $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
2323
- provider: releases
2424
file_glob: true
2525
file:
26-
- dist/package.json
27-
- dist/license.*
28-
- dist/*.d.ts
29-
- "*.zip"
26+
- dist/package/production/package.json
27+
- dist/package/production/license.*
28+
- dist/package/production/*.d.ts
29+
- "dist/*.zip"
3030
skip_cleanup: true
3131
name: $PKG_NAME $PKG_VERSION
3232
api_key: $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
3333
on: { tags: true }
3434
- provider: script
35-
script: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist
35+
script: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist/package/production
3636
skip_cleanup: true
3737
on: { tags: true }

0 commit comments

Comments
 (0)