2 |
--------------------------------------------------------------------------------
/test/expected/oldDomainRel.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/expected/nocss.css:
--------------------------------------------------------------------------------
1 | .foo {
2 |
3 | background: url();
4 | }
5 |
--------------------------------------------------------------------------------
/test/fixtures/nocss.css:
--------------------------------------------------------------------------------
1 | .foo {
2 |
3 | background: url();
4 | }
5 |
--------------------------------------------------------------------------------
/test/expected/customattrs.html:
--------------------------------------------------------------------------------
1 |
3 |
4 | /* ---- css ---- */
5 |
6 |
7 |
8 |
9 | /* ---- js ---- */
10 |
11 |
12 |
13 |
14 |
15 |
16 | /* --- lorem --- */
17 |
18 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
19 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
20 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
21 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
22 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
23 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
24 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gulp-assetpaths",
3 | "version": "0.3.3",
4 | "description": "A Gulp plugin to change asset paths from one environment to another.",
5 | "keywords": [
6 | "gulpplugin",
7 | "cdn",
8 | "images",
9 | "domains",
10 | "assets",
11 | "urls",
12 | "paths"
13 | ],
14 | "author": {
15 | "name": "Chris Wales",
16 | "email": "qwales1@gmail.com",
17 | "url": "https://github.com/qwales1"
18 | },
19 | "repository": "qwales1/gulp-assetpaths",
20 | "scripts": {
21 | "test": "mocha test/*.js --reporter spec"
22 | },
23 | "bugs": {
24 | "url": "https://github.com/qwales1/gulp-assetpaths/issues",
25 | "email": "qwales1@gmail.com"
26 | },
27 | "dependencies": {
28 | "plugin-error": "^1.0.1",
29 | "through2": "^3.0.0"
30 | },
31 | "devDependencies": {
32 | "event-stream": "3.3.4",
33 | "mocha": "^5.2.0",
34 | "should": "^13.2.3",
35 | "vinyl": "^2.2.0"
36 | },
37 | "engines": {
38 | "node": ">=0.8.0",
39 | "npm": ">=1.2.10"
40 | },
41 | "license": "MIT"
42 | }
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2014 Chris Wales
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/test/fixtures/dynamicpaths.html:
--------------------------------------------------------------------------------
1 |
3 |
4 | /* ---- css ---- */
5 |
6 |
7 |
8 |
9 | /* ---- js ---- */
10 |
11 |
12 |
13 |
14 |
15 |
16 | /* --- lorem --- */
17 |
18 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
19 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
20 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
21 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
22 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
23 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
24 |
--------------------------------------------------------------------------------
/test/expected/dynamicpaths.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | 
8 | 
9 | 
10 |
11 |
12 |
13 | 
14 | 
15 | 
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | .test {
25 | background : url(images/test.jpg);
26 | background : url(/images/test.jpg);
27 | background : url(https://www.oldDomain.com/images/test.jpg);
28 | }
29 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 
11 | 
12 | 
13 |
14 |
15 |
16 | 
17 | 
18 | 
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | .test {
28 | background : url(images/test.jpg);
29 | background : url(/images/test.jpg);
30 | background : url(https://www.oldDomain.com/images/test.jpg);
31 | }
32 |
\n\n\tOrder the new edition of The ASAM Criteria and get free 45-day access to the beta enhanced web-based version. \n\t\tAfter the 45-day trial, two subscription add-ons will be available for purchase.
\n\t\t
\n\n\tOrder the new edition of The ASAM Criteria and get free 45-day access to the beta enhanced web-based version. \n\t\tAfter the 45-day trial, two subscription add-ons will be available for purchase.
\n\t\t
\n\n\tOrder the new edition of The ASAM Criteria and get free 45-day access to the beta enhanced web-based version. \n\t\tAfter the 45-day trial, two subscription add-ons will be available for purchase.
\n\t\t
\n\n\tOrder the new edition of The ASAM Criteria and get free 45-day access to the beta enhanced web-based version. \n\t\tAfter the 45-day trial, two subscription add-ons will be available for purchase.
\n\t\t
3 |
4 |
5 |
6 |
7 | 
8 | 
9 | 
10 |
11 |
12 |
13 | 
14 | 
15 | 
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | .test {
25 | background : url(https://www.newDomain.com/fixtures/images/test.jpg);
26 | background : url(https://www.newDomain.com/images/test.jpg);
27 | background : url(https://www.newDomain.com/images/test.jpg);
28 | }
29 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 
11 | 
12 | 
13 |
14 |
15 |
16 | 
17 | 
18 | 
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | .test {
28 | background : url(https://www.newDomain.com/fixtures/nested/images/test.jpg);
29 | background : url(https://www.newDomain.com/images/test.jpg);
30 | background : url(https://www.newDomain.com/images/test.jpg);
31 | }
32 |