Comments (9)
I installed different packages via npm and via jspm. How can I use them in my project?
from angular-cli.
Hey @doczoidberg did you find a way or a doc about that problem ?
Thank you,
Peekmo
from angular-cli.
I copied them in my dist folder. You can look here for a more clean solution:
#62
from angular-cli.
Thank you 👍
from angular-cli.
The 3rd party packages story is pretty weak right now, but I understand that this is a must.
ember-cli solves this in various ways. I want to avoid wrapper packages for existing packages that provide metadata or integration with the cli. I'd rather use package.json as the source of truth.
from angular-cli.
Integrating grunt or gulp into the current setup doesn't make sense. The whole point of broccoli build pipeline is that the build pipeline is unified, but flexible enough that addons can plug into it.
from angular-cli.
Achieved this will the following ember-cli-build.js:
/* global require, module */
var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
module.exports = function(defaults) {
var app = new Angular2App(defaults);
var myTree = new Funnel('node_modules', {
files: [
'bootstrap/dist/css/bootstrap.css'
],
destDir: 'vendor'
});
var appTree = app.toTree();
return mergeTrees([myTree, appTree], { overwrite: true });
}
Now I just need to figure out how to inject my other build processes in there, like SASS compilation.
from angular-cli.
@intellix Thanks for this workaround
from angular-cli.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
from angular-cli.
Related Issues (20)
- "Uncaught TypeError" switching Angular Builder to "@angular-devkit/build-angular:application" HOT 6
- Dynamic require of "google-protobuf" is not supported HOT 1
- Allow creating git local user with new project before making first commit HOT 1
- Migrate cli builder based on Webpack to Esbuild HOT 1
- [error] TypeError: Cannot read properties of undefined (reading 'code') HOT 1
- The way to add server-only polyfills in application builder
- mongoose.connect not working in server.ts HOT 1
- Enhance the `--output-path` command to accept configurations for different output directories HOT 1
- Single assets folder with Angular Internationalization HOT 1
- externalDependencies not working as expected during serve with Vite HOT 2
- NG UPDATE NOT WORKING going from angular 17 to angular 18 HOT 1
- Angular devkit 18.0.7 not compatible with Bootstrap 5.3.3 HOT 3
- File name `undefined` when budget errors in Angular 18.1.0 HOT 4
- 18.1.0: Firebase "Class extends value undefined is not a constructor or null" HOT 14
- Outdated webpack version for @angular-devkit/build-angular 16.2.14 HOT 3
- Unable to reference asset.input directory from Scss without relative path HOT 1
- New Builder Polyfills Attempt to Call `Symbol.asyncIterator` on Synchronous Iterator HOT 2
- Background image introduction error HOT 10
- The background image fails to load when accessed with a directory appended to the domain. HOT 3
- We analyzed your package.json and everything seems to be in order. Good work! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.