https://github.com/cdata/typescript-rollup-project
https://github.com/cdata/typescript-rollup-project
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdata/typescript-rollup-project
- Owner: cdata
- Created: 2020-09-11T23:06:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T23:20:41.000Z (about 4 years ago)
- Last Synced: 2025-02-02T00:31:51.948Z (about 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Development
### Commands
- `npm run build` will build the full project, producing deployable artifacts
in the `dist` folder.
- `npm run watch` will watch all files in all relevant project directories for
changes and build them as necessary
- `npm run serve` will start a static web server with `dist` as the web root
- `npm run dev` will do all three of the above things in order
### Layout
- `static` contains files that are considered good to use as-is. These files
are copied directly into `dist`, preserving the hierarchy within `static`
- `scripts` contains scripts that are used in `package.json` but are too
complex to be inlined within `package.json`
- `styles` contains top-level CSS. Before being copied into `dist`, it will be
run through `clean-css`, causing each stylesheet to have imports inlined and
for the whole bundle to be minified. Each top-level CSS file in `styles` will
be turned into a standalone bundle by the same name in `dist`.
- `src` contains raw TypeScript sources; compiled JavaScript artifacts go to
the `lib` folder.
Modifying the file `scripts/build-node-modules.sh` will allow you to specify
individual files and directories within `node_modules` that should be made
availabe in `dist` but should not be metabolized by the build system.