1"use strict";(globalThis.webpackChunkcapacitor_docs=globalThis.webpackChunkcapacitor_docs||[]).push([[1891],{28453(e,n,t){t.d(n,{R:()=>r,x:()=>c});var i=t(96540);const s={},o=i.createContext(s);function r(e){const n=i.useContext(o);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),i.createElement(o.Provider,{value:n},e.children)}},45688(e,n,t){t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>r,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>a});var i=t(74848),s=t(28453);const o={title:"Running Scripts",description:"Visual Studio Code Extension for Capacitor",contributors:["dtarnawsky"],slug:"/vscode/run-scripts"},r=void 0,c={id:"main/vs-code-ext/run-scripts",title:"Running Scripts",description:"Visual Studio Code Extension for Capacitor",source:"@site/versioned_docs/version-v6/main/vs-code-ext/run-scripts.md",sourceDirName:"main/vs-code-ext",slug:"/vscode/run-scripts",permalink:"/docs/v6/vscode/run-scripts",draft:!1,unlisted:!1,editUrl:"https://github.com/ionic-team/capacitor-docs/edit/main/versioned_docs/version-v6/main/vs-code-ext/run-scripts.md",tags:[],version:"v6",frontMatter:{title:"Running Scripts",description:"Visual Studio Code Extension for Capacitor",contributors:["dtarnawsky"],slug:"/vscode/run-scripts"},sidebar:"docs",previous:{title:"Release to the Store",permalink:"/docs/v6/vscode/release"},next:{title:"Splash Screen & Icon",permalink:"/docs/v6/vscode/splash-icon"}},d={},a=[{value:"Running Scripts",id:"running-scripts",level:2}];function l(e){const n={admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.p,{children:["Your ",(0,i.jsx)(n.code,{children:"package.json"})," contains scripts to run tests, linting, building etc. Run these with the extension to get support for error assistance which will show where in code the error occurred."]}),"\n",(0,i.jsx)(n.h2,{id:"running-scripts",children:"Running Scripts"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["Click ",(0,i.jsx)(n.code,{children:"Scripts"})," to expand which scripts can be run."]}),"\n",(0,i.jsx)(n.li,{children:"Click one of the scripts"}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Output from the script will be displayed in the ",(0,i.jsx)(n.code,{children:"OUTPUT"})," window (you may need to select ",(0,i.jsx)(n.code,{children:"Ionic"})," from the drop down menu)."]}),"\n",(0,i.jsx)(n.p,{children:"If there is an error in your unit test, E2E test, a lint error or a syntax error the extension will display the error and open the file that caused the error at the particular line number."}),"\n",(0,i.jsx)(n.admonition,{type:"note",children:(0,i.jsxs)(n.p,{children:["Scripts are just commands you have defined in ",(0,i.jsx)(n.code,{children:"package.json"})," that can be run at the command line via ",(0,i.jsx)(n.code,{children:"npm run [name]"}),". It is useful to learn this technique to simplify building and testing your application."]})})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.