Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1355 from sparkdesignsystem/staging
Publish 4-29
- Loading branch information
Showing
573 changed files
with
53,406 additions
and
2,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
{ | ||
"extends": "airbnb" | ||
"extends": ["airbnb", "prettier", "plugin:jest/recommended"], | ||
"plugins": ["prettier", "jest"], | ||
"env": { | ||
"browser": true, | ||
"jest/globals": true | ||
}, | ||
"rules": { | ||
"import/no-extraneous-dependencies": ["error", { | ||
"devDependencies": true, | ||
"optionalDependencies": false, | ||
"peerDependencies": false | ||
}], | ||
"max-len": ["error", 80, { | ||
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$", | ||
"ignoreUrls": true | ||
}], | ||
"prettier/prettier": ["error"], | ||
"object-curly-newline": "off", | ||
"react/require-default-props" : "off", | ||
"react/jsx-filename-extension": "off", | ||
"jsx-a11y/label-has-associated-control": [ 2, { | ||
"labelComponents": ["label"], | ||
"labelAttributes": ["htmlFor"], | ||
"controlComponents": ["input"] | ||
}], | ||
"jsx-a11y/label-has-for": [ 2, { | ||
"components": [ "Label" ], | ||
"required": { | ||
"every": [ "id" ] | ||
} | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
https://fall.sparkdesignsystem.com/* https://staging.sparkdesignsystem.com/:splat 301! | ||
https://sparkdesignsystem.com/gettingstarted/developers https://www.sparkdesignsystem.com/ 301! | ||
https://sparkdesignsystem.com/gettingstarted/designers https://www.sparkdesignsystem.com/ 301! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
const clean = require('gulp-clean'); | ||
const gulp = require('gulp'); | ||
const request = require('request'); | ||
const { exec } = require('child_process'); | ||
const fs = require('fs'); | ||
|
||
gulp.task('build-react-dev-app-netlify', ['fetch-icons'], (cb) => { | ||
exec('cd src/react && npm run build', (err, stdout, stderr) => { | ||
console.log(stdout); | ||
console.log(stderr); | ||
cb(err); | ||
}); | ||
}); | ||
|
||
gulp.task('fetch-icons', () => { | ||
request('https://spark-assets.netlify.com/spark-core-icons.svg', { strictSSL: false }) | ||
.pipe(fs.createWriteStream('src/react/public/sprk-icons.svg')); | ||
}); | ||
|
||
gulp.task('clean-react-dev-app', () => gulp.src(['src/react/node_modules', './dist/react'], { read: false }).pipe(clean())); | ||
|
||
gulp.task('install-react-dev-app', (cb) => { | ||
exec('cd src/react && npm install', (err, stdout, stderr) => { | ||
console.log(stdout); | ||
console.log(stderr); | ||
cb(err); | ||
}); | ||
}); | ||
|
||
gulp.task('serve-react-dev-app', ['fetch-icons'], (cb) => { | ||
exec('cd src/react && npm start', (err, stdout, stderr) => { | ||
console.log(stdout); | ||
console.log(stderr); | ||
cb(err); | ||
}); | ||
}); | ||
|
||
gulp.task('transfer-react-dev-app', () => { | ||
gulp.src('dist/react/build', { read: false }).pipe(clean()); | ||
gulp.src('src/react/build/react/**/*').pipe(gulp.dest('dist/react')); | ||
}); | ||
|
||
gulp.task('link-spark-to-react-dir', (cb) => { | ||
gulp | ||
.src( | ||
[ | ||
'src/react/node_modules/@sparkdesignsystem/spark-core', | ||
'src/react/node_modules/@sparkdesignsystem/spark-card', | ||
'src/react/node_modules/@sparkdesignsystem/spark-dictionary', | ||
'src/react/node_modules/@sparkdesignsystem/spark-highlight-board', | ||
], | ||
{ read: false }, | ||
) | ||
.pipe(clean()); | ||
exec( | ||
'cd src/react && npm link @sparkdesignsystem/spark-core && npm link @sparkdesignsystem/spark-card && npm link @sparkdesignsystem/spark-dictionary && npm link @sparkdesignsystem/spark-highlight-board', | ||
(err, stdout, stderr) => { | ||
console.log(stdout); | ||
console.log(stderr); | ||
cb(err); | ||
}, | ||
); | ||
}); |
Oops, something went wrong.