efidiles / folder-template Goto Github PK
View Code? Open in Web Editor NEWA directory / files generator based on templates
License: MIT License
A directory / files generator based on templates
License: MIT License
Eg:
{{#if selector}}
selector: '{{ selector }}',
{{/if}}
I tried to use the package and encountered an error after running
npm run generate test ./
in this repository.
> [email protected] generate C:\Users\Admin\OneDrive\Code\NPM\folder-template-test
> ft "test" "./"
Current working directory:
~/OneDrive\Code\NPM\folder-template-test
task "test" is not registered
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] generate: `ft "test" "./"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] generate 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! C:\Users\Admin\AppData\Roaming\npm-cache\_logs\2018-08-24T17_02_42_607Z-debug.log
whenever there's binary file in the template folder it tries to read it instead of just renaming the file.
it will be useful if binary can be only renamed not compiled.
hello, I have followed the folder-template Getting started guide but I am receiving errors while running the generate command. I am new to github and npm and was wondering what the cause of the error could be. I noticed an open issue for windows environments; I am on a windows machine and was wondering if that might be the cause.
$ npm run generate component ./
> [email protected] generate D:\_root\_Projects\_WWW\experimental\wp-content\themes\palpa
> ft "component" "./"
Current working directory:
~/D:\_root\_Projects\_WWW\experimental\wp-content\themes\palpa
task "component" is not registered
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] generate: `ft "component" "./"`
npm ERR! Exit status 1
npm log:
2018-01-21T22_37_01_445Z-debug.log
excerpt:
9 verbose lifecycle [email protected]~generate: CWD: D:\_root\_Projects\_WWW\experimental\wp-content\themes\palpa
10 silly lifecycle [email protected]~generate: Args: [ '/d /s /c', 'ft "component" "./"' ]
11 silly lifecycle [email protected]~generate: Returned: code: 1 signal: null
12 info lifecycle [email protected]~generate: Failed to exec generate script
13 verbose stack Error: [email protected] generate: `ft "component" "./"`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (D:\laragon\bin\nodejs\node-v8\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (D:\laragon\bin\nodejs\node-v8\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Thank you very much for your time and help
if
in templatesIncorrect separators and could mention in the docs that in scenarios where you'd need an if
operator it may be easier just to create another template folder both both scenarios
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.