create-foliwake 0.0.0-stage → 0.3.0
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.
- package/CHANGELOG.md +51 -0
- package/LICENSE +202 -0
- package/README.md +60 -2
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +16 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +88 -0
- package/dist/create.d.ts +50 -0
- package/dist/create.js +250 -0
- package/dist/destination.d.ts +47 -0
- package/dist/destination.js +243 -0
- package/dist/editor-files.d.ts +6 -0
- package/dist/editor-files.js +39 -0
- package/dist/files.d.ts +26 -0
- package/dist/files.js +94 -0
- package/dist/git.d.ts +22 -0
- package/dist/git.js +64 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/install.d.ts +12 -0
- package/dist/install.js +18 -0
- package/dist/options.d.ts +48 -0
- package/dist/options.js +54 -0
- package/dist/prompts.d.ts +16 -0
- package/dist/prompts.js +67 -0
- package/dist/starters.d.ts +20 -0
- package/dist/starters.js +61 -0
- package/dist/validate.d.ts +3 -0
- package/dist/validate.js +12 -0
- package/package.json +64 -3
- package/starters/examples/components/quiz/quiz.css +33 -0
- package/starters/examples/components/quiz/quiz.example.md +29 -0
- package/starters/examples/components/quiz/quiz.js +36 -0
- package/starters/examples/components/quiz/quiz.json +14 -0
- package/starters/examples/components/steps/steps.css +38 -0
- package/starters/examples/components/steps/steps.example.md +25 -0
- package/starters/examples/components/steps/steps.json +8 -0
- package/starters/examples/content/blocks.md +49 -0
- package/starters/examples/content/index.md +44 -0
- package/starters/minimal/components/note/note.css +15 -0
- package/starters/minimal/components/note/note.example.md +23 -0
- package/starters/minimal/components/note/note.json +8 -0
- package/starters/minimal/content/images/foliwake-logo.png +0 -0
- package/starters/minimal/content/index.md +32 -0
- package/starters/react/components/poll/poll.css +32 -0
- package/starters/react/components/poll/poll.example.md +26 -0
- package/starters/react/components/poll/poll.js +35 -0
- package/starters/react/components/poll/poll.json +13 -0
- package/starters/react/scripts/react-view.js +22 -0
- package/starters/shared/README.md +104 -0
- package/starters/shared/_github/actions/foliwake-request/action.yml +45 -0
- package/starters/shared/_github/scripts/foliwake-report.py +68 -0
- package/starters/shared/_github/workflows/branch-preview.yml +104 -0
- package/starters/shared/_github/workflows/frontend-checks.yml +28 -0
- package/starters/shared/_github/workflows/production.yml +134 -0
- package/starters/shared/_gitignore +8 -0
- package/starters/shared/jsconfig.json +16 -0
- package/starters/shared/scripts/components.js +284 -0
- package/starters/shared/site.yaml +2 -0
- package/starters/shared/styles/styles.css +106 -0
- package/starters/shared/tests/site.test.mjs +21 -0
- package/starters/shared/tests/workflows.test.mjs +84 -0
- package/starters/storybook/_storybook/main.js +46 -0
- package/starters/storybook/_storybook/preview.js +7 -0
- package/starters/storybook/_storybook/run.mjs +25 -0
- package/starters/storybook/pnpm-workspace.yaml +8 -0
- package/vendor/react.LICENSE.txt +21 -0
- package/vendor/react.js +32 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* Site styles, linked by every page. Block styles live next to each block:
|
|
2
|
+
components/<name>/<name>.css (in @layer blocks, which comes after base).
|
|
3
|
+
|
|
4
|
+
Fonts: the system font stack needs no files. To use your own font, put the
|
|
5
|
+
files in styles/fonts/ and declare them here with @font-face, pointing at
|
|
6
|
+
them with a relative URL such as ./fonts/site.woff2 (a code release accepts
|
|
7
|
+
only relative references to files inside the project; the engine scans even
|
|
8
|
+
comments, so do not leave example URLs to missing files here). */
|
|
9
|
+
|
|
10
|
+
@layer base, blocks;
|
|
11
|
+
|
|
12
|
+
@layer base {
|
|
13
|
+
:root {
|
|
14
|
+
--color-text: #18181b;
|
|
15
|
+
--color-muted: #52525b;
|
|
16
|
+
--color-page: #ffffff;
|
|
17
|
+
--color-surface: #f4f4f5;
|
|
18
|
+
--color-border: #d4d4d8;
|
|
19
|
+
--color-accent: #1d4ed8;
|
|
20
|
+
--radius: 0.75rem;
|
|
21
|
+
--space: 1rem;
|
|
22
|
+
color-scheme: light dark;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-color-scheme: dark) {
|
|
26
|
+
:root {
|
|
27
|
+
--color-text: #e4e4e7;
|
|
28
|
+
--color-muted: #a1a1aa;
|
|
29
|
+
--color-page: #18181b;
|
|
30
|
+
--color-surface: #27272a;
|
|
31
|
+
--color-border: #3f3f46;
|
|
32
|
+
--color-accent: #93b4ff;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
margin: 0;
|
|
40
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
41
|
+
font-size: 1.0625rem;
|
|
42
|
+
line-height: 1.6;
|
|
43
|
+
color: var(--color-text);
|
|
44
|
+
background: var(--color-page);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
main {
|
|
48
|
+
max-width: 68ch;
|
|
49
|
+
margin-inline: auto;
|
|
50
|
+
padding: 2rem 1rem 4rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
h1, h2, h3 { line-height: 1.25; }
|
|
54
|
+
img { max-width: 100%; height: auto; }
|
|
55
|
+
|
|
56
|
+
/* The Foliwake logo of the welcome page (content/index.md): the image with the text "Foliwake" at
|
|
57
|
+
the very top of a page, small, above the title. Matched by its alt text, which the engine keeps on
|
|
58
|
+
every channel (the file name becomes a hash on preview and live). Other images are not affected.
|
|
59
|
+
The logo is dark on transparent: a white plate (invisible on the light page) keeps it readable in dark mode. */
|
|
60
|
+
main > [data-section]:first-child > p:first-child > img[alt="Foliwake"]:only-child {
|
|
61
|
+
display: block;
|
|
62
|
+
width: 13rem;
|
|
63
|
+
padding: 0.4rem 0.5rem;
|
|
64
|
+
border-radius: var(--radius);
|
|
65
|
+
background: #ffffff;
|
|
66
|
+
margin-left: -0.5rem;
|
|
67
|
+
}
|
|
68
|
+
a { color: var(--color-accent); }
|
|
69
|
+
code { font-size: 0.95em; }
|
|
70
|
+
|
|
71
|
+
/* Markdown tables: <div data-table> scrolls sideways on narrow screens. */
|
|
72
|
+
[data-table] { overflow-x: auto; margin-block: 1.25rem; }
|
|
73
|
+
table { border-collapse: collapse; min-width: 100%; }
|
|
74
|
+
th, td {
|
|
75
|
+
padding: 0.5rem 0.75rem;
|
|
76
|
+
border: 1px solid var(--color-border);
|
|
77
|
+
text-align: start;
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
}
|
|
80
|
+
th { font-weight: 600; background: var(--color-surface); }
|
|
81
|
+
:is(th, td)[data-align="center"] { text-align: center; }
|
|
82
|
+
:is(th, td)[data-align="right"] { text-align: end; }
|
|
83
|
+
|
|
84
|
+
/* Sections of a page (`---` between them in Markdown). */
|
|
85
|
+
[data-section] + [data-section] {
|
|
86
|
+
margin-top: 2.5rem;
|
|
87
|
+
padding-top: 1.5rem;
|
|
88
|
+
border-top: 1px solid var(--color-border);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Every block: a card. A block's own CSS adds what is its own. */
|
|
92
|
+
[data-component] {
|
|
93
|
+
margin: 1.5rem 0;
|
|
94
|
+
padding: var(--space) calc(var(--space) * 1.25);
|
|
95
|
+
border-radius: var(--radius);
|
|
96
|
+
background: var(--color-surface);
|
|
97
|
+
|
|
98
|
+
& > :first-child { margin-top: 0; }
|
|
99
|
+
& > :last-child { margin-bottom: 0; }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Do not show a block while the loader (scripts/components.js) is still
|
|
103
|
+
loading its CSS and JavaScript. Only the loader sets this status, so
|
|
104
|
+
without JavaScript nothing is hidden and the HTML stays readable. */
|
|
105
|
+
[data-component][data-component-status="loading"] { visibility: hidden; }
|
|
106
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Quick checks of what @foliwake/site-check does not check (run: node --test "tests/*.test.mjs"). Everything
|
|
2
|
+
// about the site code itself is checked by `npx @foliwake/site-check`, which the "Frontend checks" workflow runs;
|
|
3
|
+
// the platform runs the same checks.
|
|
4
|
+
import assert from 'node:assert/strict';
|
|
5
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { test } from 'node:test';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
|
|
10
|
+
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
11
|
+
const VENDOR = path.join(ROOT, 'scripts', 'vendor');
|
|
12
|
+
|
|
13
|
+
// Third-party code committed in scripts/vendor/ (e.g. React of `create-foliwake --react`) keeps its license
|
|
14
|
+
// next to it: scripts/vendor/<name>.js and scripts/vendor/<name>.LICENSE.txt.
|
|
15
|
+
test('every vendored script has its license next to it', () => {
|
|
16
|
+
const scripts = existsSync(VENDOR) ? readdirSync(VENDOR).filter((name) => name.endsWith('.js')) : [];
|
|
17
|
+
for (const script of scripts) {
|
|
18
|
+
const license = script.replace(/\.js$/, '.LICENSE.txt');
|
|
19
|
+
assert.ok(existsSync(path.join(VENDOR, license)), `scripts/vendor/${script}: add its license as ${license}`);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Static checks of the deployment workflows (run: node --test "tests/*.test.mjs"). They pin
|
|
2
|
+
// down what keeps them safe: both deployment workflows stay inert until their
|
|
3
|
+
// own repository variable is `true`, branch previews and production use
|
|
4
|
+
// separate environments and secrets, production runs only from main after the
|
|
5
|
+
// checks, nothing with secrets runs for pull requests or forks, and every
|
|
6
|
+
// action is pinned to a commit SHA. Text-based (no YAML dependency).
|
|
7
|
+
import assert from 'node:assert/strict';
|
|
8
|
+
import { readFileSync } from 'node:fs';
|
|
9
|
+
import { test } from 'node:test';
|
|
10
|
+
|
|
11
|
+
const read = (name) => readFileSync(new URL(`../.github/workflows/${name}`, import.meta.url), 'utf8');
|
|
12
|
+
const files = { checks: read('frontend-checks.yml'), preview: read('branch-preview.yml'), production: read('production.yml') };
|
|
13
|
+
|
|
14
|
+
// Job blocks: ` <id>:` lines directly under `jobs:`.
|
|
15
|
+
function jobs(text) {
|
|
16
|
+
const body = text.slice(text.indexOf('\njobs:\n') + 7);
|
|
17
|
+
const out = {};
|
|
18
|
+
let current = null;
|
|
19
|
+
for (const line of body.split('\n')) {
|
|
20
|
+
const match = /^ ([A-Za-z0-9_-]+):\s*$/.exec(line);
|
|
21
|
+
if (match) {
|
|
22
|
+
current = match[1];
|
|
23
|
+
out[current] = '';
|
|
24
|
+
} else if (current) out[current] += `${line}\n`;
|
|
25
|
+
}
|
|
26
|
+
return out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
test('no workflow uses pull_request_target, write permissions or unpinned actions', () => {
|
|
30
|
+
for (const [name, text] of Object.entries(files)) {
|
|
31
|
+
assert.doesNotMatch(text, /pull_request_target/, name);
|
|
32
|
+
assert.match(text, /^permissions:\n contents: read\n/m, `${name}: read-only token`);
|
|
33
|
+
assert.doesNotMatch(text, /:\s*write\b/, `${name}: no write permission`);
|
|
34
|
+
for (const [, ref] of text.matchAll(/uses:\s*(\S+)/g)) {
|
|
35
|
+
if (ref.startsWith('./')) continue;
|
|
36
|
+
assert.match(ref, /@[0-9a-f]{40}$/, `${name}: ${ref} pinned to a commit SHA`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('frontend checks use no secrets (safe for fork pull requests) and run the tests', () => {
|
|
42
|
+
assert.doesNotMatch(files.checks, /secrets\./);
|
|
43
|
+
assert.match(files.checks, /^ pull_request:\s*$/m);
|
|
44
|
+
assert.match(files.checks, /node --test "tests\/\*\.test\.mjs"/);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
test('branch previews: inert until BRANCH_PREVIEWS_ENABLED, own environment and secrets, never main', () => {
|
|
48
|
+
const text = files.preview;
|
|
49
|
+
assert.match(text, /^ push:\n branches-ignore: \[main\]\n delete:\n/m);
|
|
50
|
+
assert.doesNotMatch(text, /workflow_dispatch|pull_request/);
|
|
51
|
+
assert.doesNotMatch(text, /PRODUCTION/);
|
|
52
|
+
const all = jobs(text);
|
|
53
|
+
assert.deepEqual(Object.keys(all).sort(), ['delete', 'preview']);
|
|
54
|
+
for (const [id, job] of Object.entries(all)) {
|
|
55
|
+
assert.match(job, /vars\.BRANCH_PREVIEWS_ENABLED == 'true'/, `${id}: enablement guard`);
|
|
56
|
+
assert.match(job, /vars\.FOLIWAKE_SITE_ID != ''/, `${id}: needs the site id`);
|
|
57
|
+
assert.match(job, /!github\.event\.repository\.fork/, `${id}: not in forks`);
|
|
58
|
+
assert.match(job, /(github\.ref_name|github\.event\.ref) != 'main'/, `${id}: never main`);
|
|
59
|
+
assert.match(job, /^ environment: branch-previews$/m, `${id}: environment`);
|
|
60
|
+
for (const [, secret] of job.matchAll(/secrets\.([A-Z0-9_]+)/g)) assert.match(secret, /^BRANCH_PREVIEW_/, `${id}: ${secret}`);
|
|
61
|
+
assert.match(job, /RUN_ID/, `${id}: ordering sequence from the run id`);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test('production: inert until FRONTEND_PRODUCTION_DEPLOY_ENABLED, main only, after the checks, production secrets only', () => {
|
|
66
|
+
const text = files.production;
|
|
67
|
+
assert.match(text, /^ push:\n branches: \[main\]\n/m);
|
|
68
|
+
assert.doesNotMatch(text, /secrets\.BRANCH_PREVIEW/);
|
|
69
|
+
const all = jobs(text);
|
|
70
|
+
assert.match(all.checks, /uses: \.\/\.github\/workflows\/frontend-checks\.yml/);
|
|
71
|
+
assert.match(all.deploy, /^ needs: checks$/m, 'deploy needs the checks');
|
|
72
|
+
assert.match(all.deploy, /"action": "deploy"/, 'a push deploys main: the server prepares it and, with codeRelease auto, releases it when its checks pass');
|
|
73
|
+
assert.doesNotMatch(text, /promote|"action": "release"/, 'no request names a release: only the server decides one, for the commit it deployed');
|
|
74
|
+
for (const id of ['deploy', 'rollback']) {
|
|
75
|
+
const job = all[id];
|
|
76
|
+
assert.match(job, /vars\.FRONTEND_PRODUCTION_DEPLOY_ENABLED == 'true'/, `${id}: own enablement guard`);
|
|
77
|
+
assert.doesNotMatch(job, /BRANCH_PREVIEWS_ENABLED/, `${id}: not the branch-preview guard`);
|
|
78
|
+
assert.match(job, /github\.ref == 'refs\/heads\/main'/, `${id}: main only`);
|
|
79
|
+
assert.match(job, /!github\.event\.repository\.fork/, `${id}: not in forks`);
|
|
80
|
+
assert.match(job, /^ environment:\n name: production$/m, `${id}: production environment`);
|
|
81
|
+
for (const [, secret] of job.matchAll(/secrets\.([A-Z0-9_]+)/g)) assert.match(secret, /^PRODUCTION_DEPLOY_/, `${id}: ${secret}`);
|
|
82
|
+
}
|
|
83
|
+
assert.match(all.rollback, /expect/, 'a rollback names the live release it expects');
|
|
84
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Storybook for the blocks of this site (added by `create-foliwake --storybook`).
|
|
2
|
+
//
|
|
3
|
+
// The stories are not written by hand: `foliwake blocks render` writes them into
|
|
4
|
+
// .foliwake/stories from the block examples, components/<name>/<name>.example.md —
|
|
5
|
+
// the engine's HTML of each example, the block's stylesheet and its init(root).
|
|
6
|
+
// `npm run stories` renders them, keeps them current and starts Storybook.
|
|
7
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
|
|
10
|
+
const STORIES = '.foliwake/stories';
|
|
11
|
+
const manifestUrl = new URL(`../${STORIES}/manifest.json`, import.meta.url);
|
|
12
|
+
if (!existsSync(manifestUrl)) throw new Error(`${STORIES}/manifest.json is missing: run \`foliwake blocks render\` first (\`npm run stories\` does).`);
|
|
13
|
+
const manifest = JSON.parse(readFileSync(manifestUrl, 'utf8'));
|
|
14
|
+
if (manifest.schema !== 'foliwake-block-stories/1') throw new Error(`${STORIES}/manifest.json is not from \`foliwake blocks render\` (schema ${manifest.schema}).`);
|
|
15
|
+
const missing = manifest.blocks.filter((block) => block.stories === null).map((block) => block.name);
|
|
16
|
+
if (missing.length > 0) console.warn(`Blocks without examples (no stories): ${missing.join(', ')}. Add components/<name>/<name>.example.md.`);
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
framework: { name: '@storybook/html-vite', options: {} },
|
|
20
|
+
// A folder, not a list from the manifest: a block that gets its first example appears without a restart.
|
|
21
|
+
stories: [{ directory: `../${STORIES}`, files: '*.stories.js' }],
|
|
22
|
+
// Images of the examples are /components/… URLs: in a static build they are copied from the block folders.
|
|
23
|
+
// Not in `storybook dev`: there Vite serves the project folder itself, and a static /components
|
|
24
|
+
// would shadow the block modules and stylesheets that the stories import.
|
|
25
|
+
staticDirs: (dirs = [], { configType } = {}) => (configType === 'PRODUCTION' ? [...dirs, { from: '../components', to: '/components' }] : dirs),
|
|
26
|
+
core: { disableTelemetry: true },
|
|
27
|
+
// Blocks import block-kit as `@foliwake/block-kit` (or `foliwake`, its previous name; pages map both to their
|
|
28
|
+
// code release's kit), blocks not yet moved to it
|
|
29
|
+
// the previous kit as ../../_foliwake/block-kit-1.js; `foliwake blocks render` puts copies into the stories folder.
|
|
30
|
+
viteFinal: (config) => ({
|
|
31
|
+
...config,
|
|
32
|
+
resolve: {
|
|
33
|
+
...config.resolve,
|
|
34
|
+
alias: [
|
|
35
|
+
...aliases(config.resolve?.alias),
|
|
36
|
+
{ find: /^(?:@foliwake\/block-kit|foliwake)$/, replacement: fileURLToPath(new URL(`../${STORIES}/_foliwake/block-kit.js`, import.meta.url)) },
|
|
37
|
+
{ find: /^(?:\.\.\/)+_foliwake\//, replacement: fileURLToPath(new URL(`../${STORIES}/_foliwake/`, import.meta.url)) },
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
function aliases(alias) {
|
|
44
|
+
if (!alias) return [];
|
|
45
|
+
return Array.isArray(alias) ? alias : Object.entries(alias).map(([find, replacement]) => ({ find, replacement }));
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// `npm run stories`: render the block examples once, then keep them current
|
|
2
|
+
// (`foliwake blocks render --watch`) while Storybook runs. Ctrl+C stops both.
|
|
3
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
4
|
+
|
|
5
|
+
const windows = process.platform === 'win32';
|
|
6
|
+
const first = spawnSync('foliwake', ['blocks', 'render'], { stdio: 'inherit', shell: windows });
|
|
7
|
+
if (first.error?.code === 'ENOENT') {
|
|
8
|
+
// A shell alias is invisible here: the command must be on PATH.
|
|
9
|
+
console.error('The `foliwake` command was not found on PATH. If it is a shell alias, replace it with `npm link`\nin your Foliwake checkout (see the Quickstart: https://docs.foliwake.dev/guide/quickstart).');
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
// Status 1: an example has errors (shown above, left out); anything else stops here.
|
|
13
|
+
if (first.error || (first.status !== 0 && first.status !== 1)) {
|
|
14
|
+
if (first.error) console.error(`foliwake blocks render could not run: ${first.error.message}`);
|
|
15
|
+
process.exit(first.status ?? 1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const children = [
|
|
19
|
+
spawn('foliwake', ['blocks', 'render', '--watch'], { stdio: 'inherit', shell: windows }),
|
|
20
|
+
spawn('storybook', ['dev', '--port', '6006', ...process.argv.slice(2)], { stdio: 'inherit', shell: windows }),
|
|
21
|
+
];
|
|
22
|
+
const stop = () => children.forEach((child) => child.kill());
|
|
23
|
+
process.once('SIGINT', stop);
|
|
24
|
+
process.once('SIGTERM', stop);
|
|
25
|
+
for (const child of children) child.once('exit', (code) => { stop(); process.exitCode = code ?? 0; });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# For pnpm only (npm and Yarn do not read this file): Storybook needs esbuild, whose install script
|
|
2
|
+
# fetches its binary. pnpm runs no dependency's build scripts until they are approved, and pnpm 11
|
|
3
|
+
# fails the install without this (ERR_PNPM_IGNORED_BUILDS). `allowBuilds` is the setting of
|
|
4
|
+
# pnpm 10.26 and later; `onlyBuiltDependencies` the same for older pnpm 10.
|
|
5
|
+
allowBuilds:
|
|
6
|
+
esbuild: true
|
|
7
|
+
onlyBuiltDependencies:
|
|
8
|
+
- esbuild
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|