0.7.0 • Published 3 years ago

feanor v0.7.0

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

Feanor Build Status npm version

The tool for creating modern static web sites. Via the only command you get an environment ready for development.

New Project Initialization

First of all install Feanor globally:

yarn global add feanor

Then just create new project with the command: feanor init myProjectName

Also, the bizarre (and recommended) way of using Feanor is npx. In this case, you should not install something globally:

npx feanor init myProjectName

Options

NameTypeDefault valueDescription
--lessbooleanfalseUse less in project.Only one --less or --sass allowed to be used.
--sassbooleanfalseUse scss in project.Only one --less or --sass allowed to be used.
--npmbooleantrueUse NPM.Only one --npm or --yarn allowed to be used.
--yarnboolean[]falseUse Yarn.Only one --npm or --yarn allowed to be used.
--scriptsstring[][]Postinstall script ids splitted via whitespace to execute.See Post-install scripts below for more information

Example options usage:

npx feanor init myProjectName --sass --yarn

Post-install Scripts

Feanor post-install scripts are normally just Github Gists with additional project contents including dependencies and scrips.

Post-install script Gists can contain two special files:

  1. deps.json - NPM-packages list to install. Add suffix :dev to install things as dev dependencies.
["axios", "jsdom:dev"]
  1. scripts.json - additional scripts for your package json.
{
  "optimize-images": "node ./scripts/optimizer.js"
}

Take a look here for example.

All additional files will be downloaded in directory scripts in your project directory. In case of names conflict, Feanor'll add a random prefix.

Gist ID means a hash, wich normally follows after author's username. For example a20915c22d3c8481c4a7c2e6b6a1faa3 is Gist ID in url below:

https://gist.github.com/Saionaro/a20915c22d3c8481c4a7c2e6b6a1faa3

You also can specify the exact gist revision after a slash symbol, like below:

a20915c22d3c8481c4a7c2e6b6a1faa3/f11bd725edbbfe7f8b9d2776a4f9b036aaea310c

In the case of missing revision SHA, Feanor will use the latest revision. Beware this in case of an untrusted script provider.

Below the example with postinstall scripts:

npx feanor i project --sass --scripts a20915c22d3c8481c4a7c8e6b6a1faa3/f11bd725edbbfe7f8b9d2776a4f9b036aaea310c a20915c22dfcf481c3a7c2e6b6a1fna4

In this example we tell Feanor to install exact revision for script and the the latest version for another script as well.

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.5

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0-reserved

6 years ago