Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 6fdefa5

Browse files
author
Maxim
authored
chore: Build with Garment (#20)
1 parent 2b92c62 commit 6fdefa5

File tree

53 files changed

+4336
-846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4336
-846
lines changed

.github/workflows/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Runs a set of commands using the runners shell
2828
- name: Build project
29-
run: yarn build
29+
run: yarn build:ci
3030

3131
- name: Test
3232
run: yarn test

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
# Runs a set of commands using the runners shell
3333
- name: Build project
34-
run: yarn build
34+
run: yarn build:ci
3535

3636
- name: Publish
3737
run: yarn gr publish --npmrc $NPM_CONFIG_USERCONFIG

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# dependencies
66
/node_modules
7+
/local_garment/node_modules
78
/core/*/node_modules
89
/plugins/*/node_modules
910
/schematics/*/node_modules

core/cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"@garment/fixture-helper": "^0.13.11",
33+
"@garment/plugin-runner-void": "^0.13.8",
3334
"@types/cosmiconfig": "^5.0.3",
3435
"@types/is-ci": "^2.0.0",
3536
"@types/update-notifier": "^2.5.0",

core/cli/tsconfig.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

core/dependency-graph/tsconfig.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

core/garment/src/garment.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
/// <reference path="./types/parcel-watcher.d.ts" />
2+
13
import { Graph } from '@garment/dependency-graph';
24
import { Level, Logger } from '@garment/logger';
35
import {
46
CacheProvider,
57
File,
8+
file,
69
getHandler,
710
getRunnerContext,
11+
getSchema,
812
getWatcher,
13+
InputFn,
914
InputFnCallBack,
1015
OutputContainer,
16+
renderOptions,
1117
RunnerMeta,
12-
validateOptions,
13-
file,
14-
InputFn,
15-
getSchema,
16-
renderOptions
18+
validateOptions
1719
} from '@garment/runner';
1820
import {
1921
Action,
@@ -25,6 +27,7 @@ import {
2527
} from '@garment/scheduler';
2628
import { Config, Project, Workspace } from '@garment/workspace';
2729
import * as parcelWatcher from '@parcel/watcher';
30+
import { createHash } from 'crypto';
2831
import * as fs from 'fs';
2932
import { Volume } from 'memfs';
3033
import * as multimatch from 'multimatch';
@@ -35,7 +38,6 @@ import { dependencyGraphFromWorkspace } from './dependencyGraphFromWorkspace';
3538
import { FileCache } from './FileCache';
3639
import { getProjectsByName } from './getProjectsByName';
3740
import globby = require('globby');
38-
import { createHash } from 'crypto';
3941

4042
export type Cache =
4143
| {
@@ -1018,7 +1020,7 @@ async function garmentFromWorkspace(
10181020
dependencies: [],
10191021
extendsSet: new Set()
10201022
}),
1021-
options,
1023+
options: options,
10221024
input: ((async () => {
10231025
return [[] as File[], () => {}] as const;
10241026
}) as any) as InputFn,

core/garment/src/types/parcel-watcher.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ declare module '@parcel/watcher' {
2626
fn: (err: any, events: Event[]) => void,
2727
opts?: Opts
2828
): Promise<{ unsubscribe(): Promise<void> }>;
29-
}
29+
}

core/garment/tsconfig.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

core/logger/tsconfig.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)