npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

trixly

v0.1.9

Published

Universal TypeScript 2.0 Pre starter kit for Angular 2 and React

Downloads

9

Readme

Trixly

Build Status Coverage Status npm version npm

Universal TypeScript starter kit for Angular 2 and React

Fast, reliable TypeScript development stack for building Angular 2.0 and React applications based on webpack using TypeScript 1.9x together with Babel (async/await and generators in ES5).

Features

  • [x] Uses TypeScript 2.0 Pre
  • [x] Statically typed build system for working with Typescript
  • [x] Maintain a consistent code style with TSLint
  • [x] Production and development builds.
  • [x] Intelligent code editing with VSCode
  • [x] Mock modules for testing purposes with Rewire
  • [x] Run test doubles with Sinon.JS
  • [x] Sample unit tests with Mocha and Karma including code coverage via istanbul.
  • [x] Following the best practices.
  • [x] Manager of your type definitions using typings.
  • [x] ES7 to ES5 transpilation with Babel
  • [x] Test Driven Development (TDD)
  • [x] Async and await
  • [x] Code coverage report with Istanbul Instrumenter Loader
  • [x] Sourcemap
  • [x] Let you play with CSS, LESS, SASS, HTML, and JSON
  • [x] Mocha & chai de facto standard

Quick start

The only development dependency of this project is Node.js. So just make sure you have it installed. Then type few commands known to every Node developer...

git clone --depth 1 https://github.com/trixler/trixly.git
cd trixly
# install the project's dependencies
npm install

# dev build
npm run build:dev
# prod build
npm run build:prod

... and boom! You have it all setup for you!

Workflow

  • npm run build - build bundle both for development and production
  • npm run build:dev - builds bundle for development
  • npm run build:prod - builds bundle for production
  • npm run test - runs all tests using Karma & Mocha
  • npm run test:phantom - runs the unit tests for browser with PhantomJS
  • npm run test:chrome - runs the unit tests for browser with Chrome
  • npm run test:node - runs the unit tests in the node.js environment
  • npm run clean - remove the coverage report - and the dist folder
  • npm run clean:dist - remove the dist folder
  • npm run prebuild:dev - clear the dist folder and generate a non-minified script
  • npm run watch - run all unit tests, and watch files for changes
  • npm run watch:node - run all unit tests in the node.js environemnt, and watch files for changes
  • npm run watch:browser - run all unit tests for browser and watch files for changes
  • npm run watch:chrome - run all unit tests for browser with Chrome and watch files for changes
  • npm run lint - validates all TypeScript files using tslint
  • npm run lint:src - validates the source files
  • npm run lint:tests - validates the unit tests
  • npm run browser - runs browser unit tests in the browser.
  • npm run dependencies:check - shows a list over dependencies with a higher version number then the current one - if any
  • npm run dependencies:upgrade - automatically upgrade all devDependencies & dependencies, and update package.json

Folder structure

.
├── script                      # Babel configuration for React.
├── vscode                      # VSCode configuration.
├── dist                        # Built, ready to serve app.
├── config                      # Root folder for configurations.
│   ├── test                    # Test configurations.
│   ├── types                   # Global type definitions, written by us.
│   ├── webpack                 # Webpack configurations.
│   ├── circle-ci               # Circle CI configuration.
│   ├── gl-ci                   # GitLab CI configuration.
│   ├── banner.js               # Banner configuration for development builds
│   ├── karma.conf.js           # Karma configuration.
│   ├── root.js                 # Util file for finding the root.
│   └── runner.hml              # Mocha browser HTML configuration.
├── node_modules                # Node Packages.
├── src                         # Source code.
│   └── trixly.ts               # Entry point.
├── typings                     # Type definitions installed with typings.
├── .gitignore                  # Tells git which files to ignore.
├── package.json                # Package configuration.
├── CLA.md                      # Contributor License Agreement.
├── LICENSE.md                  # License.
├── README.md                   # Readme.
├── tsconfig.json               # TypeScript transpiler configuration.
├── tslint.json                 # TSLint configuration.
└── typings.json                # Typings package configuration.

Browser tests

The browser spec runner - ./config/runner.html - can be opened in a browser to run your tests. For it to work, you must first run npm run browser, and then open port 8080. This will set up a watch task that will automatically refresh the tests when your scripts, or the tests, change.

License

The MIT License (MIT)

Copyright (c) 2016 KFlash

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.