craigburke / grails3-angular2 Goto Github PK
View Code? Open in Web Editor NEWGrails 3 Angular 2
Grails 3 Angular 2
hi,
just a question - so feel free to close at any time.
when using just npm but not bower what do you think is the best approach handling the node_modules
directory? i do not think just putting it in grails-app/assets
does the trick because there are many dependencies which are for development only. not to mention the angular2 worker.dev seems to make assetCompile
hang completely.
so for now, i ended up putting node_modules
into my project root and gitignored it. then after a npm install (following the angular 5min getting started guide), i manually copied
node_modules/systemjs
node_modules/angular2/bundles
(excluding web_worker
)into grails-app/assets
.
seems to work happy together with your typescript-asset-pipeline
plugin (with is awesome btw.).
do you see anything that is plain wrong here or that could be simplified? maybe sth. with the gradle nodejs plugin that automatically copies the mentioned files into grails-app/assets
on npmInstall
?
would be great to hear/read your feedback/opinion on this.
thank you! zyro
Hi I get the following error:
:assetCompile
Processing File 1 of 103 - angular2-build/angular2.dev.js
:assetCompile FAILED
FAILURE: Build failed with an exception.
Cannot cast object '[Digest Input Stream] MD5 Message Digest from SUN,
' with class 'java.security.DigestInputStream' to class 'java.io.ByteArrayInputStream'
I am using Grails 3.2.2, Asset-pipeline 2.11.6. Tried several other pipeline version but all failed.
Seems the is file missing in angular2-build, but i can't really find the problem.
Hi,
I am using a Windows 7 and Grails 3.0.9.
I have cloned your repository via github and am having issues when i try to refresh the dependencies.
whenever i issue the command ./gradlew build --refresh-dependencies --info
on the gitbash console.
C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\bower\lib\node_modules\q\q.js:155 throw e; ^ Error: ENOENT, no such file or directory 'C:\Apoorv\Grails_Projects\grails3-angular2\C:\Apoorv\Grails_Projects\grails3-angular2\bower_components\es6-module-loader\dist\es6-module-loader.js' at Object.fs.lstatSync (fs.js:671:18) at installFile (C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\lib\installer.js:89:10) at C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\lib\installer.js:189:7 at C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\async\dist\async.js:3025:16 at eachOfArrayLike (C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\async\dist\async.js:941:9) at eachOf (C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\async\dist\async.js:991:5) at Object.eachLimit (C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\async\dist\async.js:3089:3) at Object.installDependency (C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\lib\installer.js:182:9) at C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\bower-installer.js:155:25 at C:\Apoorv\Grails_Projects\grails3-angular2\node_modules\bower-installer\node_modules\async\dist\async.js:3025:16 :bowerInstall FAILED :bowerInstall (Thread[main,5,main]) completed. Took 1.821 secs.
I noticed in the above that it is trying to locate a file but is not able to locate it. This is because the directory it is searching for is incorrect shown below.
Error: ENOENT, no such file or directory 'C:\Apoorv\Grails_Projects\grails3-angular2\C:\Apoorv\Grails_Projects\grails3-angular2\bower_components\es6-module-loader\dist\es6-module-loader.js'
The correct directory should be Error: ENOENT, no such file or directory 'C:\Apoorv\Grails_Projects\grails3-angular2\bower_components\es6-module-loader\dist\es6-module-loader.js'
I am not sure if this would solve my problem but atleast it should check in the correct directories .....
Your help is appreciated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.