Developing against Ionic locally


#1

Hi,

I would like to develop against the latest master of ionic, however, the documentation seems to be outdated. (https://github.com/driftyco/ionic/blob/master/scripts/README.md)

After doing git clone and npm install --typecheck, I can’t build as there is no longer a gulp task named “package”. I found the build task, but when I try “gulp compile.release” I get the following errors:

[13:26:54] Using gulpfile D:\source\ionic2\ionicframework\gulpfile.js [13:26:54] Starting 'compile.release'...

D:\source\ionic2\ionicframework\node_modules.bin\ngc:2
basedir=$(dirname “$(echo “$0” | sed -e ‘s,\,/,g’)”)
^^^^^^^

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

D:\source\ionic2\ionicframework\node_modules.bin\ngc:2
basedir=$(dirname “$(echo “$0” | sed -e ‘s,\,/,g’)”)
^^^^^^^

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

D:\source\ionic2\ionicframework\node_modules.bin\ngc:2
basedir=$(dirname “$(echo “$0” | sed -e ‘s,\,/,g’)”)
^^^^^^^

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

[13:26:57] ‘compile.release’ errored after 2.66 s
[13:26:57] Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "node --max_old_space_size=8096 D:\source\ionic2\ionicframework/node_modules/.bin/ngc -p D:\source\ionic2\ionicframework\dist\ionic-angular\es2015/tsconfig.json"
D:\source\ionic2\ionicframework\node_modules.bin\ngc:2
basedir=$(dirname “$(echo “$0” | sed -e ‘s,\,/,g’)”)
^^^^^^^

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

What is the correct process for developing against the latest version of ionic?