This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"include": [ | |
"**/*.spec.ts", | |
"**/*.d.ts", | |
"../modules/**/*.spec.ts" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moduleContext = require.context('./../modules', true, /\.spec\.ts$/); | |
moduleContext.keys().map(moduleContext); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"test": { | |
"builder": "@angular-devkit/build-angular:karma", | |
"options": { | |
"main": "src/test.ts", | |
"polyfills": "src/polyfills.ts", | |
"tsConfig": "src/tsconfig.spec.json", | |
"karmaConfig": "src/karma.conf.js", | |
"styles": [ | |
"src/styles.scss" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"styles": [ | |
"src/styles.scss", | |
"dist/my-shiny-library/_theme.scss" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"build": "ng-packagr -p package.json", | |
"postbuild": "ts-node ./scripts/css-bundle.ts" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { relative } from 'path'; | |
import { Bundler } from 'scss-bundle'; | |
import { writeFile } from 'fs-extra'; | |
/** Bundles all SCSS files into a single file */ | |
async function bundleScss() { | |
const { found, bundledContent, imports } = await new Bundler() | |
.Bundle('./src/_theme.scss', ['./src/**/*.scss']); | |
if (imports) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:6.9.4 | |
pipelines: | |
default: | |
- step: | |
name: Build, test and check version | |
caches: | |
- node | |
script: | |
- npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"version-check": "node version-check.js" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function versionCheck() { | |
// Compare package.json version to version-lock.json | |
// log() if success | |
// throw() on error | |
} | |
try { versionCheck(); } catch(error) { throw(error); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/osascript -e "tell application \"Finder\" to open POSIX file \"`pwd`\"" |
NewerOlder