UNPKG

@lithiumjs/ngx-material-theming

Version:

Dynamic and customizable Angular Material theming made easy.

29 lines (22 loc) 694 B
#!/usr/bin/env node "use strict"; const fs = require("fs-extra"); const child_process = require("child_process"); const path = require("path"); const INJECTED_FILES = { "README.md": "./README.md", "LICENSE": "./LICENSE", "bin": "./bin", "scripts": "./scripts", "styles": "./src/styles", "docs": "./docs", "index.scss": "./src/index.scss" }; const BUILD_DIR = "./dist"; (function main() { fs.removeSync(BUILD_DIR); child_process.execSync("ng-packagr -p ng-package.json --config tsconfig.lib.json"); for (let injectedFileName in INJECTED_FILES) { fs.copy(INJECTED_FILES[injectedFileName], path.join(BUILD_DIR, injectedFileName)); } })();