Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

dynamiteReady November 18, 2019 edited

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
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events