Catalog npm
Back to packageRELEASE DETAILS

0.0.3-beta.4

npm

3d-engine-sdk

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Greenkeeper badge](https://badges.greenkeeper.io/alexjoverm/typescript-library-starter.svg)](https://greenkeeper.io/) [![Travi

Published12 May 2021
Direct dependencies42
Transitive dependenciesNot calculated

README

Current package documentation

TypeScript library starter

styled with prettier Greenkeeper badge Travis Coveralls Dev Dependencies Donate

A starter project that makes creating a TypeScript library extremely easy.

Usage

git clone https://github.com/alexjoverm/typescript-library-starter.git YOURFOLDERNAME
cd YOURFOLDERNAME

# Run npm install and write your library name when asked. That's all!
npm install

Start coding! package.json and entry files are already set up for you, so don't worry about linking to your main file, typings, etc. Just keep those files with the same name.

Features

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import myLib from 'mylib'

Additionally, you can import the transpiled modules from dist/lib in case you have a modular library:

import something from 'mylib/dist/lib/something'

NPM scripts

  • npm t: Run test suite
  • npm start: Run npm run build in watch mode
  • npm run test:watch: Run test suite in interactive watch mode
  • npm run test:prod: Run linting and generate coverage
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • npm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)

Excluding peerDependencies

On library development, one might want to set some peer dependencies, and thus remove those from the final bundle. You can see in Rollup docs how to do that.

Good news: the setup is here for you, you must only include the dependency name in external property within rollup.config.js. For example, if you want to exclude lodash, just write there external: ['lodash'].

Automatic releases

Prerequisites: you need to create/login accounts and add your project to:

Prerequisite for Windows: Semantic-release uses node-gyp so you will need to install Microsoft's windows-build-tools using this command:

npm install --global --production windows-build-tools

Setup steps

Follow the console instructions to install semantic release and run it (answer NO to "Do you want a .travis.yml file with semantic-release setup?").

Note: make sure you've setup repository.url in your package.json file

npm install -g semantic-release-cli
semantic-release-cli setup
# IMPORTANT!! Answer NO to "Do you want a `.travis.yml` file with semantic-release setup?" question. It is already prepared for you :P

From now on, you'll need to use npm run commit, which is a convenient way to create conventional commits.

Automatic releases are possible thanks to semantic release, which publishes your code automatically on github and npm, plus generates automatically a changelog. This setup is highly influenced by Kent C. Dodds course on egghead.io

Git Hooks

There is already set a precommit hook for formatting your code with Prettier :nail_care:

By default, there are two disabled git hooks. They're set up when you run the npm run semantic-release-prepare script. They make sure:

This makes more sense in combination with automatic releases

FAQ

Array.prototype.from, Promise, Map... is undefined?

TypeScript or Babel only provides down-emits on syntactical features (class, let, async/await...), but not on functional features (Array.prototype.find, Set, Promise...), . For that, you need Polyfills, such as core-js or babel-polyfill (which extends core-js).

For a library, core-js plays very nicely, since you can import just the polyfills you need:

import "core-js/fn/array/find"
import "core-js/fn/string/includes"
import "core-js/fn/promise"
...

What is npm install doing on first run?

It runs the script tools/init which sets up everything for you. In short, it:

  • Configures RollupJS for the build, which creates the bundles
  • Configures package.json (typings file, main file, etc)
  • Renames main src and test files

What if I don't want git-hooks, automatic releases or semantic-release?

Then you may want to:

  • Remove commitmsg, postinstall scripts from package.json. That will not use those git hooks to make sure you make a conventional commit
  • Remove npm run semantic-release from .travis.yml

What if I don't want to use coveralls or report my coverage?

Remove npm run report-coverage from .travis.yml

Resources

Projects using typescript-library-starter

Here are some projects that use typescript-library-starter:

Credits

Made with :heart: by @alexjoverm and all these wonderful contributors (emoji key):

This project follows the all-contributors specification. Contributions of any kind are welcome!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 42

Native requirements
42 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@scapic/3d-engine
Environment
{
  "local_name": "@scapic/3d-engine",
  "alias": false,
  "peer_metadata": null
}
0.2.5-beta-7runtime
ga-lite
Environment
{
  "local_name": "ga-lite",
  "alias": false,
  "peer_metadata": null
}
^2.1.0runtime
@commitlint/cli
Environment
{
  "local_name": "@commitlint/cli",
  "alias": false,
  "peer_metadata": null
}
^7.1.2development
@commitlint/config-conventional
Environment
{
  "local_name": "@commitlint/config-conventional",
  "alias": false,
  "peer_metadata": null
}
^7.1.2development
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^15.1.0development
@rollup/plugin-json
Environment
{
  "local_name": "@rollup/plugin-json",
  "alias": false,
  "peer_metadata": null
}
^4.1.0development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
@rollup/plugin-replace
Environment
{
  "local_name": "@rollup/plugin-replace",
  "alias": false,
  "peer_metadata": null
}
^2.3.3development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^23.3.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^10.11.0development
colors
Environment
{
  "local_name": "colors",
  "alias": false,
  "peer_metadata": null
}
^1.3.2development
commitizen
Environment
{
  "local_name": "commitizen",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
coveralls
Environment
{
  "local_name": "coveralls",
  "alias": false,
  "peer_metadata": null
}
^3.0.2development
cross-env
Environment
{
  "local_name": "cross-env",
  "alias": false,
  "peer_metadata": null
}
^5.2.1development
cz-conventional-changelog
Environment
{
  "local_name": "cz-conventional-changelog",
  "alias": false,
  "peer_metadata": null
}
^2.1.0development
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^8.2.0development
husky
Environment
{
  "local_name": "husky",
  "alias": false,
  "peer_metadata": null
}
^1.0.1development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^23.6.0development
jest-config
Environment
{
  "local_name": "jest-config",
  "alias": false,
  "peer_metadata": null
}
^23.6.0development
lint-staged
Environment
{
  "local_name": "lint-staged",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development
lodash.camelcase
Environment
{
  "local_name": "lodash.camelcase",
  "alias": false,
  "peer_metadata": null
}
^4.3.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^1.14.3development
prompt
Environment
{
  "local_name": "prompt",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development
replace-in-file
Environment
{
  "local_name": "replace-in-file",
  "alias": false,
  "peer_metadata": null
}
^3.4.2development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^2.32.0development
rollup-plugin-analyzer
Environment
{
  "local_name": "rollup-plugin-analyzer",
  "alias": false,
  "peer_metadata": null
}
^3.3.0development
rollup-plugin-serve
Environment
{
  "local_name": "rollup-plugin-serve",
  "alias": false,
  "peer_metadata": null
}
^1.0.4development
rollup-plugin-sourcemaps
Environment
{
  "local_name": "rollup-plugin-sourcemaps",
  "alias": false,
  "peer_metadata": null
}
^0.4.2development
rollup-plugin-terser
Environment
{
  "local_name": "rollup-plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^7.0.2development
rollup-plugin-typescript2
Environment
{
  "local_name": "rollup-plugin-typescript2",
  "alias": false,
  "peer_metadata": null
}
^0.27.1development
semantic-release
Environment
{
  "local_name": "semantic-release",
  "alias": false,
  "peer_metadata": null
}
^15.9.16development
shelljs
Environment
{
  "local_name": "shelljs",
  "alias": false,
  "peer_metadata": null
}
^0.8.3development
travis-deploy-once
Environment
{
  "local_name": "travis-deploy-once",
  "alias": false,
  "peer_metadata": null
}
^5.0.9development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^23.10.2development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^7.0.1development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^5.11.0development
tslint-config-prettier
Environment
{
  "local_name": "tslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^1.15.0development
tslint-config-standard
Environment
{
  "local_name": "tslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.12.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.0.3development
rollup-plugin-cleaner
Environment
{
  "local_name": "rollup-plugin-cleaner",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-jjPx8xVtIxhDnreKoDWWpBKXQr2aq0zolw0hxaM5E+5lVVxhwl63o0AKZ+0ztuf+HdSxWw1QDjAKwxpsX7BgKQ==",
  "shasum": "0d2d9051bf6a17b337d8e1c88b4f46e9e8f85e4a",
  "tarball": "https://registry.npmjs.org/3d-engine-sdk/-/3d-engine-sdk-0.0.3-beta.4.tgz",
  "fileCount": 35,
  "unpackedSize": 23709872,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm1d0CRA9TVsSAnZWagAAeoQP/AtZrdyj5IwLD2GpF3sI\nUorCWcJkmaLTmOxz+SoH7800F9bhJk+ntTQXpKxvpMXAHToPiRfVBRLonHH+\nbWZjzsRrlx4ZAuvrVE5+0arf8vric6ggBJRiId5QuSNwiLZdJHkFmewW4bW/\n+tAeh5bSUpf5qbIo8bBCk7AWolwV++iyC3K9eCaj9tGk5lQKFRUap8xAXPR8\nZEj4PFmFowtCT+LgDLBoTwsmteC0l5yI2B36B73/7lD9IM9r1HBKI76S3H0W\nfV7EuM0IR28ZPiJGWBBgZKyR3v/znPe9eDlxpCrh16wSREwECx9pOA5VZ0+U\njSacfJ0MKdiQMBPrWuisRV1kEKsY4x8CzAWw0LMyIe8jsFCc62/kwkwTATuE\nTow4Tv0LeZq1kq++AN5gOCB3mZoGDCnC/7MCheT6jvMIe49U7JHn9LHDgeQa\nPkeO5WS+cpsQil+T2SqOe4Ra3G111hPIEFQomLEc8ocGr2D4aH74MqsdpmOm\nrhcjpSkptK2o9W1nB9vOx9lW9D3Y3rvgisImnAf3ERcVbyJDA8Lyl5cCnX+1\nYOnLJVi+V0lVQ+xO3GZWJgalFoNHA7mnGbk2CUTb3lgjy5n+yMnXjnnKZlt1\nd1heGJmKgbloYA81uIwcdWHjeDRMGgZd32jpQhCrolswMrUtrwbboWYd8T7U\ntkWm\r\n=7Gtp\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCID4w4wn8gDHSav0UB5C31B42+ecVtOXrh8SJDMv4kbmvAiA7aiswkbjeAHyQj1AAVDjKduW/r2/36E6YJcFLHL+LEQ=="
    }
  ]
}

Repository

PENDING
scapic/3d-engine-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4d4e06e892470b7d29a1a71ba07ed5a2efcc11ad59c2252b70d25eb8c5dbce76

Other collected versions

0.0.3-beta.712 May0.0.3-beta.612 May0.0.3-beta.512 May0.0.3-beta.312 May0.0.3-beta.26 May0.0.3-beta.16 MayView all collected versions →