@ntesmail/shark-angular2
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

1) Install

npm install shark-angular2 --save

2) Edit Angular 2 module

or use SharkModule to import all of the modules at once:

import { SharkModule } from 'shark-angular2';
...

@NgModule({
   ...
   imports: [SharkModule, ... ],
   ... 
})

3) if you want to use [ngc] and [rollup], Edit rollup configuration (rollup-config.js)

You have to use CommonJS rollup plugin.

npm install rollup-plugin-commonjs --save --dev

Then you have to import the CommonJS plugin, include it in the plugins array and add shark-angular2 to the list of modules:

...
import commonjs from 'rollup-plugin-commonjs';
...

//paths are relative to the execution path
export default {
	...
	plugins: [
		...
		commonjs({
			include: [
				'node_modules/rxjs/**',
				'node_modules/shark-angular2/**',
				'node_modules/shark-ui/**'//because shark-angular2 depends on shark-ui
			]
		}),
		...
	]
}

/@ntesmail/shark-angular2/

    Package Sidebar

    Install

    npm i @ntesmail/shark-angular2

    Weekly Downloads

    0

    Version

    1.2.2

    License

    MIT

    Last publish

    Collaborators

    • ntesmail