netlify / build-plugin-template Goto Github PK
View Code? Open in Web Editor NEWTemplate repository to create new Netlify Build plugins.
License: MIT License
Template repository to create new Netlify Build plugins.
License: MIT License
Context netlify/node-template#4
This repo implements the same functionality provided by cookiecutter as a part of the init command.
We should consider switching to cookiecutter
. One downside is that users would need to install an additional tool which is not Node.js based. We could search for another templating tool that can be installed via npm
Which problem is this feature request solving?
While working on https://github.com/erezrokah/netlify-plugin-epsagon we noticed that functions-utils
is missing from the template.
Adding it would be helpful for plugin authors.
Describe the solution you'd like
Add a section about it in src/ndex.js
here:
build-plugin-template/src/index.js
Line 67 in a43fdde
Describe alternatives you've considered
N/A
Can you submit a pull request?
Yes
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
inquirer
, inquirer-autocomplete-prompt
)package.json
@netlify/build ^26.5.3
ava ^4.0.0
chalk ^5.0.0
cpy ^9.0.0
cross-env ^7.0.2
del ^6.0.0
email-validator ^2.0.4
eslint ^7.10.0
eslint-config-prettier ^8.0.0
eslint-plugin-import ^2.22.1
eslint-plugin-n ^14.0.0
eslint-plugin-prettier ^4.0.0
execa ^6.0.0
fast-glob ^3.2.4
filter-obj ^3.0.0
fuzzy ^0.1.3
git-remote-origin-url ^4.0.0
inquirer ^8.0.0
inquirer-autocomplete-prompt ^2.0.0
netlify-cli ^9.16.2
omit.js ^2.0.2
prettier ^2.1.2
release-it ^15.0.0
semver ^7.3.2
spdx-license-list ^6.3.0
strip-ansi ^7.0.0
username ^6.0.0
yargs ^17.0.0
node ^14.14.0 || >=16.0.0
This is an issue generated by (for-internal-use-only)github-tools
This repository has exceeded the development grace period, and the repo owner must decide if branch protections should be enforced.
If this repository houses code used in production in any capacity, branch protections must be enforced. Read (for-internal-use-only)here for more details
Now that TypeScript is allowed for Build plugins, we should:
index.ts
replicating what index.js
does, but for TypeScript userstest/index.ts
README.md
that this repository includes files for either JavaScript or TypeScript usersinit/**
to generate a TypeScript setupDescribe the bug
npm run init
failed after prompts
? Source code repository DavidWells/netlify-plugin-next
? Supported Node.js version >=8.3.0
removed 11 packages in 4.669s
β Netlify Build should not fail Rejected promise returned by test
1 test failed
Netlify Build should not fail
/Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/node_modules/execa/lib/error.js:58
Rejected promise returned by test. Reason:
Error {
command: 'netlify-build --config /Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/test/../netlify.toml',
exitCode: 1,
failed: true,
isCanceled: false,
killed: false,
shortMessage: 'Command failed with exit code 1: netlify-build --config /Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/test/../netlify.toml',
signal: undefined,
signalDescription: undefined,
stderr: '',
stdout: `ββ
ββββββββββββββββββββββββββββββββ
β Netlify Build ββ
ββββββββββββββββββββββββββββββββ
ββ
β― Versionβ
@netlify/build 1.0.6β
ββ
β― Flagsβ
config: /Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/test/../netlify.tomlβ
ββ
β― Current directoryβ
/Users/davidwells/Netlify/projects/next-research/netlify-plugin-nextβ
ββ
β― Config fileβ
/Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/netlify.tomlβ
ββ
β― Contextβ
productionβ
ββ
ββββββββββββββββββββββββββββββββ
β Plugin "." internal error ββ
ββββββββββββββββββββββββββββββββ
ββ
Error messageβ
Error: This plugin is missing a "manifest.yml".β
Please see the documentation at https://github.com/netlify/build#anatomy-of-a-pluginβ
ββ
Error locationβ
While loading "." from netlify.tomlβ
at async Promise.all (index 0)β
ββ
Resolved configβ
build:β
command: echo onBuildβ
plugins:β
- inputs: {}β
origin: configβ
package: .`,
timedOut: false,
message: `Command failed with exit code 1: netlify-build --config /Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/test/../netlify.tomlβ
ββ
ββββββββββββββββββββββββββββββββ
β Netlify Build ββ
ββββββββββββββββββββββββββββββββ
ββ
β― Versionβ
@netlify/build 1.0.6β
ββ
β― Flagsβ
config: /Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/test/../netlify.tomlβ
ββ
β― Current directoryβ
/Users/davidwells/Netlify/projects/next-research/netlify-plugin-nextβ
ββ
β― Config fileβ
/Users/davidwells/Netlify/projects/next-research/netlify-plugin-next/netlify.tomlβ
ββ
β― Contextβ
productionβ
ββ
ββββββββββββββββββββββββββββββββ
β Plugin "." internal error ββ
ββββββββββββββββββββββββββββββββ
ββ
Error messageβ
Error: This plugin is missing a "manifest.yml".β
Please see the documentation at https://github.com/netlify/build#anatomy-of-a-pluginβ
ββ
Error locationβ
While loading "." from netlify.tomlβ
at async Promise.all (index 0)β
ββ
Resolved configβ
build:β
command: echo onBuildβ
plugins:β
- inputs: {}β
origin: configβ
package: .`,
}
makeError (node_modules/execa/lib/error.js:58:11)
handlePromise (node_modules/execa/index.js:114:26)
Error: Initialization failed.
added 11 packages from 5 contributors in 4.986s
Error: Test run failed.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] init: `npm install --loglevel error --no-audit --no-fund && node init/bin.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/davidwells/.npm/_logs/2020-07-13T17_41_54_269Z-debug.log
β netlify-plugin-next git:(master)
Steps to reproduce
Step-by-step instructions on how to reproduce the behavior.
npm run init
Describe the bug
The repository contains two pull request templates: .github/PULL_REQUEST_TEMPLATE.md
and .github/pull_request_template.md
. As they share the same name (capitalization aside), this also causes issues on case-insensitive filesystems.
Can you submit a pull request? Yes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.