spinner-component-base v0.0.2
Angular 5 Spinner Component base project
This is a wrapper project for the Angular 5 Spinner Component package, to enable testing
The package/module is located in 'src/app/modules/spinner/'.
TODO packaging information/process
Running the wrapper project
NPM
Package clashing
In order to run the module within a project wrapper you need to do the 'npm install' as usual,
but then in the module's directory; remove any 'node_modules' folder, and from there run
'npm install --only=prod' - some of the dev dependencies conflict/duplicate those used by Angular projects.
Publishing
In order to publish the module you need to install all of its dependencies.
From within the module's folder; delete any existing 'node_modules' folder, and run 'npm install'.
ng build will now not work
The contents of the template file ('*.component.html'') needs to be copied into the component
file ('*.component.ts'), as with the css. Component packages cannot reference external template files.
Use the 'npm run build' command, still within the module's folder, to execute the package compilation.
This is currently done using 'rollup' (https://rollupjs.org/guide/en).
.
7 years ago