Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
vietnogi committed Aug 24, 2015
1 parent b2282fe commit f1e571a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions dist/mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(function() {
var fixture, fixtures, key, ref, refreshToken, token;

AutoConfigFakeServer.init();

AutoConfigFakeServer.fakeServer.autoRespond = true;

fixtures = [];

ref = window.FIXTURES;
for (key in ref) {
fixture = ref[key];
fixtures.push(fixture);
}

AutoConfigFakeServer.consume(fixtures);

token = '"yyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS50b3Bjb2Rlci1kZXYuY29tIiwiZXhwIjoxNDMzMjcxNzYwLCJ1c2VySWQiOiI0MDEzNTUxNiIsImlhdCI6MTQzMzI3MTE2MCwianRpIjoiMDZhNzVjM2EtMTQ0MC00MWE3LTk5N2YtZmFmMGVjZjFmOGM1In0.okSjl5KOmGQ6hJEoQxk4SVkFra65_Id6KUQGdAVmJNe"';

refreshToken = '"dGjFxqWsIXqptI2JllnmactleKODbd3UqWAvdjpjHsNqQ"';

localStorage.setItem('userJWTToken', token);

localStorage.setItem('userRefreshJWTToken', token);

}).call(this);
5 changes: 3 additions & 2 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ configs.karma =
]

configs.buildFiles =
copy: ['.tmp/scripts/auto-config-fake-server.js']
copy: ['.tmp/scripts/mock.js']
copy: [
'.tmp/scripts/**.*'
]

configs.fixtureFiles = [
'app/**/*.json'
Expand Down

0 comments on commit f1e571a

Please sign in to comment.