Create your first pipeline for a typescript project
Create your first pipeline for a typescript project
I needed a simple and basic example from which to learn how to create a build pipeline on azure devops for a typescript project , I didn’t find any, I decided to create one myself
Luckily there is an excellent guide to create a similar thing for javascript projects
with its source code on github
and also a very simple and clear tutorials are available to take flight with typescript
I simply put all togheter and I got one pipeline that works for typescript; after all it is a very normal npm build; pipeline-typescript
simply shows that nothing substantial changes compared to the example provided for pipelines-javascript
For information on how to set up a pipeline for this repository, see Create your first pipeline.
with respect to commmit e34dc460c1562d3e9a5cd746dd89d6805fcc8b6b of pipelines-javascript these are the main changes made to rise pipeline-typescript:
see package.json
)
npm install --save-dev typescript
npm install --save-dev @typescript-eslint/eslint-plugin
npm install --save-dev @typescript-eslint/parser
npm install --save-dev jest
npm install --save-dev ts-jest
npm install --save-dev @types/jest
npm install --save-dev eslint
npm install --save-dev eslint-plugin-jest
npm install --save-dev @types/express
npm install --save-dev dotenv
src/__tests__/index.test.ts
tsconfig.json
jest.config.js
src/index.ts
server.js
gulpfile.js
test/index.js
'target'
)"main": "target/index.js"
, "build": "tsc"
, "test": "jest"
and removed gulp,mocha,nyc deps that aren’t used by this typescript sample )MIT