Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

- added gulp build system #26

Closed
wants to merge 1 commit into from

Conversation

worldspawn
Copy link

  • added package.json
  • moved bower main files to build output in root
  • wrote 4 tests

Let me know if theres any issues/missed instructions

This annotates the source file automatically (ng-annotate) and puts the annotated version in the root. It also puts an uglified version of that in the root with .min.js as extension. The bower.json main file has changed to point to /multi-transclude.js. This means if u change src/*.js you must run gulp to update the release files

I've added .jshintrc file too which is enforced by the gulp build process.

so you need to do:
npm install
bower install

then run gulp

and you get some output like:

[15:25:15] Using gulpfile ~\Source\ng-multi-transclude\gulpfile.js
[15:25:15] Starting 'preparetesthtml'...
[15:25:15] Starting 'annotate'...
[15:25:15] all files 3.8 kB
[15:25:15] Finished 'annotate' after 323 ms
[15:25:15] Starting 'jshint'...
[15:25:16] Starting 'compress'...
[15:25:16] Starting 'concat'...
[15:25:16] Finished 'jshint' after 795 ms
[15:25:16] all files 1.09 kB
[15:25:16] Finished 'preparetesthtml' after 1.47 s
[15:25:16] Starting 'preparetestfiles'...
[15:25:16] Finished 'preparetestfiles' after 32 ms
[15:25:16] Starting 'test'...
[15:25:17] all files 3.8 kB
[15:25:17] Finished 'concat' after 756 ms
[15:25:17] all files 1.34 kB
[15:25:17] Finished 'compress' after 1.06 s
[15:25:17] Starting Karma server...
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Windows 8)]: Connected on socket ePnhzNCGxHspJJuBeiGF with id 11689969
PhantomJS 1.9.8 (Windows 8): Executed 4 of 4 SUCCESS (0.022 secs / 0.05 secs)

=============================== Coverage summary ===============================
Statements   : 85.11% ( 40/47 )
Branches     : 55.56% ( 10/18 )
Functions    : 85.71% ( 12/14 )
Lines        : 85.11% ( 40/47 )
================================================================================
[15:25:22] Finished 'test' after 5.6 s
[15:25:22] Starting 'build'...
[15:25:22] Finished 'build' after 28 μs
[15:25:22] Starting 'default'...
[15:25:22] Finished 'default' after 40 μs

- added package.json
- moved bower main files to build output in root
- wrote 4 tests
@worldspawn
Copy link
Author

I tried to get jasmine2 going... I've only ever done it with protractor and not karma. Theres no solid instructions on how to make that happen. I installed the npm package as instructed but i still dont seem to be able to call beforeAll or any other jasmine 2 things. Anyway...

@zachsnow
Copy link
Owner

Wow, lots of goods here! I will look at this over the weekend and hopefully get it into master. Also it will be good to get a failing test-case for the ng-if issues in #22 so I can rewrite the module to support linking multiple times. Only thing I might change is removing ng-annotate because there's so little to annotate...

Thanks!

@zachsnow
Copy link
Owner

zachsnow commented Apr 1, 2015

Sorry for the delay, work has intruded but I am eager to look at this.

@zachsnow zachsnow mentioned this pull request Apr 3, 2015
@zachsnow
Copy link
Owner

zachsnow commented Apr 3, 2015

I updated this in #30 accidentally instead of here, but please have a look @worldspawn.

@worldspawn worldspawn closed this May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants