Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
angular-library-seed-demo
Advanced tools
angular-library-seed
demo projectsThis folder contains two demo-projects (
esm
andumd
folders) for angular-library-seed. These demo projects may help you to test whether your library supports AOT/JIT/UMD builds or not.
esm
folder contains Angular project that is built using @angular/compiler and Webpack. This demo project utilizes ESM (pure ES2015) sources of your library to do two kind of compilations:umd
folder contains Angular project that is being built and assembled in browser by SystemJS. This demo project utilizes UMD bundle of your library.
Demo-projects are created as an alternative to npm link
command. You may simply delete this demo
folder if you prefer to use yarn link instead to check how your library is being built.
# Assuming the you are already in angular-library-seed/demo folder
# Install all dependencies
yarn install
# Start watching library dist folder and do JIT project build in watch mode.
yarn start
# Or you may simply build AOT/JIT/UMD versions all at once by running the following command
yarn build
angular-library-seed
└─ demo * Folder for demo applications (MAY BE DELETED if not required)
├─ esm * AOT/JIT demo project
| └─ dist * This folder will contain project ESM builds
| | ├─ aot * This folder contains project build made via AOT compilation
| | | └─ index.html * <-- RUN THIS FILE TO CHECK AOT BUILD
| | |
| | └─ jit * This folder contains project build made via JIT compilation
| | └─ index.html * <-- RUN THIS FILE TO CHECK JIT BUILD
| |
| ├─ lib * Temporary folder with a copy of your library built sources
| ├─ src
| | ├─ app * Demo application sources. Adopt them with your library.
| | ├─ index.ejs * Main application template.
| | ├─ main-aot.ts * AOT main entry.
| | ├─ main-jit.ts * JIT main entry.
| | └─ polyfills.browser.ts * Browser polyfills.
| |
| ├─ tsconfig-aot.json * TypeScript configuration for AOT build.
| ├─ tsconfig.json * TypeScript configuration for JIT build.
| ├─ webpack-aot.config.js * Webpack configuration for AOT build.
| └─ webpack.config.js * Webpack configuration for JIT build.
|
├─ umd * UMD demo project
| ├─ app * Demo application sources. Adopt them with your library.
| ├─ lib * Temporary folder with a copy of your library built sources
| ├─ index.html * <-- RUN THIS FILE TO CHECK UMD BUILD
| ├─ main.ts * Main application entry file.
| └─ systemjs.config.js * SystemJS configuration.
|
├─ .gitignore * List of files that are ignored while publishing to git repository
├─ gulpfile.js * Gulp helper scripts for building demos
├─ package.json * NPM dependencies and helper scripts for building demos
└─ yarn.lock * Yarn dependency versions lock for demo applications
Install latest Node and NPM following the instructions. Make sure you have Node version ≥ 7.0 and NPM ≥ 4.
brew install node
for Mac.Install Yarn by following the instructions.
brew install yarn
for Mac.demo
folder in your console.yarn install
to install required dependencies.TickTock
library related code with your own library tags and importsThis step may be optional at first since you might just want to build demo projects with TickTock library example.
Once you're ready to develop your own library you should do the following.
angular-library-seed/demo/esm/src/app/*.ts
files for AOT/JIT builds.angular-library-seed/demo/umd/app/*.ts
files for UMD builds.yarn build
for building AOT, JIT and UMD demo versions all at once.You may also build projects separately:
yarn build:jit
- for building JIT version of demo project.yarn build:aot
- for building AOT version of demo project.yarn build:umd
- for building UMD version of demo project.To see your library in action launch the following files in your browser:
angular-library-seed/demo/esm/dist/jit/index.html
file for JIT buildangular-library-seed/demo/esm/dist/aot/index.html
file for AOT buildangular-library-seed/demo/umd/index.html
file for UMD buildyarn start
for building JIT version of demo project and start watching for library changes.This command may be used simultaneously in combination with angular-library-seed's yarn build:watch
. As a result once you change library source code it will be automatically re-compiled and in turn your JIT demo-project will be automatically re-built and you will be able to see that changes in your browser instantly.
See Development Workflow section of angular-library-seed's README for more details.
yarn clean:tmp
command will clean up all temporary files like dist
, lib
, *.ngsummary.json
etc.yarn clean:all
command will clean up all temporary files along with node_modules
folder.FAQs
AOT/JIT/UMD build demo of angular library seed
We found that angular-library-seed-demo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.