Skip to content

Commit

Permalink
build: Remove custom build scripts in favor of Bazel builds (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored May 10, 2018
1 parent 0d1d309 commit e711c28
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 422 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ jobs:
- run: bazel query --output=label //... | xargs bazel test

test:
docker:
- image: circleci/node:latest-browsers
<<: *run_in_ngcontainer
steps:
- checkout
- restore_cache:
key: *cache_key
- run: yarn
- run: yarn copy:schematics
- run: yarn run ci
- run: yarn run example:build:prod
- run: yarn run example:test --watch=false
Expand All @@ -80,8 +80,7 @@ jobs:
- ~/.cache/yarn
- node_modules
deploy:
docker:
- image: circleci/node:latest-browsers
<<: *run_in_ngcontainer
steps:
- add_ssh_keys:
fingerprints:
Expand All @@ -90,6 +89,7 @@ jobs:
- restore_cache:
key: *cache_key
- run: yarn
- run: yarn copy:schematics
- run: yarn run build
- run: yarn run deploy:builds

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/dist
/modules/schematics/src/*/files/*
/tmp
package-lock.json
package.json
yarn.lock
21 changes: 0 additions & 21 deletions build/builder.ts

This file was deleted.

47 changes: 18 additions & 29 deletions build/config.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,27 @@
import * as fs from 'fs';

export interface PackageDescription {
name: string;
hasTestingModule: boolean;
bundle: boolean;
}

export interface Config {
packages: PackageDescription[];
scope: string;
}

export const packages: PackageDescription[] = [
{
name: 'store',
hasTestingModule: false,
bundle: true,
},
{
name: 'effects',
hasTestingModule: true,
bundle: true,
},
{
name: 'router-store',
hasTestingModule: false,
bundle: true,
},
{
name: 'store-devtools',
hasTestingModule: false,
bundle: true,
},
{
name: 'entity',
hasTestingModule: false,
bundle: true,
},
];
const modulesDir = './modules/';
export const packages: PackageDescription[] = fs
.readdirSync(modulesDir)
.filter(path => {
const stat = fs.statSync(`${modulesDir}${path}`);
const isDir = stat.isDirectory();

if (!isDir) {
return false;
}

const hasBuild = fs.existsSync(`${modulesDir}${path}/BUILD`);

return hasBuild;
})
.map(pkg => ({ name: pkg }));
10 changes: 0 additions & 10 deletions build/index.ts

This file was deleted.

Loading

0 comments on commit e711c28

Please sign in to comment.