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

aurelia-jspm-cli

v0.1.5

Published

An Aurelia JSPM CLI

Downloads

1

Readme

aurelia-jspm-cli

This is a simple command to help you bootstrap and develop your Typescript Aurelia JSPM application.

Installing

npm install aurelia-jspm-cli -g

You can now use auj command.

Bootstraping

To bootstrap your project, execute :

mkdir my-app
cd my-app
auj init 

Then generate a first vendors bundle using the command npm run bundle:vendor to limit number of HTTP requests.

The project is ready and you can view a sample page by launching npm start.

Adding dependency

To help you maintain Typescript types with your JSPM dependencies, you can use this command to install your dependency.

auj install your-dependency

This command install your dependency with JSPM and with NPM (to handle Typescript types). If the NPM dependency does not contain typings, the command will look for corresponding types project.

After adding a dependency, don't forget to update vendors bundle using the command npm run bundle:vendor.

Developing

Unit test

Karma framework with Mocha and Chai is setup to execute your unit tests. Execute npm test.

If you just have bootstrapped your project, you should see 2 completed tests and 1 failed test (just to have some colors on the output console).

Auto-reload server

aurelia-jspm-cli comes with an auto-reload light web server (thanks to live-server). Execute :

npm run start

The browser will open automatically and each time you'll change your source code, the browser will refresh your page.

Mocking API

You can use the the auto-reload light server to mock API used by your front-end application. Execute :

npm run start:mockapi

Mock server will respond to every uri which start with "/mock/api". It will search for response into test/mockapi directory. The first subdirectory must be the HTTP method and must contains a path identical to the request uri.

For instance, if you need a response to the request GET /mock/api/blog/65/comments, you'll have to create the file test/mockapi/GET/blog/65/comments.

SSL

You can use the auto-reload light server to test your app with SSL/TLS (thanks to myca). Simply add -- --ssl to the command used to start your server. For instance :

npm run start -- --ssl
npm run start:mockapi -- --ssl

Watch the command output, it will indicate the CA certificate to import into your browser if you need a green browser padlock (to check mixed content for instance).

The CA certificate will signed the server certificate with every hostname found in the system "hosts" file wich match the IP 127.0.0.1. It means that the browser padlock will stay green for every local hostname.

Aurelia documentation

If you need help to build your Aurelia components, just type

auj doc