Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Pipelines: Vue (Nuxt) project build, no `dist` folder created

dynamiteReady November 18, 2019

I have a Frontend Javascript project, written with Nuxt.

It builds fine on Windows 8.1 with Node JS 10.4.0, and also on Ubuntu 16.0.4 with the same version of Node.

But for some reason, it does not build with the following Pipeline config:

```

pipelines:
  default:
    - step:
      name: Build
      image: node:10.4.0
      script:
        - npm install --verbose
        - npm run build --verbose
        - ls -lsa
      artifacts:
        - dist/**
    - step:
      name: Deploy
      image: cytopia/ansible:latest-aws
      script:
        - ansible-playbook -i ./deploy/hosts/local ./deploy/deploy-to-spaces.yml --extra-vars "key=$SPACES_KEY secret=$SPACES_SECRET"
```

No error is registered when the Pipeline process is complete, and there is no error in the logs for either Pipeline step. And as the project builds in multiple environments without fail, I suspect this is a Pipeline specific bug.

Note the `ls -lsa` command in the `Build` step. It produces a complete list of files, but the `dist` folder is not present.

Are there any workarounds? Or am I missing a step somewhere?

1 answer

3 votes
vtl-pol
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2020

As far as I know, dist-folder is created with 'nuxt generate' command. 'nuxt build' creates a .nuxt/ dir

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events