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.
what's changing from pipelines-javascript
with respect to commmit e34dc460c1562d3e9a5cd746dd89d6805fcc8b6b of pipelines-javascript these are the main changes made to rise pipeline-typescript:
- node modules ( packages )
- added as dev dependecies (
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
- added as dev dependecies (
- sources
-
add
tsconfig.json
jest.config.js
src/index.ts
-
remove
server.js
gulpfile.js
test/index.js
-
changed
- .gitignore ( +
'target'
) - package.json (
"main": "target/index.js"
,"build": "tsc"
,"test": "jest"
and removed gulp,mocha,nyc deps that aren't used by this typescript sample )
- .gitignore ( +
-
MIT