webanvil 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["build.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,8BAA4B;AAMhD,wBAA8B,KAAK,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BjF"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["build.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,8BAA4B;AAMhD,wBAA8B,KAAK,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BjF"}
@@ -12,11 +12,10 @@ async function build(configuration) {
12
12
  .map(pathname => Page_1.default.from(pathname));
13
13
  const renderer = Renderer_1.default.from(configuration);
14
14
  const emitter = new EventEmitter_1.default();
15
- // Todo: Disable `outlinecss` plugin
16
- // const signals = []
17
- // for (const plugin of configuration.plugins) {
18
- // signals.push(plugin.install(emitter, configuration))
19
- // }
15
+ const signals = [];
16
+ for (const plugin of configuration.plugins) {
17
+ signals.push(plugin.install(emitter, configuration));
18
+ }
20
19
  sync_1.fs.rm(configuration.directories.output);
21
20
  for (const page of pages) {
22
21
  const html = renderer.render(page);
@@ -32,6 +31,6 @@ async function build(configuration) {
32
31
  sync_1.fs.cp(configuration.directories.public, configuration.directories.output);
33
32
  }
34
33
  emitter.emit(EventEmitter_1.Event.END);
35
- // await Promise.all(signals)
34
+ await Promise.all(signals);
36
35
  return 0;
37
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webanvil",
3
3
  "description": "A zero configuration static site generator that just works.",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "serve:website": "npx webanvil serve",
12
12
  "build": "npm run build:library && npm run build:website",
13
13
  "build:library": "npm run clean && tsc --build",
14
- "build:website": "npx webanvil",
14
+ "build:website": "npm run build:library && npx webanvil",
15
15
  "clean": "tsc --build --clean",
16
16
  "preprepare": "ts-patch install",
17
17
  "prepack": "npm run build"
@@ -20,6 +20,7 @@
20
20
  "browser-sync": "^3.0.3",
21
21
  "gray-matter": "^4.0.3",
22
22
  "minimist": "^1.2.8",
23
+ "outlinecss": "^0.0.3",
23
24
  "rollup": "^4.34.6"
24
25
  },
25
26
  "devDependencies": {