TypeScript 项目参考示例文件存放在本仓库中,仓库结构如下: 源代码文件夹 … 构建和构建…
The structure of this repo is as follows:
…/core Base library for this application
/lib Output folder (not checked in)
/tsconfig-base.json Shared configuration file for common compiler options/README.md You're reading it
/.gitignore For excluding build outputs and node_modules
/package.json NPM package definition file
/package-lock.json NPM package lock file
/node_modules NPM modulesThe following branches are provided for demo/exploration purposes
masterThis branch shows the normal layout
…circularThis branch introduces a circular dependency by editing the core project's tsconfig.json to add a dependency to zoo.
Attempting to build any project will cause an error:
…bad-refThis branch introduces an illegal reference in the source code by adding an import targeting a file outside the project folder. Attempting to build core will cause an error:
…empty-sleevesNothing up my sleeves !
This branch deletes the core and animals source files.
The zoo project can still be built because it only consumes the output files.
> gulp clean
[...]
> gulp core animals
[...]
> git checkout empty-sleeves
> gulp zoo
[07:35:22] Using gulpfile C:\github\project-references-demo\gulpfile.js
[07:35:22] Starting 'zoo'...
[07:35:24] Finished 'zoo' after 2.15 s暂无开放 Issues,或尚未同步最近议题。