Skip to content

Commit 9ff305b

Browse files
benjaminPariseljulienmege
authored andcommitted
fix: grunt package is working
1 parent 30c07cd commit 9ff305b

File tree

4 files changed

+112
-72
lines changed

4 files changed

+112
-72
lines changed

README.md

+46-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,58 @@
1-
AngularJS [![Build Status](https://travis-ci.org/angular/angular.js.svg?branch=master)](https://travis-ci.org/angular/angular.js)
1+
AngularJS
22
=========
33

4+
Fork from angularjs for Bonitasoft.
5+
6+
To make branch 1.3.x working, we need to:
7+
8+
* git checkout 1.3.x
9+
* nvm install 6.17.1
10+
11+
1. node module not exist https://github.com/angular/angular.js/issues/13123
12+
13+
Dans copy-npm-shrinkwrap.js
14+
Remplacer la fonction main
15+
16+
function _main() {
17+
process.chdir(PROJECT_ROOT);
18+
if (!fs.existsSync(NODE_MODULES_DIR)) {
19+
fs.mkdirSync(NODE_MODULES_DIR);
20+
}
21+
copyFile(NPM_SHRINKWRAP_FILE, NPM_SHRINKWRAP_CACHED_FILE, onCopied);
22+
}
23+
24+
2. npm install -g [email protected]
25+
pour pouvoir lancer grunt package
26+
27+
3. Installer python2.7.18
28+
https://tecadmin.net/install-python-2-7-on-ubuntu-and-linuxmint/
29+
30+
4. grunt package =>
31+
Error: Could not create the Java Virtual Machine.
32+
Error: A fatal exception has occurred. Program will exit.
33+
Unrecognized option: -d32
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
448
AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you
549
use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s
650
syntax to express your application’s components clearly and succinctly. It automatically
751
synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data
852
binding. To help you structure your application better and make it easy to test, AngularJS teaches
953
the browser how to do dependency injection and inversion of control.
1054

11-
Oh yeah and it helps with server-side communication, taming async callbacks with promises and
55+
Oh yeah and it helps with server-side communication, taming async callbacks with promises and
1256
deferreds. It also makes client-side navigation and deeplinking with hashbang urls or HTML5 pushState a
1357
piece of cake. Best of all?? It makes development fun!
1458

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ module.exports = {
220220
java32flags: function(){
221221
if (process.platform === "win32") return '';
222222
if (shell.exec('java -version -d32 2>&1', {silent: true}).code !== 0) return '';
223-
return ' -d32 -client';
223+
return '';
224224
},
225225

226226

npm-shrinkwrap.json

+64-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
"url": "https://github.com/angular/angular.js/blob/master/LICENSE"
8080
}
8181
]
82-
}
82+
}

0 commit comments

Comments
 (0)