Skip to content

Commit 3284fca

Browse files
Merge pull request #25 from LottieFiles/develop
build: dist builds to root of directory
2 parents 3efe5ff + 49f704a commit 3284fca

File tree

7 files changed

+101
-37
lines changed

7 files changed

+101
-37
lines changed

.changeset/moody-onions-prove.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,19 @@ jobs:
3737
cd example && yarn
3838
env:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
40+
- name: Build project
41+
run: yarn build
4142
- name: Serve example app
4243
continue-on-error: false
4344
run: yarn run serve-app
4445
env:
4546
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46-
4747
- name: Build project and run tests
4848
continue-on-error: false
4949
run: yarn run run-tests
5050
env:
5151
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5252

53-
- name: Build project
54-
run: yarn build
55-
5653
release-npm:
5754
needs: build
5855
name: Release npm
@@ -64,6 +61,11 @@ jobs:
6461
node-version: ${{ matrix.node-version }}
6562
registry-url: https://registry.npmjs.org/
6663
- run: yarn install --frozen-lockfile
64+
- name: Build project
65+
continue-on-error: false
66+
run: yarn build
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6769
- run: npm publish --access public
6870
env:
6971
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
@@ -87,6 +89,11 @@ jobs:
8789
registry-url: https://npm.pkg.github.com/
8890
scope: "@lottiefiles"
8991
- run: yarn install --frozen-lockfile
92+
- name: Build project
93+
continue-on-error: false
94+
run: yarn build
95+
env:
96+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9097
- run:
9198
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" >
9299
~/.npmrc

.gitignore

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,51 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
5-
6-
# local env files
7-
.env.local
8-
.env.*.local
9-
10-
# Log files
1+
# Logs
2+
logs
3+
*.log
114
npm-debug.log*
125
yarn-debug.log*
136
yarn-error.log*
14-
pnpm-debug.log*
15-
16-
# Editor directories and files
17-
.idea
18-
.vscode
19-
*.suo
20-
*.ntvs*
21-
*.njsproj
22-
*.sln
23-
*.sw?
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# node-waf configuration
15+
.lock-wscript
16+
17+
# Dependency directories
18+
**/node_modules/
19+
20+
# Force Karam to not add package-lock.json
21+
package-lock.json
22+
23+
# Optional npm cache directory
24+
.npm
25+
26+
# Optional eslint cache
27+
.eslintcache
28+
29+
# Yarn Integrity file
30+
.yarn-integrity
31+
32+
# dotenv environment variables file
33+
.env
34+
*.env
35+
36+
# IDEs
37+
**/.idea
38+
**/.vscode
39+
**/.history
40+
41+
# Operating system
42+
.DS_Store
43+
.tmp
44+
45+
# Dist artifacts
46+
dist/
47+
48+
# Tests
49+
coverage/
50+
cypress/react-testing-pages/src/components/lottie-react.js
51+
.nyc_output

.npmignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# IDE
2+
.vscode
3+
.idea
4+
.history
5+
*.log
6+
7+
.storybook
8+
stories
9+
10+
# CI/CD
11+
.travis.yml
12+
13+
# Configs
14+
jest.config.js
15+
rollup.config.js
16+
tsconfig.json
17+
18+
# Docs
19+
docs/
20+
examples/
21+
cypress/
22+
cypress/react-testing-pages/src/components/lottie-react.js

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 1.0.8
4+
5+
### Patch Changes
6+
7+
- 09be46f: add build to build at root of dist folder
8+
9+
## 1.0.8
10+
11+
### Patch Changes
12+
13+
- 49df023: added changesets and dual deploy
14+
315
## 1.0.6
416

517
### Patch Changes

example/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Properties from "../components/Properties.vue";
66
import Methods from "../components/Methods.vue";
77
import Controls from "../components/Controls.vue";
88
import VueRouter from "vue-router";
9-
import LottieVuePlayer from "../../dist/@lottiefiles/vue-lottie-player.common";
9+
import LottieVuePlayer from "../../dist/vue-lottie-player.common";
1010

1111
Vue.use(LottieVuePlayer);
1212

@@ -16,7 +16,7 @@ const router = new VueRouter({
1616
{
1717
path: '/',
1818
name: 'home',
19-
component: Home
19+
component: Home
2020
},
2121
{
2222
path: '/load',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@lottiefiles/vue-lottie-player",
3-
"version": "1.0.6",
3+
"version": "1.0.8",
44
"description": "Lottie player wrapper for Vue.js by LottieFiles",
55
"scripts": {
6-
"build": "vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
7-
"build:dev": "vue-cli-service build --watch --inline-vue --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
8-
"build-with-coverage": "CODE_COVERAGE=true vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
6+
"build": "vue-cli-service build --target lib --name vue-lottie-player ./src/index.js && rm ./dist/demo.html",
7+
"build:dev": "vue-cli-service build --watch --inline-vue --target lib --name vue-lottie-player ./src/index.js && rm ./dist/demo.html",
8+
"build-with-coverage": "CODE_COVERAGE=true vue-cli-service build --target lib --name vue-lottie-player ./src/index.js && rm ./dist/demo.html",
99
"release": "semantic-release",
1010
"run-tests": "yarn run build-with-coverage && yarn run start-cypress",
1111
"postrun-tests": "kill $(lsof -t -i:8080)",
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "git+https://github.com/LottieFiles/lottie-vue.git"
2020
},
21-
"main": "dist/@lottiefiles/vue-lottie-player.common.js",
21+
"main": "dist/vue-lottie-player.common.js",
2222
"files": [
2323
"dist"
2424
],

0 commit comments

Comments
 (0)