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

@olympeio/generator-project

v2.1.2

Published

Yeoman generator for scaffolding Olympe CODE project

Downloads

3

Readme

What is Olympe Yeoman project generator ?

Olympe Yeoman project generator helps you to quickly setup CODE and DRAW, the Olympe development environment.

This Yeoman generator provides you will all the dependencies and configuration files needed to start, develop, and run Olympe applications or build a library.

Getting started

Please refer to Olympe support page to learn how to install CODE and DRAW.

npm commands overview

Here is an overview of the npm commands that the Olympe generator wrote to your project's package.json.

Run npm run to see a list of available commands. To run any command, run

npm run <command>

| Command | Description | |-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | add | Add a new npm dependency. This command will also import the dependency in your sources main, unlike the native npm install command. | | reset | Reinitialise your local data cloud with DRAW and your project. Warning This will erase the data cloud content. Make sure you have saved your work with command snapshot. | | reset:debug | Same as reset, but with activated debug mode on the data cloud. This means that the data cloud will check the consistency of your project. | | snapshot | Back up the work you have been doing in DRAW to your local drive, in the snapshot/ directory of your project. The files generated by this command are used to reinitialise the data cloud later (see command reset). |

NB You should always snapshot your work before running a build command. Otherwise the build output will not include the data cloud initialisation files of your project.

Build and serve commands

For runnable applications

If your project is an application, Olympe generator provided you with the following commands to build and serve your project:

| Command | Description | |------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | build:draw | Same as serve, but build only, without serving. Use this command to get development artefacts that contain DRAW in addition to Olympe runtime. The output will be available in the dist/web directory of your project. | | build:node | Build Olympe node runtime environment and your project. Use this command when you want to build a service app. The output will be available in the dist/node directory of your project. You can then run any of your service apps with node main.js -- sc.app=<service app tag>. | | build:web | Same as serve:web, but build only, without serving. Use this command when you want to build a UI app. The output will be available in the dist/web directory of your project. | | serve | Alias for serve:draw. | | serve:draw | Build DRAW and your project and serve them. Visit http://localhost:8888/ to start working in DRAW. | | serve:node | Shortcut to build (see build:node) and serve a service app. You must always provide the tag of the service app you want to serve with npm run serve:node -- sc.app=<service app tag>. | | serve:web | Build Olympe web runtime environment (without DRAW) and your project and serve them to run a UI app. You can run any of your soft-coded UI app by visiting http://localhost:8888/?hc.app=sc.runtime&sc.app=<your UI app tag>. |

For a library

If your project is a library, Olympe generator provided you with the following commands to build and serve your project:

| Command | Description | |---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | build | Build your project as a library, i.e. without Olympe runtime. See how to build and use a library with Olympe. The output of this command is not runnable, it is only meant to be imported in another project. |

In this case, you must serve DRAW from a consumer project of your library.

Advanced usage

Olympe Dev-Tools Gulp tasks

Your project ships with Olympe Dev-Tools, a set of Gulp tasks, to help you to backup and to restore your work. See that project's documentation for more details about the provided tasks and configuration options.

Webpack configuration

Your project relies on Webpack to be built and served. You are provided with a default configuration file webpack.config.js, which you can tailor to your needs.

Running a service application

If you want to serve a service app, run

npm run serve:node -- sc.app=<service app tag>

where <service app tag> is the tag of the service app you created in DRAW.

Application deployment

If you are using the default index.html, the static files main.js and main.css will be cached by your browser based on the current application version. The same will apply to the application code as data if the production mode is activated. Therefore, you need to update the application version in package.json for every deployment of a new version. For development purposes, you can include the bumpVersion.sh in your pipeline so the script will update the package.json version with current commit reference and timestamp. Otherwise, for application release you can also use npm version <newversion> | major | minor | patch command.