@inspire11/create
A CLI for quickly creating new Inspire11 projects
Last updated 2 months ago by inspire11robh .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @inspire11/create 
SYNC missed versions from official npm registry.

@inspire11/create

Version Downloads Build License

???? @inspire11/create

Run one simple command with interactive project generator to install bootstrapped packages designed to let you hit the ground running.

  1. ???? Creating Projects
  2. ???? Features
  3. ???? Setting Up Your Editor
  4. ???????? Contributing
  5. ℹ️ FAQs
  6. ???? Thanks

???? Creating Projects

You'll need Node v10 or later.

npm init @inspire11

The interactive CLI will help you create and configure your project automatically.

Since this repo includes the CLI and it's tests, you'll only need to fork or clone this project if you want to contribute. If you find this project useful, please consider leaving feedback so others can find it. Thanks!

???? Features

So we can have nice things:

???? Setting Up Your Editor

Before you start, consider using an editor with good typescript support.

VS Code (below) is a popular option. Editors with typescript support can provide helpful autocomplete, inline documentation, and code refactoring features.

Also consider installing editor extensions for ESLint. These extensions automatically format your code each time you save, and may quickly become invaluable.

???????? Contributing

To work on the CLI, clone and build the repo, then use npx to test it globally.

git clone git@bitbucket.org:inspire11/create.git
cd create
npm i
npm run build
npm run prod

The following tasks make development faster and more interactive:

Command Description
build Clean and rebuild the project
dev Run the pre-processed script directly via ts-node
prod Run the compiled script via node
test Lint and unit test the project

To start working, run the dev task using npm.

npm run dev

The dev task will run the script directly via ts-node; the test task will run the test suite in watch mode with Jest. Each time you save, any changes will be rebuilt and retested.

Since only changed files are rebuilt and retested, this workflow remains fast even for large projects.

ℹ️ FAQs

Why are there two builds? (main and module)

The src of @inspire11/create is compiled into two separate builds: main and module. The main build is configured to use the CommonJS module system. The module build uses the new es6 module system.

Because Node.js LTS releases do not yet support the es6 module system, some projects which depend on your project will follow the main field in package.json. Tools which support the new system (like Rollup, Webpack, or Parcel) will follow the module field, giving them the ability to statically analyze your project. These tools can tree-shake your module build to import only the code they need.

Why put tests next to the source code?

By convention, sample tests in this project are adjacent to the files they test.

  • Such tests are easy to find.
  • You see at a glance if a part of your project lacks tests.
  • Nearby tests can reveal how a part works in context.
  • When you move the source (inevitable), you remember to move the test.
  • When you rename the source file (inevitable), you remember to rename the test file.

???? Thanks

Using @inspire11/create for your project? Please send a pull request to add it to the list!

Current Tags

  • 0.0.28                                ...           latest (2 months ago)

27 Versions

  • 0.0.28                                ...           2 months ago
  • 0.0.27                                ...           2 months ago
  • 0.0.26                                ...           2 months ago
  • 0.0.25                                ...           2 months ago
  • 0.0.24                                ...           2 months ago
  • 0.0.23                                ...           2 months ago
  • 0.0.22                                ...           2 months ago
  • 0.0.21                                ...           2 months ago
  • 0.0.20                                ...           2 months ago
  • 0.0.19                                ...           2 months ago
  • 0.0.18                                ...           2 months ago
  • 0.0.17                                ...           2 months ago
  • 0.0.16                                ...           2 months ago
  • 0.0.15                                ...           2 months ago
  • 0.0.14                                ...           2 months ago
  • 0.0.13                                ...           2 months ago
  • 0.0.12                                ...           2 months ago
  • 0.0.11                                ...           2 months ago
  • 0.0.10                                ...           2 months ago
  • 0.0.9                                ...           2 months ago
  • 0.0.8                                ...           2 months ago
  • 0.0.7                                ...           2 months ago
  • 0.0.6                                ...           2 months ago
  • 0.0.5                                ...           2 months ago
  • 0.0.4                                ...           2 months ago
  • 0.0.3                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (23)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |