在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:DanielRosenwasser/babel-typescript-sample开源软件地址:https://github.com/DanielRosenwasser/babel-typescript-sample开源编程语言:TypeScript 100.0%开源软件介绍:Note: This quick start repository uses a pre-release version of Babel. While you should be aware that some of the dependencies here are in flux, feel free to try it out! What is this?This is a small sample repository that uses Babel to transform TypeScript to plain JavaScript, and uses TypeScript for type-checking.
For simplicity, it uses How do I use it?Building the reponpm run build Type-checking the reponpm run type-check And to run in npm run type-check -- --watch How would I set this up myself?Install your dependenciesEither run the following: npm install --save-dev [email protected]
npm install --save-dev @babel/[email protected]
npm install --save-dev @babel/[email protected]
npm install --save-dev @babel/[email protected]
npm install --save-dev @babel/[email protected]
npm install --save-dev @babel/[email protected]
npm install --save-dev @babel/[email protected] or make sure that you add the appropriate "devDependencies": {
"@babel/cli": "^7.0.0-beta.32",
"@babel/core": "^7.0.0-beta.32",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.32",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.32",
"@babel/preset-env": "^7.0.0-beta.32",
"@babel/preset-typescript": "^7.0.0-beta.32",
"typescript": "^2.6.2"
}
Create your |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论